[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_ANNOTATION
#define MBGL_ANNOTATION
#pragma once
#include <cstdint>
#include <vector>
@@ -10,5 +9,3 @@ using AnnotationID = uint32_t;
using AnnotationIDs = std::vector<AnnotationID>;
} // namespace mbgl
#endif

View File

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

View File

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

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GL_GL
#define MBGL_GL_GL
#pragma once
//#define GL_TRACK
@@ -164,5 +163,3 @@ void mbx_glTexImage2D(GLenum target,
GLenum type,
const GLvoid * data);
#endif
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GL_GL_HELPER
#define MBGL_GL_GL_HELPER
#pragma once
namespace mbgl {
namespace gl {
@@ -19,5 +18,3 @@ private:
} // namespace gl
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_GL_GL_VALUES
#define MBGL_GL_GL_VALUES
#pragma once
#include <cstdint>
#include <tuple>
@@ -286,9 +285,7 @@ struct RasterPos {
}
};
#endif
#endif // GL_ES_VERSION_2_0
} // namespace gl
} // namespace mbgl
#endif // MBGL_RENDERER_GL_CONFIG

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_CAMERA
#define MBGL_MAP_CAMERA
#pragma once
#include <mbgl/util/geo.hpp>
#include <mbgl/util/chrono.hpp>
@@ -76,5 +75,3 @@ struct AnimationOptions {
};
} // namespace mbgl
#endif /* MBGL_MAP_CAMERA */

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_MAP
#define MBGL_MAP_MAP
#pragma once
#include <mbgl/util/optional.hpp>
#include <mbgl/util/chrono.hpp>
@@ -186,5 +185,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_MODE
#define MBGL_MAP_MODE
#pragma once
#include <cstdint>
@@ -63,5 +62,3 @@ inline bool operator& (const MapDebugOptions& lhs, const MapDebugOptions& rhs) {
}
} // namespace mbgl
#endif // MBGL_MAP_MODE

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_UPDATE
#define MBGL_MAP_UPDATE
#pragma once
#include <mbgl/util/traits.hpp>
@@ -31,5 +30,3 @@ inline bool operator& (const Update& lhs, const Update& rhs) {
}
} // namespace mbgl
#endif // MBGL_MAP_UPDATE

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_MAP_VIEW
#define MBGL_MAP_VIEW
#pragma once
#include <mbgl/map/change.hpp>
#include <mbgl/util/chrono.hpp>
@@ -61,5 +60,3 @@ protected:
mbgl::Map *map = nullptr;
};
} // namespace mbgl
#endif

View File

@@ -1,7 +1,4 @@
#ifndef MBGL_MAIN
#define MBGL_MAIN
#pragma once
#include "map/map.hpp"
#include "map/view.hpp"
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_COMMON_SETTINGS_NSUSERDEFAULTS
#define MBGL_COMMON_SETTINGS_NSUSERDEFAULTS
#pragma once
#import <mbgl/ios/MGLTypes.h>
@@ -26,5 +25,3 @@ public:
};
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_COMMON_GLFW_VIEW
#define MBGL_COMMON_GLFW_VIEW
#pragma once
#include <mbgl/mbgl.hpp>
#include <mbgl/util/run_loop.hpp>
@@ -90,5 +89,3 @@ private:
GLFWwindow *window = nullptr;
bool dirty = false;
};
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_COMMON_HEADLESS_DISPLAY
#define MBGL_COMMON_HEADLESS_DISPLAY
#pragma once
#include <mbgl/platform/default/headless_view.hpp>
@@ -21,5 +20,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_COMMON_HEADLESS_VIEW
#define MBGL_COMMON_HEADLESS_VIEW
#pragma once
#ifdef __APPLE__
#include <TargetConditionals.h>
@@ -85,5 +84,3 @@ private:
};
} // namespace mbgl
#endif

