[Mlir-commits] [mlir] 820e438 - Apply clang-tidy fixes for readability-identifier-naming in MlirOptMain.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Feb 16 18:07:33 PST 2024


Author: Mehdi Amini
Date: 2024-02-16T18:07:10-08:00
New Revision: 820e438e7031832f7ed3d15e63530dc49c959528

URL: https://github.com/llvm/llvm-project/commit/820e438e7031832f7ed3d15e63530dc49c959528
DIFF: https://github.com/llvm/llvm-project/commit/820e438e7031832f7ed3d15e63530dc49c959528.diff

LOG: Apply clang-tidy fixes for readability-identifier-naming in MlirOptMain.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Tools/mlir-opt/MlirOptMain.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp b/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
index 5395aa2b502d78..f01c7631decb77 100644
--- a/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
+++ b/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
@@ -54,14 +54,14 @@ using namespace llvm;
 namespace {
 class BytecodeVersionParser : public cl::parser<std::optional<int64_t>> {
 public:
-  BytecodeVersionParser(cl::Option &O)
-      : cl::parser<std::optional<int64_t>>(O) {}
+  BytecodeVersionParser(cl::Option &o)
+      : cl::parser<std::optional<int64_t>>(o) {}
 
-  bool parse(cl::Option &O, StringRef /*argName*/, StringRef arg,
+  bool parse(cl::Option &o, StringRef /*argName*/, StringRef arg,
              std::optional<int64_t> &v) {
     long long w;
     if (getAsSignedInteger(arg, 10, w))
-      return O.error("Invalid argument '" + arg +
+      return o.error("Invalid argument '" + arg +
                      "', only integer is supported.");
     v = w;
     return false;


        


More information about the Mlir-commits mailing list