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

Mehdi Amini llvmlistbot at llvm.org
Wed Jan 17 08:52:29 PST 2024


Author: Mehdi Amini
Date: 2024-01-17T08:51:41-08:00
New Revision: 04e2a5d9837959522eb0ab7b7da499e34a0f07ae

URL: https://github.com/llvm/llvm-project/commit/04e2a5d9837959522eb0ab7b7da499e34a0f07ae
DIFF: https://github.com/llvm/llvm-project/commit/04e2a5d9837959522eb0ab7b7da499e34a0f07ae.diff

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

Added: 
    

Modified: 
    mlir/lib/Dialect/IRDL/IRDLLoading.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/IRDL/IRDLLoading.cpp b/mlir/lib/Dialect/IRDL/IRDLLoading.cpp
index a95235f407b0c8..9ab7ae2a90820e 100644
--- a/mlir/lib/Dialect/IRDL/IRDLLoading.cpp
+++ b/mlir/lib/Dialect/IRDL/IRDLLoading.cpp
@@ -491,10 +491,10 @@ static bool getBases(Operation *op, SmallPtrSet<TypeID, 4> &paramIds,
                      SmallPtrSet<TypeID, 4> &isIds) {
   // For `irdl.any_of`, we get the bases from all its arguments.
   if (auto anyOf = dyn_cast<AnyOfOp>(op)) {
-    bool has_any = false;
+    bool hasAny = false;
     for (Value arg : anyOf.getArgs())
-      has_any &= getBases(arg.getDefiningOp(), paramIds, paramIrdlOps, isIds);
-    return has_any;
+      hasAny &= getBases(arg.getDefiningOp(), paramIds, paramIrdlOps, isIds);
+    return hasAny;
   }
 
   // For `irdl.all_of`, we get the bases from the first argument.


        


More information about the Mlir-commits mailing list