[clang] [clang-format] Add support for absl nullability macros (PR #130346)

Jan Voung via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 12 11:53:45 PDT 2025


================
@@ -12518,6 +12521,10 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
   verifyIndependentOfContext("MACRO(A *_Nonnull a);");
   verifyIndependentOfContext("MACRO(A *_Nullable a);");
   verifyIndependentOfContext("MACRO(A *_Null_unspecified a);");
+  verifyIndependentOfContext("MACRO(A *absl_nonnull a);", getGoogleStyle());
+  verifyIndependentOfContext("MACRO(A *absl_nullable a);", getGoogleStyle());
+  verifyIndependentOfContext("MACRO(A *absl_nullability_unknown a);",
+                             getGoogleStyle());
----------------
jvoung wrote:

SG done!

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


More information about the cfe-commits mailing list