================
@@ -1698,8 +1698,6 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind 
Language) {
           /*BasedOnStyle=*/"google",
       },
   };
-  GoogleStyle.AttributeMacros.push_back("GUARDED_BY");
----------------
HazardyKnusperkeks wrote:

I'm open in all directions.

When clang-format does format attribute macros out of the box correctly, that 
is nice. But I wouldn't put (too much) work into it, if declaring them to 
clang-format as what they are fixes all misformatting.

Thus I would keep the entries in `AttributeMacros`.

https://github.com/llvm/llvm-project/pull/76804
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to