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

Commit 479cccd

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in mlir-tblgen.cpp (NFC)
1 parent 77389e4 commit 479cccd

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

mlir/tools/mlir-tblgen/mlir-tblgen.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ using namespace llvm;
1818
using namespace mlir;
1919

2020
// Generator that prints records.
21-
GenRegistration printRecords("print-records", "Print all records to stdout",
22-
[](const RecordKeeper &records, raw_ostream &os) {
23-
os << records;
24-
return false;
25-
});
21+
static GenRegistration
22+
printRecords("print-records", "Print all records to stdout",
23+
[](const RecordKeeper &records, raw_ostream &os) {
24+
os << records;
25+
return false;
26+
});
2627

2728
int main(int argc, char **argv) { return MlirTblgenMain(argc, argv); }

0 commit comments

Comments
 (0)