[Mlir-commits] [mlir] [MLIR][NFC] Ignore clang-tidy `modernize-use-using` check in C code (PR #180326)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 6 22:59:05 PST 2026
https://github.com/PragmaTwice created https://github.com/llvm/llvm-project/pull/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.
>From 8d2be68d01f1537954089eb94d99678c1afaf622 Mon Sep 17 00:00:00 2001
From: PragmaTwice <twice at apache.org>
Date: Sat, 7 Feb 2026 14:52:38 +0800
Subject: [PATCH] [MLIR][NFC] Ignore clang-tidy modernize-use-using check in C
code
---
mlir/.clang-tidy | 2 ++
1 file changed, 2 insertions(+)
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