Apply clang-format to enum.h (#4905)

Recent changes moved away from the blessed layout.
This commit is contained in:
Avi Kivity 2026-08-30 18:16:33 +03:00 committed by GitHub
parent d0cec7ae2e
commit fa9590f63f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,8 @@ inline constexpr auto identifier_map = make_identifier_map<E>();
// Returns the identifier of the first enumerator of E equal to value or an
// empty string view if there is no such enumerator.
template <typename E> constexpr auto identifier_of(E value) -> std::string_view {
template <typename E>
constexpr auto identifier_of(E value) -> std::string_view {
constexpr size_t table_size = identifier_table_size<E>();
if constexpr (table_size != 0) {
// Values outside of the table wrap around and are rejected by the check.