Skip to content

Commit e93c269

Browse files
committed
[libc++] run clang-tidy on src/ in the CI
1 parent 1ead155 commit e93c269

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

libcxx/src/.clang-tidy

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
InheritParentConfig: true
22

33
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.

libcxx/utils/ci/run-buildbot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ generic-cxx26)
328328
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx26.cmake"
329329
check-runtimes
330330
check-abi-list
331+
python3 $MONOREPO_ROOT/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \
332+
-clang-tidy-binary clang-tidy-20 -warnings-as-errors \* -source-filter ".*libcxx/src.*" -p "${BUILD_DIR}"
331333
;;
332334
#
333335
# Other compiler support

0 commit comments

Comments
 (0)