[all-commits] [llvm/llvm-project] 33c9db: Add an explicit toggle for the static analyzer in ...

Nico Weber via All-commits all-commits at lists.llvm.org
Thu Sep 10 07:48:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 33c9dbbd380913e8ab7e5a8e82468f9f7d092187
      https://github.com/llvm/llvm-project/commit/33c9dbbd380913e8ab7e5a8e82468f9f7d092187
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M clang-tools-extra/CMakeLists.txt
    M clang-tools-extra/clang-tidy/CMakeLists.txt
    M clang-tools-extra/clang-tidy/ClangTidy.cpp
    M clang-tools-extra/clang-tidy/ClangTidyForceLinker.h
    A clang-tools-extra/clang-tidy/clang-tidy-config.h.cmake
    M clang-tools-extra/docs/clang-tidy/Contributing.rst
    M clang-tools-extra/test/CMakeLists.txt
    M clang-tools-extra/test/lit.cfg.py
    M clang-tools-extra/test/lit.site.cfg.py.in
    M clang/CMakeLists.txt
    M clang/cmake/caches/Android.cmake
    M clang/lib/CMakeLists.txt
    M llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn
    A llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/enable.gni
    M llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/tool/BUILD.gn
    M llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn

  Log Message:
  -----------
  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




More information about the All-commits mailing list