summaryrefslogtreecommitdiff
path: root/absl/base/attributes.h
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-01-31 09:50:11 -0800
committerGravatar Derek Mauro <dmauro@google.com>2022-01-31 15:27:28 -0500
commit63d26fad49463561c2427a45aab283938ade10d9 (patch)
tree1b23aaa7fe57d425fc28240fab059eecf20f9ebb /absl/base/attributes.h
parent940c06c25d2953f44310b68eb8aab6114dba11fb (diff)
Export of internal Abseil changes
-- c475e8ac1ea163248415e7d4bdc05e3c47dd8f3d by Derek Mauro <dmauro@google.com>: Replace absl::bit_cast with std::bit_cast in C++20 Remove the deprecated implementation that is less-strict than the standard, and also relies on undefined behavior PiperOrigin-RevId: 425391711 -- dc97c996aed85161f0e490baafd3ed851e8bea9d by Abseil Team <absl-team@google.com>: Add enum example for ABSL_DEPRECATED() PiperOrigin-RevId: 425311634 GitOrigin-RevId: c475e8ac1ea163248415e7d4bdc05e3c47dd8f3d Change-Id: Id8f159b37fe3f3cace6ab7bce08daf9888c44bcf
Diffstat (limited to 'absl/base/attributes.h')
-rw-r--r--absl/base/attributes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/absl/base/attributes.h b/absl/base/attributes.h
index 4ab6fa27..91aabffe 100644
--- a/absl/base/attributes.h
+++ b/absl/base/attributes.h
@@ -656,6 +656,10 @@
// ABSL_DEPRECATED("Use DoThat() instead")
// void DoThis();
//
+// enum FooEnum {
+// kBar ABSL_DEPRECATED("Use kBaz instead"),
+// };
+//
// Every usage of a deprecated entity will trigger a warning when compiled with
// clang's `-Wdeprecated-declarations` option. This option is turned off by
// default, but the warnings will be reported by clang-tidy.