[PATCH] D129892: [clang-format] Fix aligning of trailing comments after comment at the end of a namespace

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 15 13:00:26 PDT 2022


HazardyKnusperkeks added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:17468-17470
+               "// Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
+               "Nullam cursus nunc\n"
+               "// non",
----------------
Shouldn't this be aligned?


================
Comment at: clang/unittests/Format/FormatTest.cpp:17479
+               Style);
+  verifyFormat("namespace test {\n"
+               "class C;\n"
----------------
Why repeat this here with just a longer comment, or do I miss something?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129892



More information about the cfe-commits mailing list