[llvm] MetaRenamer: replaced command line options with pass parameters (PR #133975)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 1 23:59:07 PDT 2025


================
@@ -233,7 +232,12 @@ MODULE_PASS_WITH_PARAMS(
       return StructuralHashPrinterPass(errs(), Options);
     },
     parseStructuralHashPrinterPassOptions, "detailed;call-target-ignored")
-
+MODULE_PASS_WITH_PARAMS("metarenamer", "MetaRenamerPass",
+  [](MetaRenamerOptions Options) {
+    return MetaRenamerPass(Options);
+  },
+  parseMetaRenamerPassOptions,
+  "rename-exclude-alias-prefixes=S;rename-exclude-function-prefixes=S;rename-exclude-global-prefixes=S;rename-exclude-struct-prefixes=S;no-rename-only-inst;rename-only-inst")
----------------
paperchalice wrote:

`git clang-format --extensions=def` might handle this case.

https://github.com/llvm/llvm-project/pull/133975


More information about the llvm-commits mailing list