[build] Disable clang-format on generated code

Nice to have, but would make maintain the templates a lot harder.
This commit is contained in:
Thiago Marcos P. Santos
2019-09-25 00:10:33 +03:00
parent 975a013d8f
commit cf95bc2bb2
44 changed files with 176 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -57,3 +59,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -105,3 +107,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -87,3 +89,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -81,3 +83,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -70,3 +72,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -75,3 +77,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -3,6 +3,8 @@
const layoutProperties = locals.layoutProperties;
const paintProperties = locals.paintProperties;
-%>
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -73,3 +75,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -126,3 +128,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -87,3 +89,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -291,3 +293,5 @@ protected:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -55,3 +57,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,6 +1,8 @@
<%
const properties = locals.properties;
-%>
// clang-format off
// This file is generated. Do not edit.
#pragma once
@@ -42,3 +44,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/background_layer.hpp>
@@ -249,3 +251,5 @@ Mutable<Layer::Impl> BackgroundLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/background_layer_properties.hpp>
@@ -31,3 +33,5 @@ const BackgroundLayer::Impl& BackgroundLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -51,3 +53,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/circle_layer.hpp>
@@ -602,3 +604,5 @@ Mutable<Layer::Impl> CircleLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/circle_layer_properties.hpp>
@@ -29,3 +31,5 @@ const CircleLayer::Impl& CircleLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -89,3 +91,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/fill_extrusion_layer.hpp>
@@ -484,3 +486,5 @@ Mutable<Layer::Impl> FillExtrusionLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/fill_extrusion_layer_properties.hpp>
@@ -31,3 +33,5 @@ const FillExtrusionLayer::Impl& FillExtrusionLayerProperties::layerImpl() const
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -76,3 +78,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/fill_layer.hpp>
@@ -436,3 +438,5 @@ Mutable<Layer::Impl> FillLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/fill_layer_properties.hpp>
@@ -31,3 +33,5 @@ const FillLayer::Impl& FillLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -71,3 +73,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/heatmap_layer.hpp>
@@ -337,3 +339,5 @@ Mutable<Layer::Impl> HeatmapLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/heatmap_layer_properties.hpp>
@@ -29,3 +31,5 @@ const HeatmapLayer::Impl& HeatmapLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -58,3 +60,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/hillshade_layer.hpp>
@@ -376,3 +378,5 @@ Mutable<Layer::Impl> HillshadeLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/hillshade_layer_properties.hpp>
@@ -29,3 +31,5 @@ const HillshadeLayer::Impl& HillshadeLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -64,3 +66,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -3,6 +3,8 @@
const layoutProperties = locals.layoutProperties;
const paintProperties = locals.paintProperties;
-%>
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/<%- type.replace('-', '_') %>_layer.hpp>
@@ -317,3 +319,5 @@ Mutable<Layer::Impl> <%- camelize(type) %>Layer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -3,6 +3,8 @@
const layoutProperties = locals.layoutProperties;
const paintProperties = locals.paintProperties;
-%>
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/<%- type.replace('-', '_') %>_layer_properties.hpp>
@@ -40,3 +42,5 @@ const <%- camelize(type) %>Layer::Impl& <%- camelize(type) %>LayerProperties::la
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -3,6 +3,8 @@
const layoutProperties = locals.layoutProperties;
const paintProperties = locals.paintProperties;
-%>
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -84,3 +86,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/line_layer.hpp>
@@ -737,3 +739,5 @@ Mutable<Layer::Impl> LineLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/line_layer_properties.hpp>
@@ -31,3 +33,5 @@ const LineLayer::Impl& LineLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -123,3 +125,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/raster_layer.hpp>
@@ -449,3 +451,5 @@ Mutable<Layer::Impl> RasterLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/raster_layer_properties.hpp>
@@ -29,3 +31,5 @@ const RasterLayer::Impl& RasterLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -74,3 +76,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/symbol_layer.hpp>
@@ -1803,3 +1805,5 @@ Mutable<Layer::Impl> SymbolLayer::mutableBaseImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/symbol_layer_properties.hpp>
@@ -29,3 +31,5 @@ const SymbolLayer::Impl& SymbolLayerProperties::layerImpl() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
@@ -356,3 +358,5 @@ public:
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,3 +1,5 @@
// clang-format off
// This file is generated. Do not edit.
#include <mbgl/style/light.hpp>
@@ -251,3 +253,5 @@ TransitionOptions Light::getPositionTransition() const {
} // namespace style
} // namespace mbgl
// clang-format on

View File

@@ -1,6 +1,8 @@
<%
const properties = locals.properties;
-%>
// clang-format off
// This file is generated. Do not edit.
#include <mbgl/style/light.hpp>
@@ -136,3 +138,5 @@ TransitionOptions Light::get<%- camelize(property.name) %>Transition() const {
} // namespace style
} // namespace mbgl
// clang-format on