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.
Paths
| Differential D87118
Add an explicit toggle for the static analyzer in clang-tidy ClosedPublic Authored by thakis on Sep 3 2020, 5:07 PM.
Details
Diff Detail Event TimelineHerald added subscribers: llvm-commits, ASDenysPetrov, dkrupp and 5 others. · View Herald Transcript Comment Actions @NoQ in particular has been working hard on the common infrastructure in between the static analyzer and clang-tidy, I'll add him :)
This revision is now accepted and ready to land.Sep 10 2020, 2:15 AM arichardson added inline comments.
Revision Contents
Diff 289832 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
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
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/tool/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn
|
Should this default to CLANG_ENABLE_STATIC_ANALYZER instead of ON?