View File

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

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_PLATFORM_EVENT
#define MBGL_PLATFORM_EVENT
#pragma once
#include <mbgl/util/enum.hpp>
@@ -88,5 +87,3 @@ constexpr EventPermutation disabledEventPermutations[] = {
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_PLATFORM_LOG
#define MBGL_PLATFORM_LOG
#pragma once
#include <mbgl/platform/event.hpp>
@@ -79,5 +78,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_PLATFORM_PLATFORM
#define MBGL_PLATFORM_PLATFORM
#pragma once
#include <memory>
#include <string>
@@ -25,5 +24,3 @@ void showDebugImage(std::string name, const char *data, size_t width, size_t hei
void showColorDebugImage(std::string name, const char *data, size_t logical_width, size_t logical_height, size_t width, size_t height);
} // namespace platform
} // namespace mbgl
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STORAGE_RESOURCE
#define MBGL_STORAGE_RESOURCE
#pragma once
#include <mbgl/storage/response.hpp>
#include <mbgl/util/optional.hpp>
@@ -68,5 +67,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STORAGE_RESPONSE
#define MBGL_STORAGE_RESPONSE
#pragma once
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/optional.hpp>
@@ -56,5 +55,3 @@ public:
std::ostream& operator<<(std::ostream&, Response::Error::Reason);
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_PROPERTY_TRANSITION
#define MBGL_STYLE_PROPERTY_TRANSITION
#pragma once
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/optional.hpp>
@@ -16,5 +15,3 @@ public:
};
} // namespace mbgl
#endif // MBGL_STYLE_PROPERTY_TRANSITION

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_STYLE_TYPES
#define MBGL_STYLE_TYPES
#pragma once
#include <mbgl/util/enum.hpp>
@@ -146,5 +145,3 @@ using CustomLayerDeinitializeFunction = void (*)(void* context);
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_CHRONO
#define MBGL_UTIL_CHRONO
#pragma once
#include <chrono>
#include <string>
@@ -42,5 +41,3 @@ constexpr std::chrono::duration<Rep, Period> abs(std::chrono::duration<Rep, Peri
} // namespace util
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_CONSTANTS
#define MBGL_UTIL_CONSTANTS
#pragma once
#include <mbgl/util/chrono.hpp>
@@ -59,5 +58,3 @@ extern const bool shapingWarning;
} // namespace debug
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_PLATFORM_DEFAULT_STYLES
#define MBGL_PLATFORM_DEFAULT_STYLES
#pragma once
#include <vector>
#include <string>
@@ -30,5 +29,3 @@ static const unsigned currentVersion = 9;
} // end namespace default_styles
} // end namespace util
} // end namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_ENUM
#define MBGL_UTIL_ENUM
#pragma once
#include <iosfwd>
#include <string>
@@ -51,5 +50,3 @@ public:
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_EXCEPTION
#define MBGL_UTIL_EXCEPTION
#pragma once
#include <stdexcept>
@@ -28,5 +27,3 @@ struct ShaderException : Exception {
} // namespace util
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_GEO
#define MBGL_UTIL_GEO
#pragma once
#include <mbgl/math/wrap.hpp>
#include <mbgl/util/constants.hpp>
@@ -216,5 +215,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_IMAGE
#define MBGL_UTIL_IMAGE
#pragma once
#include <string>
#include <memory>
@@ -49,5 +48,3 @@ PremultipliedImage decodeImage(const std::string&);
std::string encodePNG(const PremultipliedImage&);
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_NONCOPYABLE
#define MBGL_UTIL_NONCOPYABLE
#pragma once
namespace mbgl { namespace util {
@@ -20,5 +19,3 @@ typedef non_copyable_::noncopyable noncopyable;
} // namespace util
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_OPTIONAL
#define MBGL_UTIL_OPTIONAL
#pragma once
#include <experimental/optional>
@@ -9,5 +8,3 @@ template <typename T>
using optional = std::experimental::optional<T>;
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_PROJECTION
#define MBGL_UTIL_PROJECTION
#pragma once
#include <mbgl/util/constants.hpp>
#include <mbgl/util/geo.hpp>
@@ -42,5 +41,3 @@ public:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_RUN_LOOP
#define MBGL_UTIL_RUN_LOOP
#pragma once
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/util.hpp>
@@ -182,5 +181,3 @@ private:
} // namespace util
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_STRING
#define MBGL_UTIL_STRING
#pragma once
#include <string>
#include <cassert>
@@ -53,5 +52,3 @@ inline std::string toString(std::exception_ptr error) {
} // namespace util
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_TIMER
#define MBGL_UTIL_TIMER
#pragma once
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/chrono.hpp>
@@ -25,5 +24,3 @@ private:
} // namespace util
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_TRAITS
#define MBGL_UTIL_TRAITS
#pragma once
#include <type_traits>
@@ -11,5 +10,3 @@ constexpr auto underlying_type(T t) -> typename std::underlying_type<T>::type {
}
} // namespace mbgl
#endif // MBGL_UTIL_TRAITS

