aboutsummaryrefslogtreecommitdiff
path: root/absl/log/internal/conditions.h
diff options
context:
space:
mode:
authorDerek Mauro <dmauro@google.com>2024-07-01 09:32:18 -0700
committerCopybara-Service <copybara-worker@google.com>2024-07-01 09:33:14 -0700
commit649f58927db8f223098be81ab5d8a70469848806 (patch)
tree13ab5d607e85a7947e58e330ea2dbf4389ad7707 /absl/log/internal/conditions.h
parent57f04ad892729f798da520a80394cf25afe085e8 (diff)
downloadabseil-649f58927db8f223098be81ab5d8a70469848806.tar.gz
abseil-649f58927db8f223098be81ab5d8a70469848806.tar.bz2
abseil-649f58927db8f223098be81ab5d8a70469848806.zip
Deprecate `ABSL_ATTRIBUTE_NORETURN` in favor of the `[[noreturn]]`
standardized in C++11 Migrate all Abseil code to `[[noreturn]]`. Notably, https://github.com/abseil/abseil-cpp/issues/1698 reports that `[[noreturn]]` works better here. We can't migrate `ABSL_ATTRIBUTE_NORETURN` to use `[[noreturn]]` because the difference in accepted attribute placement breaks some code. PiperOrigin-RevId: 648395324 Change-Id: Icd3e9b837aac25f128e8994de099f1edb3cabccf
Diffstat (limited to 'absl/log/internal/conditions.h')
-rw-r--r--absl/log/internal/conditions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/log/internal/conditions.h b/absl/log/internal/conditions.h
index 645f3c23..9dc15db4 100644
--- a/absl/log/internal/conditions.h
+++ b/absl/log/internal/conditions.h
@@ -230,8 +230,8 @@ class LogEveryNSecState final {
// Helper routines to abort the application quietly
-ABSL_ATTRIBUTE_NORETURN inline void AbortQuietly() { abort(); }
-ABSL_ATTRIBUTE_NORETURN inline void ExitQuietly() { _exit(1); }
+[[noreturn]] inline void AbortQuietly() { abort(); }
+[[noreturn]] inline void ExitQuietly() { _exit(1); }
} // namespace log_internal
ABSL_NAMESPACE_END
} // namespace absl