[clang] [clang-format] Don't align comments over scopes (PR #68743)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 10 14:00:10 PDT 2023


================
@@ -20794,7 +20794,7 @@ TEST_F(FormatTest, CatchAlignArrayOfStructuresRightAlignment) {
   verifyFormat("int a[][] = {\n"
                "    {\n"
                "     {0, 2}, //\n"
-               " {1, 2}  //\n"
+               " {1, 2} //\n"
----------------
HazardyKnusperkeks wrote:

This one is was not aligned on purpose, just the way clang-format did handled such cases.

https://github.com/llvm/llvm-project/pull/68743


More information about the cfe-commits mailing list