[core] use #pragma once instead of ifdef include guards

This commit is contained in:
Konstantin Käfer
2016-05-25 21:14:18 +02:00
parent 6368403f43
commit e2bcea90fc
206 changed files with 211 additions and 829 deletions

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ALGORITHM_COVERED_BY_CHILDREN
#define MBGL_ALGORITHM_COVERED_BY_CHILDREN
#pragma once
#include <mbgl/tile/tile_id.hpp>
@@ -30,5 +29,3 @@ bool coveredByChildren(const UnwrappedTileID& id, const Container& container) {
} // namespace algorithm
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ALGORITHM_GENERATE_CLIP_IDS
#define MBGL_ALGORITHM_GENERATE_CLIP_IDS
#pragma once
#include <mbgl/tile/tile_id.hpp>
#include <mbgl/util/clip_id.hpp>
@@ -34,5 +33,3 @@ public:
} // namespace algorithm
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ALGORITHM_GENERATE_CLIP_IDS_IMPL
#define MBGL_ALGORITHM_GENERATE_CLIP_IDS_IMPL
#pragma once
#include <mbgl/algorithm/generate_clip_ids.hpp>
#include <mbgl/util/math.hpp>
@@ -77,5 +76,3 @@ void ClipIDGenerator::update(Renderables& renderables) {
} // namespace algorithm
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ALGORITHM_UPDATE_RENDERABLES
#define MBGL_ALGORITHM_UPDATE_RENDERABLES
#pragma once
#include <cstdint>
@@ -11,5 +10,3 @@ void updateRenderables(Layer& layer, const uint8_t z);
} // namespace algorithm
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ALGORITHM_UPDATE_RENDERABLES_IMPL
#define MBGL_ALGORITHM_UPDATE_RENDERABLES_IMPL
#pragma once
#include <mbgl/algorithm/update_renderables.hpp>
#include <mbgl/tile/tile_id.hpp>
@@ -89,5 +88,3 @@ std::map<UnwrappedTileID, Renderable> updateRenderables(const DataTiles& dataTil
} // namespace algorithm
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ANNOTATION_MANAGER
#define MBGL_ANNOTATION_MANAGER
#pragma once
#include <mbgl/annotation/annotation.hpp>
#include <mbgl/annotation/point_annotation_impl.hpp>
@@ -61,5 +60,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ANNOTATION_TILE
#define MBGL_ANNOTATION_TILE
#pragma once
#include <mbgl/tile/geometry_tile.hpp>
#include <mbgl/tile/tile_id.hpp>
@@ -57,5 +56,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_POINT_ANNOTATION_IMPL
#define MBGL_POINT_ANNOTATION_IMPL
#pragma once
#include <mbgl/annotation/annotation.hpp>
#include <mbgl/annotation/point_annotation.hpp>
@@ -68,5 +67,3 @@ struct indexable<std::shared_ptr<const mbgl::PointAnnotationImpl>> {
} // end namespace index
} // end namespace geometry
} // end namespace boost
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHAPE_ANNOTATION_IMPL
#define MBGL_SHAPE_ANNOTATION_IMPL
#pragma once
#include <mapbox/geojsonvt.hpp>
@@ -37,5 +36,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_ANCHOR
#define MBGL_GEOMETRY_ANCHOR
#pragma once
#include <mbgl/util/geometry.hpp>
@@ -23,5 +22,3 @@ struct Anchor {
typedef std::vector<Anchor> Anchors;
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_BINPACK
#define MBGL_GEOMETRY_BINPACK
#pragma once
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/rect.hpp>
@@ -100,5 +99,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_BUFFER
#define MBGL_GEOMETRY_BUFFER
#pragma once
#include <mbgl/gl/gl.hpp>
#include <mbgl/gl/gl_object_store.hpp>
@@ -119,5 +118,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_CIRCLE_BUFFER
#define MBGL_GEOMETRY_CIRCLE_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
@@ -23,5 +22,3 @@ public:
};
} // namespace mbgl
#endif // MBGL_GEOMETRY_CIRCLE_BUFFER

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_COLLISIONBOX_BUFFER
#define MBGL_GEOMETRY_COLLISIONBOX_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
#include <array>
@@ -19,5 +18,3 @@ public:
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_DEBUG_FONT_BUFFER
#define MBGL_GEOMETRY_DEBUG_FONT_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
@@ -13,5 +12,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_TRIANGLE_ELEMENTS_BUFFER
#define MBGL_GEOMETRY_TRIANGLE_ELEMENTS_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
#include <mbgl/geometry/vao.hpp>
@@ -45,5 +44,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_FEATURE_INDEX
#define MBGL_GEOMETRY_FEATURE_INDEX
#pragma once
#include <mbgl/tile/geometry_tile.hpp>
#include <mbgl/util/grid_index.hpp>
@@ -72,5 +71,3 @@ private:
std::unordered_map<std::string, std::vector<std::string>> bucketLayerIDs;
};
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_FILL_BUFFER
#define MBGL_GEOMETRY_FILL_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
#include <vector>
@@ -17,5 +16,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_GLYPH_ATLAS
#define MBGL_GEOMETRY_GLYPH_ATLAS
#pragma once
#include <mbgl/geometry/binpack.hpp>
#include <mbgl/text/glyph_store.hpp>
@@ -58,5 +57,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_ICON_BUFFER
#define MBGL_GEOMETRY_ICON_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
@@ -16,5 +15,3 @@ namespace mbgl {
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_LINE_ATLAS
#define MBGL_GEOMETRY_LINE_ATLAS
#pragma once
#include <mbgl/gl/gl.hpp>
#include <mbgl/gl/gl_object_store.hpp>
@@ -42,5 +41,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_LINE_BUFFER
#define MBGL_GEOMETRY_LINE_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
@@ -36,5 +35,3 @@ public:
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_STATIC_VERTEX_BUFFER
#define MBGL_GEOMETRY_STATIC_VERTEX_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
@@ -22,5 +21,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_TEXT_BUFFER
#define MBGL_GEOMETRY_TEXT_BUFFER
#pragma once
#include <mbgl/geometry/buffer.hpp>
#include <array>
@@ -19,5 +18,3 @@ public:
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GEOMETRY_VAO
#define MBGL_GEOMETRY_VAO
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/gl/gl.hpp>
@@ -69,5 +68,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GL_DEBUG_MESSAGES
#define MBGL_GL_DEBUG_MESSAGES
#pragma once
#include <string>
@@ -25,5 +24,3 @@ struct group {
} // namespace debugging
} // namespace gl
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GL_GL_CONFIG
#define MBGL_GL_GL_CONFIG
#pragma once
#include <cstdint>
#include <tuple>
@@ -111,5 +110,3 @@ public:
} // namespace gl
} // namespace mbgl
#endif // MBGL_RENDERER_GL_CONFIG

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_UTIL_GL_OBJECT_STORE
#define MBGL_MAP_UTIL_GL_OBJECT_STORE
#pragma once
#include <mbgl/gl/gl.hpp>
#include <mbgl/util/noncopyable.hpp>
@@ -137,5 +136,3 @@ public:
} // namespace gl
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_TEXTUREPOOL
#define MBGL_UTIL_TEXTUREPOOL
#pragma once
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/gl/gl.hpp>
@@ -37,5 +36,3 @@ private:
} // namespace gl
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_BACKGROUND_LAYER
#define MBGL_BACKGROUND_LAYER
#pragma once
#include <mbgl/style/style_layer.hpp>
#include <mbgl/style/paint_property.hpp>
@@ -35,5 +34,3 @@ inline bool StyleLayer::is<BackgroundLayer>() const {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_CIRCLE_LAYER
#define MBGL_CIRCLE_LAYER
#pragma once
#include <mbgl/style/style_layer.hpp>
#include <mbgl/style/paint_property.hpp>
@@ -45,5 +44,3 @@ inline bool StyleLayer::is<CircleLayer>() const {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_CUSTOM_LAYER
#define MBGL_CUSTOM_LAYER
#pragma once
#include <mbgl/style/style_layer.hpp>
@@ -44,5 +43,3 @@ inline bool StyleLayer::is<CustomLayer>() const {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_FILL_LAYER
#define MBGL_FILL_LAYER
#pragma once
#include <mbgl/style/style_layer.hpp>
#include <mbgl/style/paint_property.hpp>
@@ -46,5 +45,3 @@ inline bool StyleLayer::is<FillLayer>() const {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_LINE_LAYER
#define MBGL_LINE_LAYER
#pragma once
#include <mbgl/style/style_layer.hpp>
#include <mbgl/style/layout_property.hpp>
@@ -63,5 +62,3 @@ inline bool StyleLayer::is<LineLayer>() const {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RASTER_LAYER
#define MBGL_RASTER_LAYER
#pragma once
#include <mbgl/style/style_layer.hpp>
#include <mbgl/style/paint_property.hpp>
@@ -39,5 +38,3 @@ inline bool StyleLayer::is<RasterLayer>() const {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SYMBOL_LAYER
#define MBGL_SYMBOL_LAYER
#pragma once
#include <mbgl/style/style_layer.hpp>
#include <mbgl/style/layout_property.hpp>
@@ -93,5 +92,3 @@ inline bool StyleLayer::is<SymbolLayer>() const {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_CHANGE
#define MBGL_MAP_CHANGE
#pragma once
#include <cstdint>
@@ -23,5 +22,3 @@ enum MapChange : uint8_t {
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_TRANSFORM
#define MBGL_MAP_TRANSFORM
#pragma once
#include <mbgl/map/camera.hpp>
#include <mbgl/map/mode.hpp>
@@ -180,5 +179,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_TRANSFORM_STATE
#define MBGL_MAP_TRANSFORM_STATE
#pragma once
#include <mbgl/map/mode.hpp>
#include <mbgl/util/geo.hpp>
@@ -122,5 +121,3 @@ private:
};
} // namespace mbgl
#endif // MBGL_MAP_TRANSFORM_STATE

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_BUCKET
#define MBGL_RENDERER_BUCKET
#pragma once
#include <mbgl/gl/gl.hpp>
#include <mbgl/renderer/render_pass.hpp>
@@ -53,5 +52,3 @@ protected:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_CIRCLE_BUCKET
#define MBGL_RENDERER_CIRCLE_BUCKET
#pragma once
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/map/mode.hpp>
@@ -38,5 +37,3 @@ private:
};
} // namespace mbgl
#endif // MBGL_RENDERER_CIRCLE_BUCKET

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_DEBUGBUCKET
#define MBGL_RENDERER_DEBUGBUCKET
#pragma once
#include <mbgl/tile/tile_data.hpp>
#include <mbgl/map/mode.hpp>
@@ -36,5 +35,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_FILLBUCKET
#define MBGL_RENDERER_FILLBUCKET
#pragma once
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/tile/geometry_tile.hpp>
@@ -67,5 +66,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_FRAME_HISTORY
#define MBGL_RENDERER_FRAME_HISTORY
#pragma once
#include <array>
@@ -36,5 +35,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_LINEBUCKET
#define MBGL_RENDERER_LINEBUCKET
#pragma once
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/tile/geometry_tile.hpp>
@@ -67,5 +66,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_PAINTER
#define MBGL_RENDERER_PAINTER
#pragma once
#include <mbgl/map/transform_state.hpp>
@@ -242,5 +241,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_RASTERBUCKET
#define MBGL_RENDERER_RASTERBUCKET
#pragma once
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/util/raster.hpp>
@@ -27,5 +26,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_RENDER_PASS
#define MBGL_RENDERER_RENDER_PASS
#pragma once
#include <mbgl/util/traits.hpp>
@@ -26,5 +25,3 @@ constexpr inline RenderPass operator&(RenderPass a, RenderPass b) {
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_RENDERABLE
#define MBGL_RENDERER_RENDERABLE
#pragma once
#include <mbgl/util/clip_id.hpp>
@@ -10,5 +9,3 @@ struct Renderable {
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_SYMBOLBUCKET
#define MBGL_RENDERER_SYMBOLBUCKET
#pragma once
#include <mbgl/renderer/bucket.hpp>
#include <mbgl/tile/geometry_tile.hpp>
@@ -157,5 +156,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_BOX
#define MBGL_SHADER_SHADER_BOX
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -24,5 +23,3 @@ protected:
};
} // namespace mbgl
#endif // MBGL_SHADER_BOX_SHADER

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_CIRCLE_SHADER
#define MBGL_SHADER_CIRCLE_SHADER
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -20,5 +19,3 @@ public:
};
} // namespace mbgl
#endif // MBGL_SHADER_CIRCLE_SHADER

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_DOT
#define MBGL_SHADER_SHADER_DOT
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -19,5 +18,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_ICON
#define MBGL_SHADER_SHADER_ICON
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -29,5 +28,3 @@ protected:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_LINE
#define MBGL_SHADER_SHADER_LINE
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -28,5 +27,3 @@ private:
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_LINEPATTERN
#define MBGL_SHADER_SHADER_LINEPATTERN
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -35,5 +34,3 @@ private:
GLint a_data = -1;
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_LINESDF
#define MBGL_SHADER_SHADER_LINESDF
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -35,5 +34,3 @@ private:
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_OUTLINE
#define MBGL_SHADER_SHADER_OUTLINE
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -18,5 +17,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_OUTLINEPATTERN
#define MBGL_SHADER_SHADER_OUTLINEPATTERN
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -28,5 +27,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_PATTERN
#define MBGL_SHADER_SHADER_PATTERN
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -27,5 +26,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SHADER_PLAIN
#define MBGL_SHADER_SHADER_PLAIN
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -17,5 +16,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_SHADER_RASTER
#define MBGL_RENDERER_SHADER_RASTER
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -24,5 +23,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_SDF_SHADER
#define MBGL_SHADER_SDF_SHADER
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
@@ -40,5 +39,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_RENDERER_SHADER
#define MBGL_RENDERER_SHADER
#pragma once
#include <mbgl/gl/gl.hpp>
#include <mbgl/gl/gl_object_store.hpp>
@@ -32,5 +31,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SHADER_UNIFORM
#define MBGL_SHADER_UNIFORM
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/gl/gl.hpp>
@@ -59,5 +58,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_SOURCE
#define MBGL_MAP_SOURCE
#pragma once
#include <mbgl/tile/tile_id.hpp>
#include <mbgl/tile/tile_data.hpp>
@@ -108,5 +107,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_SOURCE_INFO
#define MBGL_MAP_SOURCE_INFO
#pragma once
#include <mbgl/style/types.hpp>
#include <mbgl/util/constants.hpp>
@@ -26,5 +25,3 @@ public:
};
} // namespace mbgl
#endif // MBGL_MAP_SOURCE_INFO

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_SOURCE_OBSERVER
#define MBGL_MAP_SOURCE_OBSERVER
#pragma once
#include <exception>
@@ -20,5 +19,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SPRITE_ATLAS
#define MBGL_SPRITE_ATLAS
#pragma once
#include <mbgl/geometry/binpack.hpp>
#include <mbgl/gl/gl.hpp>
@@ -101,5 +100,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SPRITE_PARSER
#define MBGL_SPRITE_PARSER
#pragma once
#include <mbgl/util/image.hpp>
#include <mbgl/util/noncopyable.hpp>
@@ -36,5 +35,3 @@ using SpriteParseResult = variant<
SpriteParseResult parseSprite(const std::string& image, const std::string& json);
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SPRITE_STORE
#define MBGL_SPRITE_STORE
#pragma once
#include <mbgl/sprite/sprite_image.hpp>
#include <mbgl/util/noncopyable.hpp>
@@ -69,5 +68,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_SPRITE_STORE_OBSERVER
#define MBGL_SPRITE_STORE_OBSERVER
#pragma once
#include <exception>
@@ -14,5 +13,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STORAGE_ASSET_FILE_SOURCE
#define MBGL_STORAGE_ASSET_FILE_SOURCE
#pragma once
#include <mbgl/storage/file_source.hpp>
@@ -22,5 +21,3 @@ private:
};
} // namespace mbgl
#endif // MBGL_STORAGE_ASSET_FILE_SOURCE

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STORAGE_HTTP_FILE_SOURCE
#define MBGL_STORAGE_HTTP_FILE_SOURCE
#pragma once
#include <mbgl/storage/file_source.hpp>
@@ -21,5 +20,3 @@ private:
};
} // namespace mbgl
#endif // MBGL_STORAGE_HTTP_FILE_SOURCE

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_CLASS_DICTIONARY
#define MBGL_STYLE_CLASS_DICTIONARY
#pragma once
#include <cstdint>
#include <string>
@@ -33,5 +32,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_FUNCTION
#define MBGL_STYLE_FUNCTION
#pragma once
#include <vector>
#include <utility>
@@ -27,5 +26,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_FUNCTION_EVALUATOR
#define MBGL_STYLE_FUNCTION_EVALUATOR
#pragma once
#include <mbgl/style/function.hpp>
#include <mbgl/util/interpolate.hpp>
@@ -41,5 +40,3 @@ struct Interpolator<Faded<T>>
}
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_LAYOUT_PROPERTY
#define MBGL_LAYOUT_PROPERTY
#pragma once
#include <mbgl/style/property_parsing.hpp>
#include <mbgl/style/function.hpp>
@@ -36,5 +35,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_PAINT_PROPERTY
#define MBGL_PAINT_PROPERTY
#pragma once
#include <mbgl/style/class_dictionary.hpp>
#include <mbgl/style/property_parsing.hpp>
@@ -144,5 +143,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_RENDER_ITEM
#define MBGL_STYLE_RENDER_ITEM
#pragma once
namespace mbgl {
@@ -20,5 +19,3 @@ struct RenderItem {
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_STYLE
#define MBGL_STYLE_STYLE
#pragma once
#include <mbgl/style/render_item.hpp>
#include <mbgl/style/zoom_history.hpp>
@@ -137,5 +136,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef STYLE_BUCKET_PARAMETERS
#define STYLE_BUCKET_PARAMETERS
#pragma once
#include <mbgl/map/mode.hpp>
#include <mbgl/style/filter.hpp>
@@ -60,5 +59,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef STYLE_CALCULATION_PARAMETERS
#define STYLE_CALCULATION_PARAMETERS
#pragma once
#include <mbgl/style/zoom_history.hpp>
#include <mbgl/util/chrono.hpp>
@@ -27,5 +26,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef STYLE_CASCADE_PARAMETERS
#define STYLE_CASCADE_PARAMETERS
#pragma once
#include <mbgl/map/mode.hpp>
#include <mbgl/util/chrono.hpp>
@@ -19,5 +18,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_STYLE_LAYER
#define MBGL_STYLE_STYLE_LAYER
#pragma once
#include <mbgl/style/types.hpp>
#include <mbgl/style/filter.hpp>
@@ -101,5 +100,3 @@ protected:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_STYLE_OBSERVER
#define MBGL_STYLE_STYLE_OBSERVER
#pragma once
#include <mbgl/text/glyph_store_observer.hpp>
#include <mbgl/sprite/sprite_store_observer.hpp>
@@ -22,5 +21,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_STYLE_PARSER
#define MBGL_STYLE_STYLE_PARSER
#pragma once
#include <mbgl/style/types.hpp>
#include <mbgl/style/style_layer.hpp>
@@ -54,5 +53,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef STYLE_RENDER_PARAMETERS
#define STYLE_RENDER_PARAMETERS
#pragma once
namespace mbgl {
@@ -14,5 +13,3 @@ public:
};
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef STYLE_UPDATE_PARAMETERS
#define STYLE_UPDATE_PARAMETERS
#pragma once
#include <mbgl/map/mode.hpp>
@@ -53,5 +52,3 @@ public:
};
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_ZOOM_HISTORY
#define MBGL_STYLE_ZOOM_HISTORY
#pragma once
#include <mbgl/util/chrono.hpp>
@@ -35,5 +34,3 @@ struct ZoomHistory {
}
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_CHECK_MAX_ANGLE
#define MBGL_TEXT_CHECK_MAX_ANGLE
#pragma once
#include <mbgl/tile/geometry_tile.hpp>
@@ -11,5 +10,3 @@ bool checkMaxAngle(const GeometryCoordinates &line, Anchor &anchor, const float
const float windowSize, const float maxAngle);
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_COLLISION_FEATURE
#define MBGL_TEXT_COLLISION_FEATURE
#pragma once
#include <mbgl/geometry/anchor.hpp>
#include <mbgl/text/shaping.hpp>
@@ -63,5 +62,3 @@ namespace mbgl {
const int segment, const float length, const float height);
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_COLLISION_TILE
#define MBGL_TEXT_COLLISION_TILE
#pragma once
#include <mbgl/text/collision_feature.hpp>
#include <mbgl/text/placement_config.hpp>
@@ -64,5 +63,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_GETANCHORS
#define MBGL_TEXT_GETANCHORS
#pragma once
#include <mbgl/geometry/anchor.hpp>
#include <mbgl/tile/geometry_tile.hpp>
@@ -12,5 +11,3 @@ Anchors getAnchors(const GeometryCoordinates &line, float spacing,
const float iconLeft, const float iconRight,
const float glyphSize, const float boxScale, const float overscaling);
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_GLYPH
#define MBGL_TEXT_GLYPH
#pragma once
#include <mbgl/text/glyph_range.hpp>
#include <mbgl/util/rect.hpp>
@@ -81,5 +80,3 @@ public:
};
} // end namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_GLYPH_PBF
#define MBGL_TEXT_GLYPH_PBF
#pragma once
#include <mbgl/text/glyph.hpp>
#include <mbgl/text/glyph_store.hpp>
@@ -36,5 +35,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_GLYPH_RANGE
#define MBGL_TEXT_GLYPH_RANGE
#pragma once
#include <utility>
#include <cstdint>
@@ -9,5 +8,3 @@ namespace mbgl {
typedef std::pair<uint16_t, uint16_t> GlyphRange;
} // end namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_GLYPH_SET
#define MBGL_TEXT_GLYPH_SET
#pragma once
#include <mbgl/text/glyph.hpp>
#include <mbgl/util/geometry.hpp>
@@ -21,5 +20,3 @@ private:
};
} // end namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_GLYPH_STORE
#define MBGL_TEXT_GLYPH_STORE
#pragma once
#include <mbgl/text/glyph.hpp>
#include <mbgl/text/glyph_set.hpp>
@@ -65,5 +64,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_TEXT_GLYPH_STORE_OBSERVER
#define MBGL_TEXT_GLYPH_STORE_OBSERVER
#pragma once
#include <mbgl/style/types.hpp>
#include <mbgl/text/glyph_range.hpp>
@@ -17,5 +16,3 @@ public:
};
} // namespace mbgl
#endif

Some files were not shown because too many files have changed in this diff Show More