View File

@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MBGL_UTIL_UNITBEZIER
#define MBGL_UTIL_UNITBEZIER
#pragma once
#include <cmath>
@@ -117,5 +116,3 @@ private:
} // namespace util
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_UTIL
#define MBGL_UTIL_UTIL
#pragma once
#ifdef DEBUG
@@ -13,5 +12,3 @@
#define MBGL_VERIFY_THREAD(tid)
#endif
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_UTIL_WORK_REQUEST
#define MBGL_UTIL_WORK_REQUEST
#pragma once
#include <mbgl/util/async_request.hpp>
@@ -20,5 +19,3 @@ private:
};
} // namespace mbgl
#endif

View File

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

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ANDROID_JNI
#define MBGL_ANDROID_JNI
#pragma once
#include <string>
@@ -26,5 +25,3 @@ extern void detach_jni_thread(JavaVM* vm, JNIEnv** env, bool detach);
}
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_ANDROID_NATIVE_MAP_VIEW
#define MBGL_ANDROID_NATIVE_MAP_VIEW
#pragma once
#include <mbgl/map/map.hpp>
#include <mbgl/map/view.hpp>
@@ -98,5 +97,3 @@ private:
};
}
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_OFFLINE_DATABASE
#define MBGL_OFFLINE_DATABASE
#pragma once
#include <mbgl/storage/resource.hpp>
#include <mbgl/storage/offline.hpp>
@@ -111,5 +110,3 @@ private:
};
} // namespace mbgl
#endif

View File

@@ -1,5 +1,4 @@
#ifndef MBGL_BENCH_LOCATIONS
#define MBGL_BENCH_LOCATIONS
#pragma once
#include <vector>
#include <string>
@@ -19,5 +18,3 @@ extern const std::vector<Location> locations;
}
}
#endif

View File

@@ -18,10 +18,9 @@ shader_name, shader_type, extension = os.path.basename(input_file).split('.')
with open(input_file, "r") as f:
data = f.read()
content = """// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
content = """#pragma once
#ifndef MBGL_SHADER_{NAME}_{TYPE}
#define MBGL_SHADER_{NAME}_{TYPE}
// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
#include <mbgl/gl/gl.hpp>
@@ -38,8 +37,6 @@ constexpr const char* {type} = R"MBGL_SHADER(#version 120\n{data})MBGL_SHADER";
}} // namespace {name}
}} // namespace shaders
}} // namespace mbgl
#endif
""".format(
name = shader_name,
NAME = shader_name.upper(),

View File

@@ -44,8 +44,7 @@ else:
rev = DEFAULT_REV
header = """// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
#ifndef MBGL_UTIL_VERSION
#define MBGL_UTIL_VERSION
#pragma once
#define MBGL_VERSION 0x{major:02x}{minor:02x}{patch:02x}
#define MBGL_VERSION_STRING "{major}.{minor}.{patch}"
@@ -62,10 +61,8 @@ extern const char *revision;
extern const char *string;
extern const unsigned int number;
}}
}}
#endif
}} // namespace mbgl
}} // namespace version
""".format(
major = tag[0],
minor = tag[1],

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

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