[Mlir-commits] [mlir] 355b676 - [MLIR][NFC] Ignore clang-tidy `modernize-use-using` check in C code (#180326)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Feb 8 21:24:12 PST 2026
Author: Twice
Date: 2026-02-09T13:24:08+08:00
New Revision: 355b676f2fe419b02d1324dcc04e827d265a1d3e
URL: https://github.com/llvm/llvm-project/commit/355b676f2fe419b02d1324dcc04e827d265a1d3e
DIFF: https://github.com/llvm/llvm-project/commit/355b676f2fe419b02d1324dcc04e827d265a1d3e.diff
LOG: [MLIR][NFC] Ignore clang-tidy `modernize-use-using` check in C code (#180326)
In the MLIR C API headers, clang-tidy’s `modernize-use-using` check
reports a large number of type definitions that use `typedef`. In my
IDE, this even causes the `typedef` code to be shown as struck through.
However, in this case it is clearly not possible to replace them with
`using`. This PR suppresses the `modernize-use-using` check for the code
inside `extern "C"` blocks.
Added:
Modified:
mlir/.clang-tidy
Removed:
################################################################################
diff --git a/mlir/.clang-tidy b/mlir/.clang-tidy
index eb8cbbeb9723c..0d4a4b1214837 100644
--- a/mlir/.clang-tidy
+++ b/mlir/.clang-tidy
@@ -58,3 +58,5 @@ CheckOptions:
value: camelBack
- key: readability-identifier-naming.VariableCase
value: camelBack
+ - key: modernize-use-using.IgnoreExternC
+ value: true
More information about the Mlir-commits
mailing list