File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
InheritParentConfig : true
2
2
3
3
Checks : >
4
- -readability-identifier-naming
4
+ -clang-analyzer-*,
5
+
6
+ -llvm-include-order,
7
+
8
+ -modernize-loop-convert,
9
+ -modernize-use-equals-delete,
10
+ -modernize-use-nullptr,
11
+ -modernize-use-override,
12
+
13
+ -readability-identifier-naming,
14
+ -readability-function-cognitive-complexity,
15
+ -readability-function-size,
16
+ -readability-simplify-boolean-expr,
17
+
18
+ # TODO: Consider enabling clang-analyzer. Without the checks clang-tidy runs 18x faster on my system.
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ function generate-cmake() {
144
144
generate-cmake-base \
145
145
-DLLVM_ENABLE_RUNTIMES=" libcxx;libcxxabi;libunwind" \
146
146
-DLIBCXX_CXX_ABI=libcxxabi \
147
+ -DCMAKE_EXPORT_COMPILE_COMMANDS=On \
147
148
" ${@ } "
148
149
}
149
150
@@ -328,6 +329,8 @@ generic-cxx26)
328
329
generate-cmake -C " ${MONOREPO_ROOT} /libcxx/cmake/caches/Generic-cxx26.cmake"
329
330
check-runtimes
330
331
check-abi-list
332
+ python3 $MONOREPO_ROOT /clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \
333
+ -clang-tidy-binary clang-tidy-20 -warnings-as-errors \* -source-filter " .*libcxx/src.*" -p " ${BUILD_DIR} "
331
334
;;
332
335
#
333
336
# Other compiler support
You can’t perform that action at this time.
0 commit comments