[PATCH] D61989: [clang-tidy] enable modernize-concat-nested-namespaces on header files

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 30 06:57:44 PST 2019


JonasToth added a comment.

Sorry for not responding to the review. I was very busy with other things and overlooked the mails :(



================
Comment at: clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp:82
     ast_matchers::MatchFinder *Finder) {
-  if (!getLangOpts().CPlusPlus17)
+  if (!getLangOpts().CPlusPlus17 && !getLangOpts().CPlusPlus2a)
     return;
----------------
We would need to update that line for each new standard, that won't happen :/
I think the opposite logic should be used here and blacklist known-not working standards (and C).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61989/new/

https://reviews.llvm.org/D61989





More information about the cfe-commits mailing list