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

2021-09-10 Thread Alexander Richardson via Phabricator via cfe-commits
arichardson added inline comments. Comment at: clang/lib/CMakeLists.txt:24 add_subdirectory(IndexSerialization) -if(CLANG_ENABLE_STATIC_ANALYZER) - add_subdirectory(StaticAnalyzer) arichardson wrote: > thakis wrote: > > hans wrote: > > > Why does removing the

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

2021-09-10 Thread Alexander Richardson via Phabricator via cfe-commits
arichardson added inline comments. Herald added subscribers: manas, steakhal. Herald added a project: clang-tools-extra. Comment at: clang/lib/CMakeLists.txt:24 add_subdirectory(IndexSerialization) -if(CLANG_ENABLE_STATIC_ANALYZER) - add_subdirectory(StaticAnalyzer)

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

2020-09-10 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87118/new/ https://reviews.llvm.org/D87118 ___ cfe-commits mailing list

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

2020-09-09 Thread Nico Weber via Phabricator via cfe-commits
thakis added inline comments. Comment at: llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn:18 + } else { +values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=" ] + } thakis wrote: > thakis wrote: > > hans wrote: > > > Why not =0? > > Because it's a

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

2020-09-09 Thread Nico Weber via Phabricator via cfe-commits
thakis added inline comments. Comment at: llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn:18 + } else { +values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=" ] + } thakis wrote: > hans wrote: > > Why not =0? > Because it's a #cmakedefine01, and

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

2020-09-09 Thread Nico Weber via Phabricator via cfe-commits
thakis added inline comments. Comment at: clang-tools-extra/CMakeLists.txt:4 +option(CLANG_TIDY_ENABLE_STATIC_ANALYZER + "Include static analyzer checks in clang-tidy" ON) + hans wrote: > Should this default to CLANG_ENABLE_STATIC_ANALYZER instead of ON? I had

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

2020-09-07 Thread Kristóf Umann via Phabricator via cfe-commits
Szelethus added a reviewer: NoQ. Szelethus added a comment. Herald added a subscriber: Charusso. NoQ in particular has been working hard on the common infrastructure in between the static analyzer and clang-tidy, I'll add him :) CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87118/new/

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

2020-09-07 Thread Hans Wennborg via Phabricator via cfe-commits
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?

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

2020-09-03 Thread Nico Weber via Phabricator via cfe-commits
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