summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorDerek Mauro <dmauro@google.com>2025-09-16 17:38:37 (GMT)
committerCopybara-Service <copybara-worker@google.com>2025-09-16 17:39:10 (GMT)
commit0934b7e112354d609133d2c5f973c402c9efc9b9 (patch)
treede0bcdd3d508815875b08cfb9b0189709c667a30 /googletest/include
parent4969d0ad540da8fc9944e99457361dc7e35943c2 (diff)
downloadgoogletest-main.zip
googletest-main.tar.gz
googletest-main.tar.bz2
Use an internal symbol for deprecate-and-inline that allowsHEADmain
the use of a deprecation message PiperOrigin-RevId: 807753856 Change-Id: I34b0c7c6faf34cad11ea2aca5ccd16bca16acdec
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/internal/gtest-port.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index 9bd41cd..f810d06 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -2322,6 +2322,13 @@ const char* StringFromGTestEnv(const char* flag, const char* default_val);
} // namespace internal
} // namespace testing
+#if GTEST_INTERNAL_HAVE_CPP_ATTRIBUTE(clang::annotate)
+#define GTEST_INTERNAL_DEPRECATE_AND_INLINE(msg) \
+ [[deprecated(msg), clang::annotate("inline-me")]]
+#else
+#define GTEST_INTERNAL_DEPRECATE_AND_INLINE(msg) [[deprecated(msg)]]
+#endif
+
#if defined(__cpp_lib_span) || (GTEST_INTERNAL_HAS_INCLUDE(<span>) && \
GTEST_INTERNAL_CPLUSPLUS_LANG >= 202002L)
#define GTEST_INTERNAL_HAS_STD_SPAN 1