[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 19 14:37:00 PDT 2025


================
@@ -0,0 +1,21 @@
+.. title:: clang-tidy - llvm-mlir-op-builder
+
+llvm-mlir-op-builder
+====================
+
+Flags usage of old form of invoking create on MLIR's ``OpBuilder`` and suggests
+new form.
----------------
vbvictor wrote:

I think we should write why the user should prefer new for, maybe the old one is deprecated?

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


More information about the cfe-commits mailing list