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

Mehdi Amini llvmlistbot at llvm.org
Fri Apr 15 01:01:31 PDT 2022


Author: Mehdi Amini
Date: 2022-04-15T08:01:04Z
New Revision: 4197475eb06ed8d6fd021414635fe21b50c6b1b7

URL: https://github.com/llvm/llvm-project/commit/4197475eb06ed8d6fd021414635fe21b50c6b1b7
DIFF: https://github.com/llvm/llvm-project/commit/4197475eb06ed8d6fd021414635fe21b50c6b1b7.diff

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

Added: 
    

Modified: 
    mlir/test/lib/Dialect/Test/TestTypes.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/Dialect/Test/TestTypes.cpp b/mlir/test/lib/Dialect/Test/TestTypes.cpp
index 833e90de2162a..f72b837cfc0ff 100644
--- a/mlir/test/lib/Dialect/Test/TestTypes.cpp
+++ b/mlir/test/lib/Dialect/Test/TestTypes.cpp
@@ -88,22 +88,22 @@ static llvm::hash_code test::hash_value(const FieldInfo &fi) { // NOLINT
 //===----------------------------------------------------------------------===//
 
 static LogicalResult parseCustomTypeA(AsmParser &parser,
-                                      FailureOr<int> &a_result) {
-  a_result.emplace();
-  return parser.parseInteger(*a_result);
+                                      FailureOr<int> &aResult) {
+  aResult.emplace();
+  return parser.parseInteger(*aResult);
 }
 
 static void printCustomTypeA(AsmPrinter &printer, int a) { printer << a; }
 
 static LogicalResult parseCustomTypeB(AsmParser &parser, int a,
-                                      FailureOr<Optional<int>> &b_result) {
+                                      FailureOr<Optional<int>> &bResult) {
   if (a < 0)
     return success();
   for (int i : llvm::seq(0, a))
     if (failed(parser.parseInteger(i)))
       return failure();
-  b_result.emplace(0);
-  return parser.parseInteger(**b_result);
+  bResult.emplace(0);
+  return parser.parseInteger(**bResult);
 }
 
 static void printCustomTypeB(AsmPrinter &printer, int a, Optional<int> b) {


        


More information about the Mlir-commits mailing list