[core] add namespace comment to closing brace
This commit is contained in:
@@ -9,6 +9,6 @@ namespace mbgl {
|
||||
using AnnotationID = uint32_t;
|
||||
using AnnotationIDs = std::vector<AnnotationID>;
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -17,6 +17,6 @@ public:
|
||||
const std::string icon;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -40,6 +40,6 @@ public:
|
||||
const Properties properties;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,6 @@ struct CameraOptions {
|
||||
std::function<void()> transitionFinishFn;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif /* MBGL_MAP_CAMERA */
|
||||
|
||||
@@ -30,7 +30,7 @@ struct CameraOptions;
|
||||
|
||||
namespace util {
|
||||
template <class T> class Thread;
|
||||
}
|
||||
} // namespace util
|
||||
|
||||
struct EdgeInsets {
|
||||
double top = 0;
|
||||
@@ -189,6 +189,6 @@ private:
|
||||
RenderState renderState = RenderState::never;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -80,6 +80,6 @@ public:
|
||||
protected:
|
||||
mbgl::Map *map = nullptr;
|
||||
};
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,6 +20,6 @@ public:
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -76,6 +76,6 @@ private:
|
||||
std::thread::id thread;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,6 @@ public:
|
||||
EnumType debug = 0;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -85,6 +85,6 @@ constexpr EventPermutation disabledEventPermutations[] = {
|
||||
{ EventSeverity::Debug, Event::Shader }
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -110,8 +110,8 @@ public:
|
||||
using glProc = void (*)();
|
||||
void InitializeExtensions(glProc (*getProcAddress)(const char *));
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace gl
|
||||
} // namespace mbgl
|
||||
|
||||
#ifdef GL_ES_VERSION_2_0
|
||||
#define glClearDepth glClearDepthf
|
||||
|
||||
@@ -72,6 +72,6 @@ private:
|
||||
static void platformRecord(EventSeverity severity, const std::string &msg);
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,7 @@ void showDebugImage(std::string name, const char *data, size_t width, size_t hei
|
||||
|
||||
// Shows an alpha image with the specified dimensions in a named window.
|
||||
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
|
||||
|
||||
@@ -35,6 +35,6 @@ public:
|
||||
const bool sdf;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace mbgl {
|
||||
|
||||
namespace util {
|
||||
template <typename T> class Thread;
|
||||
}
|
||||
} // namespace util
|
||||
|
||||
class DefaultFileSource : public FileSource {
|
||||
public:
|
||||
@@ -29,6 +29,6 @@ private:
|
||||
std::string accessToken;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,6 @@ public:
|
||||
virtual void put(const Resource &resource, std::shared_ptr<const Response> response, Hint hint) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -30,6 +30,6 @@ public:
|
||||
virtual std::unique_ptr<FileRequest> request(const Resource&, Callback) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace mbgl {
|
||||
|
||||
namespace util {
|
||||
class AsyncTask;
|
||||
}
|
||||
} // namespace util
|
||||
|
||||
class NetworkStatus {
|
||||
public:
|
||||
@@ -22,6 +22,6 @@ private:
|
||||
static std::set<util::AsyncTask*> observers;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,6 +32,6 @@ struct Resource {
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace mbgl {
|
||||
|
||||
namespace util {
|
||||
template <typename T> class Thread;
|
||||
}
|
||||
} // namespace util
|
||||
|
||||
class SQLiteCache : public FileCache {
|
||||
public:
|
||||
@@ -36,6 +36,6 @@ private:
|
||||
static std::weak_ptr<SQLiteCache> masterPtr;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -212,7 +212,7 @@ MBGL_DEFINE_ENUM_CLASS(TextTransformTypeClass, TextTransformType, {
|
||||
{ TextTransformType::Lowercase, "lowercase" },
|
||||
});
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -42,6 +42,6 @@ Milliseconds toMilliseconds(std::chrono::time_point<_Clock, _Duration> time_poin
|
||||
return asMilliseconds(toDuration<_Clock, _Duration>(time_point));
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
using name = ::mbgl::Enum<type, type##_names, sizeof(type##_names) / sizeof(::mbgl::EnumValue<type>)>; \
|
||||
inline std::ostream& operator<<(std::ostream& os, type t) { return os << name(t).str(); }
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ struct TileLoadingException : Exception {
|
||||
inline TileLoadingException(const std::string &msg) : Exception(msg) {}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -100,6 +100,6 @@ struct MetersBounds {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -84,7 +84,7 @@ using PreservePixelZoom = Preserve<std::array<double, 2>, getPixelZoom, setPixel
|
||||
using PreserveRasterPos = Preserve<std::array<double, 4>, getRasterPos, setRasterPos>;
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace gl
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,6 +36,6 @@ using PremultipliedImage = Image<ImageAlphaMode::Premultiplied>;
|
||||
PremultipliedImage decodeImage(const std::string&);
|
||||
std::string encodePNG(const PremultipliedImage&);
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -50,6 +50,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
return ::std::shared_ptr<T>::operator*();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
@@ -179,7 +179,7 @@ private:
|
||||
std::unique_ptr<Impl> impl;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,7 @@ void erase_if(Container &container, Predicate pred) {
|
||||
erase_if(container, container.begin(), container.end(), pred);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,7 +35,7 @@ inline std::string sprintf(const std::string &msg, Args... args) {
|
||||
return sprintf<max>(msg.c_str(), args...);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -115,7 +115,7 @@ private:
|
||||
double cy;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,6 +19,7 @@ class utf8_to_utf32 {
|
||||
}
|
||||
};
|
||||
|
||||
}}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -122,6 +122,6 @@ struct vec4 {
|
||||
|
||||
using Coordinate = vec2<int16_t>;
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,6 +19,6 @@ private:
|
||||
std::shared_ptr<WorkTask> task;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -16,6 +16,6 @@ public:
|
||||
virtual void cancel() = 0;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user