[PATCH] D123676: [clang-format] Fix WhitespaceSensitiveMacros not being honoured when macro closing parenthesis is followed by a newline.

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 14 02:08:20 PDT 2022


owenpan added inline comments.


================
Comment at: clang/lib/Format/FormatTokenLexer.cpp:1031-1035
+      if (it->second.Finalized) {
+        FormatTok->setFinalizedType(it->second.Type);
+      } else {
+        FormatTok->setType(it->second.Type);
+      }
----------------
It seems we can simply do this and leave the rest of `FormatTokenLexer` alone.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123676



More information about the cfe-commits mailing list