mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 21:25:58 +00:00
tint: Ignore clang warning in number.h
This commit is contained in:
parent
c948b26cc5
commit
59d5fcfc9b
@ -71,6 +71,11 @@ using f32 = float;
|
|||||||
|
|
||||||
namespace tint::number_suffixes {
|
namespace tint::number_suffixes {
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wreserved-identifier"
|
||||||
|
#endif
|
||||||
|
|
||||||
/// Literal suffix for i32 literals
|
/// Literal suffix for i32 literals
|
||||||
inline i32 operator"" _i(unsigned long long int value) { // NOLINT
|
inline i32 operator"" _i(unsigned long long int value) { // NOLINT
|
||||||
return i32(static_cast<int32_t>(value));
|
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));
|
return u32(static_cast<uint32_t>(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace tint::number_suffixes
|
} // namespace tint::number_suffixes
|
||||||
|
|
||||||
#endif // SRC_TINT_NUMBER_H_
|
#endif // SRC_TINT_NUMBER_H_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user