diff options
Diffstat (limited to 'runtime/base/macros.h')
-rw-r--r-- | runtime/base/macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/base/macros.h b/runtime/base/macros.h index f705469c89..3a9de5fecd 100644 --- a/runtime/base/macros.h +++ b/runtime/base/macros.h @@ -186,6 +186,9 @@ template<typename... T> void UNUSED(const T&...) {} // without the UNREACHABLE a return statement would be necessary. #define UNREACHABLE __builtin_unreachable +// Add the C++11 noreturn attribute. +#define NO_RETURN [[ noreturn ]] // NOLINT[whitespace/braces] [5] + // The FALLTHROUGH_INTENDED macro can be used to annotate implicit fall-through // between switch labels: // switch (x) { |