[PATCH] D87118: Add an explicit toggle for the static analyzer in clang-tidy
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 7 02:15:38 PDT 2020
hans added a comment.
Cool!
================
Comment at: clang-tools-extra/CMakeLists.txt:4
+option(CLANG_TIDY_ENABLE_STATIC_ANALYZER
+ "Include static analyzer checks in clang-tidy" ON)
+
----------------
Should this default to CLANG_ENABLE_STATIC_ANALYZER instead of ON?
================
Comment at: clang/lib/CMakeLists.txt:24
add_subdirectory(IndexSerialization)
-if(CLANG_ENABLE_STATIC_ANALYZER)
- add_subdirectory(StaticAnalyzer)
----------------
Why does removing the condition here work?
================
Comment at: llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn:18
+ } else {
+ values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=" ]
+ }
----------------
Why not =0?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87118/new/
https://reviews.llvm.org/D87118
More information about the cfe-commits
mailing list