We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074a32a commit af4c589Copy full SHA for af4c589
absl/base/attributes.h
@@ -816,8 +816,11 @@
816
//
817
// See also the upstream documentation:
818
// https://clang.llvm.org/docs/AttributeReference.html#lifetimebound
819
+// https://learn.microsoft.com/en-us/cpp/code-quality/c26816?view=msvc-170
820
#if ABSL_HAVE_CPP_ATTRIBUTE(clang::lifetimebound)
821
#define ABSL_ATTRIBUTE_LIFETIME_BOUND [[clang::lifetimebound]]
822
+#elif ABSL_HAVE_CPP_ATTRIBUTE(msvc::lifetimebound)
823
+#define ABSL_ATTRIBUTE_LIFETIME_BOUND [[msvc::lifetimebound]]
824
#elif ABSL_HAVE_ATTRIBUTE(lifetimebound)
825
#define ABSL_ATTRIBUTE_LIFETIME_BOUND __attribute__((lifetimebound))
826
#else
0 commit comments