[PATCH] D115647: [clang-format] FixNamespaceComments does not understand namespace aliases

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 13 12:26:51 PST 2021


HazardyKnusperkeks added inline comments.


================
Comment at: clang/lib/Format/NamespaceEndCommentsFixer.cpp:59
+      // Namespace alias
+      if (Tok->isOneOf(tok::equal, tok::semi))
+        return false;
----------------
Should only be equal, right?
Otherwise please add a test for semi.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115647



More information about the cfe-commits mailing list