[tidy] Check llvm-namespace-comment
Ref: http://clang.llvm.org/extra/clang-tidy/checks/llvm-namespace-comment.html
This commit is contained in:
@@ -27,7 +27,7 @@ struct AnimationOptions;
|
||||
|
||||
namespace style {
|
||||
class Layer;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class Map : private util::noncopyable {
|
||||
public:
|
||||
|
||||
@@ -15,8 +15,8 @@ namespace mapbox {
|
||||
namespace sqlite {
|
||||
class Database;
|
||||
class Statement;
|
||||
}
|
||||
}
|
||||
} // namespace sqlite
|
||||
} // namespace mapbox
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class Tileset;
|
||||
|
||||
namespace style {
|
||||
class Parser;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
/**
|
||||
* Coordinates the request and storage of all resources for an offline region.
|
||||
|
||||
@@ -67,8 +67,8 @@ extern const char *revision;
|
||||
extern const char *string;
|
||||
extern const unsigned int number;
|
||||
|
||||
}} // namespace mbgl
|
||||
}} // namespace version
|
||||
}} // namespace mbgl
|
||||
""".format(
|
||||
major = tag[0],
|
||||
minor = tag[1],
|
||||
|
||||
@@ -21,7 +21,7 @@ class ShapeAnnotationImpl;
|
||||
|
||||
namespace style {
|
||||
class Style;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class AnnotationManager : private util::noncopyable {
|
||||
public:
|
||||
|
||||
@@ -9,7 +9,7 @@ class AnnotationManager;
|
||||
|
||||
namespace style {
|
||||
class UpdateParameters;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class AnnotationTile : public GeometryTile {
|
||||
public:
|
||||
|
||||
@@ -14,7 +14,7 @@ class CanonicalTileID;
|
||||
|
||||
namespace style {
|
||||
class Style;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class ShapeAnnotationImpl {
|
||||
public:
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace mbgl {
|
||||
|
||||
namespace style {
|
||||
class Style;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class CollisionTile;
|
||||
class CanonicalTileID;
|
||||
@@ -73,4 +73,4 @@ private:
|
||||
|
||||
std::unordered_map<std::string, std::vector<std::string>> bucketLayerIDs;
|
||||
};
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -17,11 +17,11 @@ class CollisionTile;
|
||||
|
||||
namespace gl {
|
||||
class ObjectStore;
|
||||
}
|
||||
} // namespace gl
|
||||
|
||||
namespace style {
|
||||
class Layer;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class Bucket : private util::noncopyable {
|
||||
public:
|
||||
|
||||
@@ -100,4 +100,4 @@ void CircleBucket::drawCircles(CircleShader& shader, gl::ObjectStore& store) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -12,7 +12,7 @@ class PlainShader;
|
||||
|
||||
namespace gl {
|
||||
class ObjectStore;
|
||||
}
|
||||
} // namespace gl
|
||||
|
||||
class DebugBucket : private util::noncopyable {
|
||||
public:
|
||||
|
||||
@@ -21,8 +21,8 @@ template <> struct nth<0, mbgl::GeometryCoordinate> {
|
||||
template <> struct nth<1, mbgl::GeometryCoordinate> {
|
||||
inline static int64_t get(const mbgl::GeometryCoordinate& t) { return t.y; };
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mapbox
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -168,4 +168,4 @@ void FillBucket::drawVertices(OutlinePatternShader& shader, gl::ObjectStore& sto
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -508,4 +508,4 @@ void LineBucket::drawLinePatterns(LinepatternShader& shader, gl::ObjectStore& st
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -310,4 +310,4 @@ void Painter::setDepthSublayer(int n) {
|
||||
config.depthRange = { nearDepth, farDepth };
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -61,7 +61,7 @@ struct ClipID;
|
||||
|
||||
namespace util {
|
||||
class ObjectStore;
|
||||
}
|
||||
} // namespace util
|
||||
|
||||
namespace style {
|
||||
class Style;
|
||||
@@ -72,7 +72,7 @@ class CircleLayer;
|
||||
class SymbolLayer;
|
||||
class RasterLayer;
|
||||
class BackgroundLayer;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
struct FrameData {
|
||||
std::array<uint16_t, 2> framebufferSize;
|
||||
|
||||
@@ -110,4 +110,4 @@ void Painter::renderBackground(const BackgroundLayer& layer) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -46,4 +46,4 @@ void Painter::renderCircle(CircleBucket& bucket,
|
||||
bucket.drawCircles(*circleShader, store);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -198,4 +198,4 @@ void Painter::renderFill(FillBucket& bucket,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -164,4 +164,4 @@ void Painter::renderLine(LineBucket& bucket,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -69,4 +69,4 @@ std::array<float, 3> Painter::spinWeights(float spin) {
|
||||
return spin_weights;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -271,4 +271,4 @@ void Painter::renderSymbol(SymbolBucket& bucket,
|
||||
config.activeTexture = GL_TEXTURE0;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -43,4 +43,4 @@ bool RasterBucket::needsClipping() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -13,7 +13,7 @@ class Bucket;
|
||||
namespace style {
|
||||
class Layer;
|
||||
class Source;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class RenderItem {
|
||||
public:
|
||||
|
||||
@@ -86,4 +86,4 @@ Resource Resource::tile(const std::string& urlTemplate,
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -159,5 +159,5 @@ private:
|
||||
const GeometryTileFeature& feature;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -61,6 +61,6 @@ namespace util {
|
||||
template <typename T>
|
||||
struct Interpolator<style::Faded<T>>
|
||||
: Uninterpolated {};
|
||||
}
|
||||
} // namespace util
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -12,7 +12,7 @@ class PositionedIcon;
|
||||
|
||||
namespace style {
|
||||
class SymbolLayoutProperties;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
struct SymbolQuad {
|
||||
explicit SymbolQuad(const Point<float> &tl_, const Point<float> &tr_,
|
||||
|
||||
@@ -11,7 +11,7 @@ struct SpriteAtlasElement;
|
||||
|
||||
namespace style {
|
||||
class SymbolLayoutProperties;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class PositionedIcon {
|
||||
public:
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace mbgl {
|
||||
|
||||
namespace style {
|
||||
class UpdateParameters;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class GeoJSONTile : public GeometryTile {
|
||||
public:
|
||||
|
||||
@@ -17,7 +17,7 @@ class FeatureIndex;
|
||||
|
||||
namespace style {
|
||||
class Style;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class GeometryTile : public Tile {
|
||||
public:
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace gl { class TexturePool; }
|
||||
namespace style {
|
||||
class Layer;
|
||||
class UpdateParameters;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class RasterTile : public Tile {
|
||||
public:
|
||||
|
||||
@@ -23,7 +23,7 @@ class TileObserver;
|
||||
|
||||
namespace style {
|
||||
class Layer;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class Tile : private util::noncopyable {
|
||||
public:
|
||||
|
||||
@@ -12,7 +12,7 @@ class Tileset;
|
||||
|
||||
namespace style {
|
||||
class UpdateParameters;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
template <typename T>
|
||||
class TileSource : private util::noncopyable {
|
||||
|
||||
@@ -188,4 +188,4 @@ void TileWorker::insertBucket(const std::string& name, std::unique_ptr<Bucket> b
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -27,7 +27,7 @@ class Bucket;
|
||||
namespace style {
|
||||
class Layer;
|
||||
class SymbolLayer;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
// We're using this class to shuttle the resulting buckets from the worker thread to the MapContext
|
||||
// thread. This class is movable-only because the vector contains movable-only value elements.
|
||||
|
||||
@@ -9,7 +9,7 @@ class Tileset;
|
||||
|
||||
namespace style {
|
||||
class UpdateParameters;
|
||||
}
|
||||
} // namespace style
|
||||
|
||||
class VectorTile : public GeometryTile {
|
||||
public:
|
||||
|
||||
@@ -79,4 +79,4 @@ int32_t GridIndex<T>::convertToCellCoord(int32_t x) const {
|
||||
}
|
||||
|
||||
template class GridIndex<IndexedSubfeature>;
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -35,4 +35,4 @@ private:
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -143,5 +143,5 @@ bool multiPolygonIntersectsMultiPolygon(const GeometryCollection& multiPolygonA,
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -9,5 +9,5 @@ bool multiPolygonIntersectsBufferedMultiPoint(const GeometryCollection&, const G
|
||||
bool multiPolygonIntersectsBufferedMultiLine(const GeometryCollection&, const GeometryCollection&, float radius);
|
||||
bool multiPolygonIntersectsMultiPolygon(const GeometryCollection&, const GeometryCollection&);
|
||||
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -17,5 +17,5 @@ class utf8_to_utf32 {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -4,4 +4,4 @@ namespace mbgl {
|
||||
|
||||
int runTests(int argc, char* argv[]);
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -14,4 +14,4 @@ int runTests(int argc, char *argv[]) {
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -73,5 +73,5 @@ void checkImage(const std::string& base,
|
||||
double imageThreshold = 0,
|
||||
double pixelThreshold = 0);
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace test
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -78,7 +78,7 @@ private:
|
||||
bool locked = false;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
TEST(OfflineDatabase, TEST_REQUIRES_WRITE(Create)) {
|
||||
using namespace mbgl;
|
||||
|
||||
Reference in New Issue
Block a user