[PATCH] D66042: [analyzer] Analysis: Silence checkers

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 14 07:34:36 PDT 2019


Szelethus added inline comments.


================
Comment at: clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp:468-502
 void CheckerRegistry::validateCheckerOptions() const {
   for (const auto &Config : AnOpts.Config) {
 
     StringRef SuppliedChecker;
     StringRef SuppliedOption;
     std::tie(SuppliedChecker, SuppliedOption) = Config.getKey().split(':');
 
----------------
Also, you can validate whether the user-provided checker/package names actually exist by modifying this function a bit.

Only if you feel like it, I don't insist :)


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66042/new/

https://reviews.llvm.org/D66042





More information about the cfe-commits mailing list