Commit 8e6582b8 by Derek Mauro Committed by Copybara-Service

Add a NOLINT to ABSL_UNREACHABLE() to disable the clang-tidy warning

that the assert can be a static_assert

PiperOrigin-RevId: 497161039
Change-Id: If714cb25ca1d9481ada94b3b5b4cb16a4dd4e85a
parent 8d0b869a
...@@ -222,6 +222,7 @@ ...@@ -222,6 +222,7 @@
// When NDEBUG is defined, reaching ABSL_UNREACHABLE() is undefined behavior. // When NDEBUG is defined, reaching ABSL_UNREACHABLE() is undefined behavior.
#define ABSL_UNREACHABLE() \ #define ABSL_UNREACHABLE() \
do { \ do { \
/* NOLINTNEXTLINE: misc-static-assert */ \
assert(false && "ABSL_UNREACHABLE reached"); \ assert(false && "ABSL_UNREACHABLE reached"); \
ABSL_INTERNAL_UNREACHABLE_IMPL(); \ ABSL_INTERNAL_UNREACHABLE_IMPL(); \
} while (false) } while (false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment