tint: Ignore clang warning in number.h

This commit is contained in:
Luke Street 2022-05-09 00:50:55 -04:00
parent c948b26cc5
commit 59d5fcfc9b
1 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,11 @@ using f32 = float;
namespace tint::number_suffixes {
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-identifier"
#endif
/// Literal suffix for i32 literals
inline i32 operator"" _i(unsigned long long int value) { // NOLINT
return i32(static_cast<int32_t>(value));
@ -81,6 +86,10 @@ inline u32 operator"" _u(unsigned long long int value) { // NOLINT
return u32(static_cast<uint32_t>(value));
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
} // namespace tint::number_suffixes
#endif // SRC_TINT_NUMBER_H_