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 /solenv | |
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 'solenv')
-rw-r--r-- | solenv/CompilerTest_compilerplugins_clang.mk | 1 | ||||
-rw-r--r-- | solenv/clang-format/blacklist | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/solenv/CompilerTest_compilerplugins_clang.mk b/solenv/CompilerTest_compilerplugins_clang.mk index 999d838ee36c..dab7501be1a6 100644 --- a/solenv/CompilerTest_compilerplugins_clang.mk +++ b/solenv/CompilerTest_compilerplugins_clang.mk @@ -48,6 +48,7 @@ $(eval $(call gb_CompilerTest_add_exception_objects,compilerplugins_clang, \ compilerplugins/clang/test/loopvartoosmall \ compilerplugins/clang/test/mapindex \ compilerplugins/clang/test/makeshared \ + compilerplugins/clang/test/namespaceindentation \ compilerplugins/clang/test/noexceptmove \ compilerplugins/clang/test/nullptr \ compilerplugins/clang/test/oncevar \ diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist index f5b6f62db424..c359063ec310 100644 --- a/solenv/clang-format/blacklist +++ b/solenv/clang-format/blacklist @@ -1786,6 +1786,7 @@ compilerplugins/clang/test/finalprotected.cxx compilerplugins/clang/test/flatten.cxx compilerplugins/clang/test/indentation.cxx compilerplugins/clang/test/loopvartoosmall.cxx +compilerplugins/clang/test/namespaceindentation.cxx compilerplugins/clang/test/oncevar.cxx compilerplugins/clang/test/oslendian-1.cxx compilerplugins/clang/test/oslendian-2.cxx |