Add an explicit toggle for the static analyzer in clang-tidy
authorNico Weber <thakis@chromium.org>
Thu, 3 Sep 2020 23:37:29 +0000 (19:37 -0400)
committerNico Weber <thakis@chromium.org>
Thu, 10 Sep 2020 14:48:17 +0000 (10:48 -0400)
commit33c9dbbd380913e8ab7e5a8e82468f9f7d092187
tree3be089a38154ae7d0ed2a0361742b2ee903eb665
parent018f6936dbcee63e0a1ffd3777e854150b8cf957
Add an explicit toggle for the static analyzer in clang-tidy

Instead of using CLANG_ENABLE_STATIC_ANALYZER for use of the
static analyzer in both clang and clang-tidy, add a second
toggle CLANG_TIDY_ENABLE_STATIC_ANALYZER.

This allows enabling the static analyzer in clang-tidy while
disabling it in clang.

Differential Revison: https://reviews.llvm.org/D87118
16 files changed:
clang-tools-extra/CMakeLists.txt
clang-tools-extra/clang-tidy/CMakeLists.txt
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidyForceLinker.h
clang-tools-extra/clang-tidy/clang-tidy-config.h.cmake [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/Contributing.rst
clang-tools-extra/test/CMakeLists.txt
clang-tools-extra/test/lit.cfg.py
clang-tools-extra/test/lit.site.cfg.py.in
clang/CMakeLists.txt
clang/cmake/caches/Android.cmake
clang/lib/CMakeLists.txt
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/enable.gni [new file with mode: 0644]
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/tool/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn