[libcxx-commits] [libcxx] b4194f0 - [libc++] Fix module_std_compat.sh.cpp with new versions of clang-tidy (#170446)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Dec 4 14:09:55 PST 2025
Author: Nikolas Klauser
Date: 2025-12-04T17:09:51-05:00
New Revision: b4194f0f5a83bb634e4f09c361f200673e8c4542
URL: https://github.com/llvm/llvm-project/commit/b4194f0f5a83bb634e4f09c361f200673e8c4542
DIFF: https://github.com/llvm/llvm-project/commit/b4194f0f5a83bb634e4f09c361f200673e8c4542.diff
LOG: [libc++] Fix module_std_compat.sh.cpp with new versions of clang-tidy (#170446)
clang-tidy doesn't run checks anymore in system headers by default in
new versions to reduce runtime. In this case it's problematic, since we
want to check system headers.
Added:
Modified:
libcxx/utils/libcxx/test/modules.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/test/modules.py b/libcxx/utils/libcxx/test/modules.py
index bd4fbe78c1cdc..b93846bf1788e 100644
--- a/libcxx/utils/libcxx/test/modules.py
+++ b/libcxx/utils/libcxx/test/modules.py
@@ -166,7 +166,7 @@ def process_module_partition(self, header, is_c_header):
f'" > {self.tmp_prefix}.{header}.cppm'
)
- # Extract the information of the module partition using lang-tidy
+ # Extract the information of the module partition using clang-tidy
print(
f"// RUN: {self.clang_tidy} {self.tmp_prefix}.{header}.cppm "
" --checks='-*,libcpp-header-exportable-declarations' "
@@ -222,6 +222,7 @@ def process_header(self, header, include, is_c_header):
print(f'// RUN: echo -e "' f"{include}" f'" > {self.tmp_prefix}.{header}.cpp')
print(
f"// RUN: {self.clang_tidy} {self.tmp_prefix}.{header}.cpp "
+ " --system-headers "
" --checks='-*,libcpp-header-exportable-declarations' "
" -config='{CheckOptions: [ "
" {"
More information about the libcxx-commits
mailing list