Created attachment 19186
clang-tidy configuration file
This checks mishandles a correct trailing namespace comment and issues one warning for each namespace part.
For the correct code:
namespace a::b {} // namespace a::b
It issues warnings:
bug.cpp:1:18: warning: namespace 'a' ends with an unrecognized comment [google-readability-namespace-comments]
namespace a::b {} // namespace a::b
^
c:\workspace\bugs\clang-tidy\google-readability-namespace-comments\bug.cpp:1:11: note: namespace 'a' starts here
namespace a::b {} // namespace a::b
^
note: this fix will not be applied because it overlaps with another fix
bug.cpp:1:18: warning: namespace 'b' ends with an unrecognized comment [google-readability-namespace-comments]
namespace a::b {} // namespace a::b
^
c:\workspace\bugs\clang-tidy\google-readability-namespace-comments\bug.cpp:1:14: note: namespace 'b' starts here
namespace a::b {} // namespace a::b
^
note: this fix will not be applied because it overlaps with another fix
Suppressed 1 warnings (1 with check filters).
.clang-tidy
(195 bytes, text/plain)Created attachment 19186 clang-tidy configuration file
This checks mishandles a correct trailing namespace comment and issues one warning for each namespace part.
For the correct code:
It issues warnings: