diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-23 15:16:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-31 09:34:46 +0100 |
commit | 84b396a235671ea77f1a9fa0d131cb56d7662737 (patch) | |
tree | 13d9de3d2b31424e785780864e084bd2d9315ff1 /cppcanvas | |
parent | c81d766dd4ff7d8b580b7fdc79db6e68c5f14204 (diff) |
new loplugin:namespaceindentation
check indentation of braces in namespace decls,
and the comments that often appear with them.
This is my penance for messing up the indentation with
clang-tidy-modernize-namespaces.
As such I have limited it to new-style namespaces for now,
and the check is off by default.
Change-Id: I4db7f10a81c79bc0eece8f8e3ee564da8bc7f168
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87723
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
18 files changed, 36 insertions, 36 deletions
diff --git a/cppcanvas/source/mtfrenderer/bitmapaction.cxx b/cppcanvas/source/mtfrenderer/bitmapaction.cxx index b427142a874a..8040c9a018c0 100644 --- a/cppcanvas/source/mtfrenderer/bitmapaction.cxx +++ b/cppcanvas/source/mtfrenderer/bitmapaction.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ namespace { @@ -214,6 +214,6 @@ namespace cppcanvas::internal rCanvas, rState ); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx b/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx index afaa100dce8f..8d63d30a335a 100644 --- a/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx +++ b/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ CachedPrimitiveBase::CachedPrimitiveBase( const CanvasSharedPtr& rCanvas, bool bOnlyRedrawWithSameTransform ) : mpCanvas( rCanvas ), @@ -76,6 +76,6 @@ namespace cppcanvas::internal return renderPrimitive( mxCachedPrimitive, rTransformation ); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index ca5b531138c7..14e3981547d5 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -229,7 +229,7 @@ namespace } namespace cppcanvas::internal - { +{ // state stack manipulators void VectorOfOutDevStates::clearStateStack() @@ -3069,6 +3069,6 @@ namespace cppcanvas::internal return false; } } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/lineaction.cxx b/cppcanvas/source/mtfrenderer/lineaction.cxx index ba479ddc9e9e..066a2e0052f1 100644 --- a/cppcanvas/source/mtfrenderer/lineaction.cxx +++ b/cppcanvas/source/mtfrenderer/lineaction.cxx @@ -37,7 +37,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ namespace { class LineAction : public Action @@ -149,6 +149,6 @@ namespace cppcanvas::internal rState); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx index 67e3fad6f720..f043162ee9f2 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.cxx +++ b/cppcanvas/source/mtfrenderer/mtftools.cxx @@ -37,7 +37,7 @@ using namespace ::com::sun::star; namespace cppcanvas::tools - { +{ void initRenderState( rendering::RenderState& renderState, const ::cppcanvas::internal::OutDevState& outdevState ) { @@ -666,6 +666,6 @@ namespace cppcanvas::tools createUnderlinePolyPolygon(rUnderlinePolyPoly, aStartPos, rLineWidth, rTextLineInfo); createStrikeoutPolyPolygon(rStrikeoutPolyPoly, aStartPos, rLineWidth, rTextLineInfo); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/pointaction.cxx b/cppcanvas/source/mtfrenderer/pointaction.cxx index 67e2af712cd4..0f2340d9ae74 100644 --- a/cppcanvas/source/mtfrenderer/pointaction.cxx +++ b/cppcanvas/source/mtfrenderer/pointaction.cxx @@ -38,7 +38,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ namespace { class PointAction : public Action @@ -168,6 +168,6 @@ namespace cppcanvas::internal { return std::make_shared<PointAction>( rPoint, rCanvas, rState, rColor ); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/polypolyaction.cxx b/cppcanvas/source/mtfrenderer/polypolyaction.cxx index 5f570d662bfc..6d679cbd0a81 100644 --- a/cppcanvas/source/mtfrenderer/polypolyaction.cxx +++ b/cppcanvas/source/mtfrenderer/polypolyaction.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ namespace { class PolyPolyAction : public CachedPrimitiveBase @@ -500,6 +500,6 @@ namespace cppcanvas::internal nTransparency ); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx index c6acfb330a11..277dc4e0d692 100644 --- a/cppcanvas/source/mtfrenderer/textaction.cxx +++ b/cppcanvas/source/mtfrenderer/textaction.cxx @@ -50,7 +50,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ namespace { void init( rendering::RenderState& o_rRenderState, @@ -2311,6 +2311,6 @@ namespace cppcanvas::internal } return ret; } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx b/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx index 5636b7608109..5512c0bdbf7d 100644 --- a/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx +++ b/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx @@ -57,7 +57,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ // free support functions // ====================== namespace @@ -471,6 +471,6 @@ namespace cppcanvas::internal rState ); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx index a233eda34453..2ccc1f0cbae5 100644 --- a/cppcanvas/source/tools/canvasgraphichelper.cxx +++ b/cppcanvas/source/tools/canvasgraphichelper.cxx @@ -32,7 +32,7 @@ using namespace ::com::sun::star; /* Implementation of CanvasGraphicHelper class */ namespace cppcanvas::internal - { +{ CanvasGraphicHelper::CanvasGraphicHelper( const CanvasSharedPtr& rParentCanvas ) : maClipPolyPolygon(), mpCanvas( rParentCanvas ) @@ -83,6 +83,6 @@ namespace cppcanvas::internal maRenderState.CompositeOperation = aOp; } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/tools/tools.cxx b/cppcanvas/source/tools/tools.cxx index 5813851e0065..a41f40b145c3 100644 --- a/cppcanvas/source/tools/tools.cxx +++ b/cppcanvas/source/tools/tools.cxx @@ -24,7 +24,7 @@ using namespace ::com::sun::star; namespace cppcanvas::tools - { +{ uno::Sequence< double > intSRGBAToDoubleSequence( IntSRGBA aColor ) { uno::Sequence< double > aRes( 4 ); @@ -44,6 +44,6 @@ namespace cppcanvas::tools static_cast<sal_uInt8>( 255*rColor[2] + .5 ), static_cast<sal_uInt8>( 255*rColor[3] + .5 ) ); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/wrapper/implbitmap.cxx b/cppcanvas/source/wrapper/implbitmap.cxx index f7465e5d7188..8ce319539523 100644 --- a/cppcanvas/source/wrapper/implbitmap.cxx +++ b/cppcanvas/source/wrapper/implbitmap.cxx @@ -27,7 +27,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ ImplBitmap::ImplBitmap( const CanvasSharedPtr& rParentCanvas, const uno::Reference< rendering::XBitmap >& rBitmap ) : @@ -106,6 +106,6 @@ namespace cppcanvas::internal { return mxBitmap; } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/wrapper/implbitmapcanvas.cxx b/cppcanvas/source/wrapper/implbitmapcanvas.cxx index c4751d2923eb..bb34f8e5aa3c 100644 --- a/cppcanvas/source/wrapper/implbitmapcanvas.cxx +++ b/cppcanvas/source/wrapper/implbitmapcanvas.cxx @@ -29,7 +29,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ ImplBitmapCanvas::ImplBitmapCanvas( const uno::Reference< rendering::XBitmapCanvas >& rCanvas ) : ImplCanvas( rCanvas ), mxBitmapCanvas( rCanvas ), @@ -54,6 +54,6 @@ namespace cppcanvas::internal { return std::make_shared<ImplBitmapCanvas>( *this ); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/wrapper/implcanvas.cxx b/cppcanvas/source/wrapper/implcanvas.cxx index da7eda676347..3a186404ce2e 100644 --- a/cppcanvas/source/wrapper/implcanvas.cxx +++ b/cppcanvas/source/wrapper/implcanvas.cxx @@ -32,7 +32,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ ImplCanvas::ImplCanvas( const uno::Reference< rendering::XCanvas >& xCanvas ) : maViewState(), @@ -111,6 +111,6 @@ namespace cppcanvas::internal return maViewState; } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/wrapper/implcustomsprite.cxx b/cppcanvas/source/wrapper/implcustomsprite.cxx index 624c15dee7e1..e30adf085374 100644 --- a/cppcanvas/source/wrapper/implcustomsprite.cxx +++ b/cppcanvas/source/wrapper/implcustomsprite.cxx @@ -26,7 +26,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ ImplCustomSprite::ImplCustomSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas, const uno::Reference< rendering::XCustomSprite >& rSprite, const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) : @@ -65,6 +65,6 @@ namespace cppcanvas::internal return mpLastCanvas; } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/wrapper/implpolypolygon.cxx b/cppcanvas/source/wrapper/implpolypolygon.cxx index a7d1124e61fb..1e8fc7c8b5f5 100644 --- a/cppcanvas/source/wrapper/implpolypolygon.cxx +++ b/cppcanvas/source/wrapper/implpolypolygon.cxx @@ -33,7 +33,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ ImplPolyPolygon::ImplPolyPolygon( const CanvasSharedPtr& rParentCanvas, const uno::Reference< rendering::XPolyPolygon2D >& rPolyPoly ) : CanvasGraphicHelper( rParentCanvas ), @@ -130,6 +130,6 @@ namespace cppcanvas::internal return mxPolyPoly; } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/wrapper/implsprite.cxx b/cppcanvas/source/wrapper/implsprite.cxx index 432a393a82dc..a7458d27a05a 100644 --- a/cppcanvas/source/wrapper/implsprite.cxx +++ b/cppcanvas/source/wrapper/implsprite.cxx @@ -28,7 +28,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas, const uno::Reference< rendering::XSprite >& rSprite, @@ -185,6 +185,6 @@ namespace cppcanvas::internal if( mxSprite.is() ) mxSprite->setPriority(fPriority); } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/wrapper/implspritecanvas.cxx b/cppcanvas/source/wrapper/implspritecanvas.cxx index a33615eb9ef3..65b36077bae8 100644 --- a/cppcanvas/source/wrapper/implspritecanvas.cxx +++ b/cppcanvas/source/wrapper/implspritecanvas.cxx @@ -28,7 +28,7 @@ using namespace ::com::sun::star; namespace cppcanvas::internal - { +{ ImplSpriteCanvas::TransformationArbiter::TransformationArbiter() : maTransformation() { @@ -103,6 +103,6 @@ namespace cppcanvas::internal return mxSpriteCanvas; } - } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |