[clang-tools-extra] [clang-tidy] Make `misc-use-internal-linkage` not diagnose symbols in importable module units (PR #188679)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 26 00:02:17 PDT 2026
================
@@ -1,7 +1,11 @@
-// RUN: %check_clang_tidy -std=c++20-or-later %s misc-use-internal-linkage %t -- -- -I%S/Inputs/use-internal-linkage
+// RUN: %check_clang_tidy -std=c++20-or-later %s misc-use-internal-linkage %t
module;
+void fn_in_global_module_fragment() {}
+int var_in_global_module_fragment;
+struct StructInGlobalModuleFragment {};
----------------
localspook wrote:
In that case I think it's safe to just remove this part of the test, since other tests already ensure we don't warn on symbols declared in headers.
https://github.com/llvm/llvm-project/pull/188679
More information about the cfe-commits
mailing list