[PATCH] D55823: [analyzer] Fix backward compatibility issue after D53280 'Emit an error for invalid -analyzer-config inputs'
George Karpenkov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 20 12:43:59 PST 2018
george.karpenkov added inline comments.
================
Comment at: lib/Driver/ToolChains/Clang.cpp:3700
+ // through them.
+ for (size_t Index = 0; Index < Args.size(); ++Index) {
+ if (StringRef(Args.getArgString(Index)).contains("-analyzer-config")) {
----------------
NoQ wrote:
> Needs an LLVM-style loop!~ :)
Shouldn't this be under else- for the previous branch? Otherwise it seems that the option would be added twice.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55823/new/
https://reviews.llvm.org/D55823
More information about the cfe-commits
mailing list