[Mlir-commits] [mlir] e3b0e92 - [MLIR] Apply clang-tidy fixes for modernize-use-using in IRCore.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Aug 26 12:04:29 PDT 2025
Author: Mehdi Amini
Date: 2025-08-26T12:03:01-07:00
New Revision: e3b0e92912486d9135eeac06716bf74a18f07ea9
URL: https://github.com/llvm/llvm-project/commit/e3b0e92912486d9135eeac06716bf74a18f07ea9
DIFF: https://github.com/llvm/llvm-project/commit/e3b0e92912486d9135eeac06716bf74a18f07ea9.diff
LOG: [MLIR] Apply clang-tidy fixes for modernize-use-using in IRCore.cpp (NFC)
Added:
Modified:
mlir/lib/Bindings/Python/IRCore.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Bindings/Python/IRCore.cpp b/mlir/lib/Bindings/Python/IRCore.cpp
index d17a1e468e141..1c43c7b0974df 100644
--- a/mlir/lib/Bindings/Python/IRCore.cpp
+++ b/mlir/lib/Bindings/Python/IRCore.cpp
@@ -743,10 +743,10 @@ void PyMlirContext::clearOperation(MlirOperation op) {
}
void PyMlirContext::clearOperationsInside(PyOperationBase &op) {
- typedef struct {
+ using callBackData = struct {
PyOperation &rootOp;
bool rootSeen;
- } callBackData;
+ };
callBackData data{op.getOperation(), false};
// Mark all ops below the op that the passmanager will be rooted
// at (but not op itself - note the preorder) as invalid.
More information about the Mlir-commits
mailing list