Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 12aa79a

Browse files
committed
Don't warn on Metal const names
1 parent 109996e commit 12aa79a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

impeller/renderer/backend/metal/command_buffer_mtl.mm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
namespace impeller {
1010
namespace {
11+
12+
// NOLINTBEGIN(readability-identifier-naming)
13+
1114
// TODO(dnfield): remove this declaration when we no longer need to build on
1215
// machines with lower SDK versions than 11.0.
1316
#if !defined(MAC_OS_VERSION_11_0) || \
@@ -21,6 +24,8 @@ typedef NS_ENUM(NSInteger, MTLCommandEncoderErrorState) {
2124
} API_AVAILABLE(macos(11.0), ios(14.0));
2225
#endif
2326

27+
// NOLINTEND(readability-identifier-naming)
28+
2429
API_AVAILABLE(ios(14.0), macos(11.0))
2530
NSString* MTLCommandEncoderErrorStateToString(
2631
MTLCommandEncoderErrorState state) {
@@ -39,6 +44,8 @@ typedef NS_ENUM(NSInteger, MTLCommandEncoderErrorState) {
3944
return @"unknown";
4045
}
4146

47+
// NOLINTBEGIN(readability-identifier-naming)
48+
4249
// TODO(dnfield): This can be removed when all bots have been sufficiently
4350
// upgraded for MAC_OS_VERSION_12_0.
4451
#if !defined(MAC_OS_VERSION_12_0) || \
@@ -47,6 +54,8 @@ typedef NS_ENUM(NSInteger, MTLCommandEncoderErrorState) {
4754
constexpr int MTLCommandBufferErrorStackOverflow = 12;
4855
#endif
4956

57+
// NOLINTEND(readability-identifier-naming)
58+
5059
static NSString* MTLCommandBufferErrorToString(MTLCommandBufferError code) {
5160
switch (code) {
5261
case MTLCommandBufferErrorNone:

0 commit comments

Comments
 (0)