Skip to content

Commit 66fdde3

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in mlir-tblgen.cpp (NFC)
1 parent 5f38548 commit 66fdde3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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)