[PATCH] D87118: Add an explicit toggle for the static analyzer in clang-tidy

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 17:07:10 PDT 2020


thakis created this revision.
thakis added a reviewer: hans.
Herald added subscribers: llvm-commits, ASDenysPetrov, dkrupp, donat.nagy, Szelethus, a.sidorin, baloghadamsoftware, mgorny.
Herald added a project: LLVM.
thakis requested review of this revision.

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.


https://reviews.llvm.org/D87118

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87118.289832.patch
Type: text/x-patch
Size: 13682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200904/6039a845/attachment-0001.bin>


More information about the cfe-commits mailing list