Skip to content

Commit 767f9e0

Browse files
committed
Disable clang-tidy on the attribute definition
1 parent 2fc6f1e commit 767f9e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/gc/Dialect/LLVMIR/IR/GENDialect.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ LogicalResult GENDialect::verifyOperationAttribute(Operation *op,
3434
}
3535

3636
void GENDialect::initialize() {
37+
// clang-tidy is confused by the registration mechanism
38+
// NOLINTBEGIN
3739
addAttributes<
3840
#define GET_ATTRDEF_LIST
3941
#include "gc/Dialect/LLVMIR/GenOpsAttributes.cpp.inc"
4042
>();
43+
// NOLINTEND
4144

4245
allowUnknownOperations();
4346
declarePromisedInterface<gpu::TargetAttrInterface, GenTargetAttr>();

0 commit comments

Comments
 (0)