[Mlir-commits] [mlir] 66fdde3 - [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in mlir-tblgen.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Sep 2 08:28:34 PDT 2025


Author: Mehdi Amini
Date: 2025-09-02T08:27:07-07:00
New Revision: 66fdde3612f28d3460d4946c3d29a5e68e762e51

URL: https://github.com/llvm/llvm-project/commit/66fdde3612f28d3460d4946c3d29a5e68e762e51
DIFF: https://github.com/llvm/llvm-project/commit/66fdde3612f28d3460d4946c3d29a5e68e762e51.diff

LOG: [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in mlir-tblgen.cpp (NFC)

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/mlir-tblgen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/mlir-tblgen.cpp b/mlir/tools/mlir-tblgen/mlir-tblgen.cpp
index 6c4b619598eb6..9c5cc6a6f6f4d 100644
--- a/mlir/tools/mlir-tblgen/mlir-tblgen.cpp
+++ b/mlir/tools/mlir-tblgen/mlir-tblgen.cpp
@@ -18,10 +18,11 @@ using namespace llvm;
 using namespace mlir;
 
 // Generator that prints records.
-GenRegistration printRecords("print-records", "Print all records to stdout",
-                             [](const RecordKeeper &records, raw_ostream &os) {
-                               os << records;
-                               return false;
-                             });
+static GenRegistration
+    printRecords("print-records", "Print all records to stdout",
+                 [](const RecordKeeper &records, raw_ostream &os) {
+                   os << records;
+                   return false;
+                 });
 
 int main(int argc, char **argv) { return MlirTblgenMain(argc, argv); }


        


More information about the Mlir-commits mailing list