[PATCH] D157568: [clang-format] Handle NamespaceMacro string arg for FixNamespaceComments

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 13 11:46:25 PDT 2023


HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Format/NamespaceEndCommentsFixer.cpp:177
       llvm::Regex("^/[/*] *(end (of )?)? *(anonymous|unnamed)? *"
-                  "([a-zA-Z0-9_]+)\\(([a-zA-Z0-9:_]*)\\)\\.? *(\\*/)?$",
+                  "([a-zA-Z0-9_]+)\\(([a-zA-Z0-9:_]*|\".+\")\\)\\.? *(\\*/)?$",
                   llvm::Regex::IgnoreCase);
----------------
Maybe this?


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

https://reviews.llvm.org/D157568



More information about the cfe-commits mailing list