[PATCH] D138263: [clang-format] Supress aligning of trailing namespace comments

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 28 12:47:42 PDT 2023


HazardyKnusperkeks marked an inline comment as done.
HazardyKnusperkeks added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2964-2965
   if (FormatTok->is(tok::l_brace)) {
+    FormatToken *LBrace = FormatTok;
+    LBrace->setFinalizedType(TT_NamespaceLBrace);
+
----------------
owenpan wrote:
> Nit.
Of course, this is a remainder of trying to get the `MatchingParen`, will fix before commit.


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

https://reviews.llvm.org/D138263



More information about the cfe-commits mailing list