[PATCH] D26311: Use AnalyzerOptions::getRegisteredCheckers() instead of clang/StaticAnalyzer/Checkers/Checkers.inc

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 7 14:27:51 PST 2016


alexfh added inline comments.


================
Comment at: clang-tidy/ClangTidy.cpp:297
+  const auto &RegisteredCheckers =
+      AnalyzerOptions::getRegisteredCheckers(IncludeExperimentalCheckers);
+  bool AnalyzerChecksEnabled = false;
----------------
hokein wrote:
> Since the default argument of  this function is `false` already. Can we use `AnalyzerOptions::getRegisteredCheckers();` directly?
I wanted to be explicit about this choice on the caller side as well.


https://reviews.llvm.org/D26311





More information about the cfe-commits mailing list