doc: Remove unused bugprone-lambda-function-name suppression

Now that the __func__ is no longer used, the
NOLINTBEGIN(bugprone-lambda-function-name) can be removed.

Also, re-format the NONFATAL_UNREACHABLE macro, while touching the
adjacent line.
This commit is contained in:
MarcoFalke committed 2025-11-06 13:50:42 +01:00
1 parent fae1d99651
commit fada379589
1 file changed
+2 -8
+2 -8
View File
@@ -93,9 +93,6 @@ constexpr T&& inline_assertion_check(LIFETIMEBOUND T&& val, [[maybe_unused]] con
return std::forward<T>(val); return std::forward<T>(val);
} }
// All macros may use __func__ inside a lambda, so put them under nolint.
// NOLINTBEGIN(bugprone-lambda-function-name)
#define STR_INTERNAL_BUG(msg) StrFormatInternalBug((msg), std::source_location::current()) #define STR_INTERNAL_BUG(msg) StrFormatInternalBug((msg), std::source_location::current())
/** /**
@@ -130,11 +127,8 @@ constexpr T&& inline_assertion_check(LIFETIMEBOUND T&& val, [[maybe_unused]] con
/** /**
* NONFATAL_UNREACHABLE() is a macro that is used to mark unreachable code. It throws a NonFatalCheckError. * NONFATAL_UNREACHABLE() is a macro that is used to mark unreachable code. It throws a NonFatalCheckError.
*/ */
#define NONFATAL_UNREACHABLE() \ #define NONFATAL_UNREACHABLE() \
throw NonFatalCheckError( \ throw NonFatalCheckError { "Unreachable code reached (non-fatal)", std::source_location::current() }
"Unreachable code reached (non-fatal)", std::source_location::current())
// NOLINTEND(bugprone-lambda-function-name)
#if defined(__has_feature) #if defined(__has_feature)
# if __has_feature(address_sanitizer) # if __has_feature(address_sanitizer)