[PATCH] D57860: [analyzer] Validate checker option names and values

Whisperity via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 03:35:09 PDT 2019


whisperity added inline comments.


================
Comment at: lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp:329
+
+  // Insertation was successful -- CmdLineOption's constructor will validate
+  // whether values received from plugins or TableGen files are correct.
----------------
Insertion


================
Comment at: lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp:340
+  if (OptionType == "bool") {
+    if (SuppliedValue != "true" && SuppliedValue != "false") {
+      if (AnOpts.ShouldEmitErrorsOnInvalidConfigValue) {
----------------
Does this mean that we no longer can give "1" and "0" for boolean checker options? Or was that //Tidy// who allowed such in the first place?


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

https://reviews.llvm.org/D57860





More information about the cfe-commits mailing list