Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion libcxx/src/.clang-tidy
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
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.
1 change: 1 addition & 0 deletions libcxx/test/configs/cmake-bridge.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ config.recursiveExpansionLimit = 10
config.test_exec_root = os.path.join('@LIBCXX_BINARY_DIR@', 'test')

# Add substitutions for bootstrapping the test suite configuration
config.substitutions.append(('%{bin-dir}', '@LIBCXX_BINARY_DIR@'))
config.substitutions.append(('%{libcxx-dir}', '@LIBCXX_SOURCE_DIR@'))
config.substitutions.append(('%{install-prefix}', '@LIBCXX_TESTING_INSTALL_PREFIX@'))
config.substitutions.append(('%{include-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_INCLUDE_DIR@'))
Expand Down
11 changes: 11 additions & 0 deletions libcxx/test/libcxx/clang_tidy.sh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# ===----------------------------------------------------------------------===##

# REQUIRES: has-clang-tidy

# RUN: %{python} %{libcxx-dir}/../clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -clang-tidy-binary %{clang-tidy} -warnings-as-errors "*" -source-filter=".*libcxx/src.*" -quiet -p %{bin-dir}/..
1 change: 1 addition & 0 deletions libcxx/utils/ci/run-buildbot
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function generate-cmake() {
generate-cmake-base \
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
-DLIBCXX_CXX_ABI=libcxxabi \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
"${@}"
}

Expand Down
Loading