[PATCH] D57860: [analyzer] Validate checker option names and values
Balogh, Ádám via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 12 06:09:20 PDT 2019
baloghadamsoftware added inline comments.
================
Comment at: lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp:325
+ std::string FullOption =
+ (llvm::Twine() + FullName + ":" + OptionName).str();
+
----------------
Is this the most efficient way to concatenate `StringRef`s?
================
Comment at: lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp:443
+ StringRef SuppliedChecker(Config.first().substr(0, Pos));
+ StringRef SuppliedOption(Config.first().drop_front(Pos + 1));
----------------
What about `Config.first().split(":")`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57860/new/
https://reviews.llvm.org/D57860
More information about the cfe-commits
mailing list