Fixes bug 34701
When we encounter a namespace find the location of the left bracket.
Then if the text between the name and the left bracket contains a ':'
then it's a C++17 nested namespace.
Differential D38284
[clang-tidy] Fix google-readability-namespace-comments handling of C++17 nested namespaces predator5047 on Sep 26 2017, 11:07 AM. Authored by
Details
Fixes bug 34701 When we encounter a namespace find the location of the left bracket.
Diff Detail
Event TimelineComment Actions Could you add a test case for nested namespaces? I think it should be in a new file with C++17 enabled.
Comment Actions Address review comments:
Comment Actions Address review comments:
Comment Actions Aside from a small nit, this LGTM, thanks!
Comment Actions It looks like the latest patch was lost. I'll see whether it still applies cleanly... |