From d5fb535058d4d97567b08064e0203f45c2c8370f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 1 Dec 2015 17:30:44 +0100 Subject: [core] add namespace comment to closing brace --- include/mbgl/util/chrono.hpp | 2 +- include/mbgl/util/constants.hpp | 6 +++--- include/mbgl/util/enum.hpp | 2 +- include/mbgl/util/exception.hpp | 4 ++-- include/mbgl/util/geo.hpp | 2 +- include/mbgl/util/gl_helper.hpp | 4 ++-- include/mbgl/util/image.hpp | 2 +- include/mbgl/util/mat4.hpp | 4 ++-- include/mbgl/util/math.hpp | 4 ++-- include/mbgl/util/noncopyable.hpp | 5 +++-- include/mbgl/util/projection.hpp | 2 +- include/mbgl/util/ptr.hpp | 4 ++-- include/mbgl/util/run_loop.hpp | 4 ++-- include/mbgl/util/std.hpp | 4 ++-- include/mbgl/util/string.hpp | 4 ++-- include/mbgl/util/time.hpp | 4 ++-- include/mbgl/util/unitbezier.hpp | 4 ++-- include/mbgl/util/utf.hpp | 3 ++- include/mbgl/util/vec.hpp | 2 +- include/mbgl/util/work_request.hpp | 2 +- include/mbgl/util/work_task.hpp | 2 +- 21 files changed, 36 insertions(+), 34 deletions(-) (limited to 'include/mbgl/util') diff --git a/include/mbgl/util/chrono.hpp b/include/mbgl/util/chrono.hpp index 9c99c7bcdf..ce005485bc 100644 --- a/include/mbgl/util/chrono.hpp +++ b/include/mbgl/util/chrono.hpp @@ -42,6 +42,6 @@ Milliseconds toMilliseconds(std::chrono::time_point<_Clock, _Duration> time_poin return asMilliseconds(toDuration<_Clock, _Duration>(time_point)); } -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp index bb5aad2af3..113a368128 100644 --- a/include/mbgl/util/constants.hpp +++ b/include/mbgl/util/constants.hpp @@ -17,7 +17,7 @@ extern const double M2PI; extern const double EARTH_RADIUS_M; extern const double LATITUDE_MAX; -} +} // namespace util namespace debug { @@ -32,8 +32,8 @@ extern const bool missingFontFaceWarning; extern const bool glyphWarning; extern const bool shapingWarning; -} +} // namespace debug -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/enum.hpp b/include/mbgl/util/enum.hpp index 3c3e4a5c4e..5d64ed6718 100644 --- a/include/mbgl/util/enum.hpp +++ b/include/mbgl/util/enum.hpp @@ -49,7 +49,7 @@ public: using name = ::mbgl::Enum)>; \ inline std::ostream& operator<<(std::ostream& os, type t) { return os << name(t).str(); } -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/exception.hpp b/include/mbgl/util/exception.hpp index 31fa693f8d..06098840a8 100644 --- a/include/mbgl/util/exception.hpp +++ b/include/mbgl/util/exception.hpp @@ -46,7 +46,7 @@ struct TileLoadingException : Exception { inline TileLoadingException(const std::string &msg) : Exception(msg) {} }; -} -} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp index 4112b183b2..2f0e4f6fdc 100644 --- a/include/mbgl/util/geo.hpp +++ b/include/mbgl/util/geo.hpp @@ -100,6 +100,6 @@ struct MetersBounds { } }; -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/gl_helper.hpp b/include/mbgl/util/gl_helper.hpp index 288fc2c681..7d104fb80e 100644 --- a/include/mbgl/util/gl_helper.hpp +++ b/include/mbgl/util/gl_helper.hpp @@ -84,7 +84,7 @@ using PreservePixelZoom = Preserve, getPixelZoom, setPixel using PreserveRasterPos = Preserve, getRasterPos, setRasterPos>; #endif -} -} +} // namespace gl +} // namespace mbgl #endif diff --git a/include/mbgl/util/image.hpp b/include/mbgl/util/image.hpp index b8e018f696..6188f6a404 100644 --- a/include/mbgl/util/image.hpp +++ b/include/mbgl/util/image.hpp @@ -36,6 +36,6 @@ using PremultipliedImage = Image; PremultipliedImage decodeImage(const std::string&); std::string encodePNG(const PremultipliedImage&); -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/mat4.hpp b/include/mbgl/util/mat4.hpp index 9c34332400..e5b508e547 100644 --- a/include/mbgl/util/mat4.hpp +++ b/include/mbgl/util/mat4.hpp @@ -42,7 +42,7 @@ void rotate_z(mat4& out, const mat4& a, double rad); void scale(mat4& out, const mat4& a, double x, double y, double z); void multiply(mat4& out, const mat4& a, const mat4& b); -} -} +} // namespace matrix +} // namespace mbgl #endif diff --git a/include/mbgl/util/math.hpp b/include/mbgl/util/math.hpp index 37b1dd3431..9be0568e12 100644 --- a/include/mbgl/util/math.hpp +++ b/include/mbgl/util/math.hpp @@ -130,7 +130,7 @@ T smoothstep(T edge0, T edge1, T x) { // (== number of bits required to store x) uint32_t ceil_log2(uint64_t x); -} -} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/noncopyable.hpp b/include/mbgl/util/noncopyable.hpp index ada701efc6..1789a36de9 100644 --- a/include/mbgl/util/noncopyable.hpp +++ b/include/mbgl/util/noncopyable.hpp @@ -14,10 +14,11 @@ protected: noncopyable( noncopyable const& ) = delete; noncopyable& operator=(noncopyable const& ) = delete; }; -} +} // namespace non_copyable_ typedef non_copyable_::noncopyable noncopyable; -}} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/projection.hpp b/include/mbgl/util/projection.hpp index aff223826a..f067db2e1f 100644 --- a/include/mbgl/util/projection.hpp +++ b/include/mbgl/util/projection.hpp @@ -50,6 +50,6 @@ public: } }; -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/ptr.hpp b/include/mbgl/util/ptr.hpp index 6e02f956f3..7e8f8ecc18 100644 --- a/include/mbgl/util/ptr.hpp +++ b/include/mbgl/util/ptr.hpp @@ -23,7 +23,7 @@ public: return ::std::shared_ptr::operator*(); } }; -} -} +} // namespace util +} // namespace mbgl #endif \ No newline at end of file diff --git a/include/mbgl/util/run_loop.hpp b/include/mbgl/util/run_loop.hpp index 85b8b8d665..3cf92f56d0 100644 --- a/include/mbgl/util/run_loop.hpp +++ b/include/mbgl/util/run_loop.hpp @@ -179,7 +179,7 @@ private: std::unique_ptr impl; }; -} -} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/std.hpp b/include/mbgl/util/std.hpp index 0e2d3346bf..bab5c1494d 100644 --- a/include/mbgl/util/std.hpp +++ b/include/mbgl/util/std.hpp @@ -24,7 +24,7 @@ void erase_if(Container &container, Predicate pred) { erase_if(container, container.begin(), container.end(), pred); } -} -} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/string.hpp b/include/mbgl/util/string.hpp index 672ead2443..9e2b2d8819 100644 --- a/include/mbgl/util/string.hpp +++ b/include/mbgl/util/string.hpp @@ -35,7 +35,7 @@ inline std::string sprintf(const std::string &msg, Args... args) { return sprintf(msg.c_str(), args...); } -} -} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/time.hpp b/include/mbgl/util/time.hpp index ec8dafa45e..181c961ab2 100644 --- a/include/mbgl/util/time.hpp +++ b/include/mbgl/util/time.hpp @@ -17,8 +17,8 @@ std::string rfc1123(std::time_t time); // YYYY-mm-dd HH:MM:SS e.g. "2015-11-26 16:11:23" std::string iso8601(std::time_t time); -} +} // namespace util -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/unitbezier.hpp b/include/mbgl/util/unitbezier.hpp index 095e15f809..ce34534d5d 100644 --- a/include/mbgl/util/unitbezier.hpp +++ b/include/mbgl/util/unitbezier.hpp @@ -115,7 +115,7 @@ private: double cy; }; -} -} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/utf.hpp b/include/mbgl/util/utf.hpp index d6ba2a1f2f..3d61609c0d 100644 --- a/include/mbgl/util/utf.hpp +++ b/include/mbgl/util/utf.hpp @@ -19,6 +19,7 @@ class utf8_to_utf32 { } }; -}} +} // namespace util +} // namespace mbgl #endif diff --git a/include/mbgl/util/vec.hpp b/include/mbgl/util/vec.hpp index 4d2d6f6a74..63fac9e032 100644 --- a/include/mbgl/util/vec.hpp +++ b/include/mbgl/util/vec.hpp @@ -122,6 +122,6 @@ struct vec4 { using Coordinate = vec2; -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/work_request.hpp b/include/mbgl/util/work_request.hpp index f2aa2bbacc..bd1d97ee70 100644 --- a/include/mbgl/util/work_request.hpp +++ b/include/mbgl/util/work_request.hpp @@ -19,6 +19,6 @@ private: std::shared_ptr task; }; -} +} // namespace mbgl #endif diff --git a/include/mbgl/util/work_task.hpp b/include/mbgl/util/work_task.hpp index 2224b211c4..a874625c81 100644 --- a/include/mbgl/util/work_task.hpp +++ b/include/mbgl/util/work_task.hpp @@ -16,6 +16,6 @@ public: virtual void cancel() = 0; }; -} +} // namespace mbgl #endif -- cgit v1.2.1