Restrict ABSL_ATTRIBUTE_NULL_AFTER_MOVE to clang >= 12.0, when support for
multiple clang::annotate arguments was added.

PiperOrigin-RevId: 904794075
Change-Id: Ie633d9a000d65386d64e6b43bbb15c3e7b5905b4
diff --git a/absl/base/attributes.h b/absl/base/attributes.h
index 327b222..5887fca 100644
--- a/absl/base/attributes.h
+++ b/absl/base/attributes.h
@@ -541,7 +541,8 @@
 // The clang-tidy check bugprone-use-after-move allows member functions of types
 // marked with this attribute to be called on objects that have been moved from;
 // without the attribute, this would result in a use-after-move warning.
-#if ABSL_HAVE_CPP_ATTRIBUTE(clang::annotate)
+#if ABSL_HAVE_CPP_ATTRIBUTE(clang::annotate) && defined(__clang__) && \
+    __clang_major__ >= 12
 #define ABSL_ATTRIBUTE_NULL_AFTER_MOVE                       \
   [[clang::annotate("clang-tidy", "bugprone-use-after-move", \
                     "null_after_move")]]