[clang] [Format] Fix isStartOfName to recognize attributes (PR #76804)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 3 09:48:23 PST 2024


================
@@ -10093,11 +10090,11 @@ TEST_F(FormatTest, ReturnTypeBreakingStyle) {
                getGoogleStyleWithColumns(40));
   verifyFormat("Tttttttttttttttttttttttt ppppppppppppppp\n"
                "    ABSL_GUARDED_BY(mutex1)\n"
-               "    ABSL_GUARDED_BY(mutex2);",
+               "        ABSL_GUARDED_BY(mutex2);",
----------------
HazardyKnusperkeks wrote:

This looks wrong.

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


More information about the cfe-commits mailing list