Skip to content

Commit

Permalink
[libc++] run clang-tidy on src/ in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
philnik777 committed Dec 27, 2024
1 parent 1ead155 commit cb62d54
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 16 additions & 1 deletion libcxx/src/.clang-tidy
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
InheritParentConfig: true

Checks: >
-readability-identifier-naming
-clang-analyzer-*,
-llvm-include-order,
-modernize-loop-convert,
-modernize-use-equals-delete,
-modernize-use-nullptr,
-modernize-use-override,
-readability-identifier-naming,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-simplify-boolean-expr,
# TODO: Consider enabling clang-analyzer. Without the checks clang-tidy runs 18x
# faster on my system.
2 changes: 2 additions & 0 deletions libcxx/utils/ci/run-buildbot
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ generic-cxx26)
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx26.cmake"
check-runtimes
check-abi-list
python3 $MONOREPO_ROOT/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \
-clang-tidy-binary clang-tidy-20 -warnings-as-errors \* -source-filter ".*libcxx/src.*" -p "${BUILD_DIR}"
;;
#
# Other compiler support
Expand Down

0 comments on commit cb62d54

Please sign in to comment.