[build] Disable clang-format for generated code (#16358)
The code should be human readable but it is more important if the code in the generator itself is easier to understand. Nobody wants to play clang-format golf with these generators.
This commit is contained in:
committed by
GitHub
parent
9e189e02b4
commit
349c6153de
@@ -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>
|
||||
@@ -282,3 +284,5 @@ Mutable<Layer::Impl> BackgroundLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -662,3 +664,5 @@ Mutable<Layer::Impl> CircleLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -529,3 +531,5 @@ Mutable<Layer::Impl> FillExtrusionLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -506,3 +508,5 @@ Mutable<Layer::Impl> FillLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -378,3 +380,5 @@ Mutable<Layer::Impl> HeatmapLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -422,3 +424,5 @@ Mutable<Layer::Impl> HillshadeLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
const paintProperties = locals.paintProperties;
|
||||
const allProperties = paintProperties.concat(layoutProperties);
|
||||
-%>
|
||||
// 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>
|
||||
@@ -339,3 +341,5 @@ Mutable<Layer::Impl> <%- camelize(type) %>Layer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -804,3 +806,5 @@ Mutable<Layer::Impl> LineLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -507,3 +509,5 @@ Mutable<Layer::Impl> RasterLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
@@ -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>
|
||||
@@ -1879,3 +1881,5 @@ Mutable<Layer::Impl> SymbolLayer::mutableBaseImpl() const {
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
// clang-format on
|
||||
|
||||
Reference in New Issue
Block a user