[analyzer] scan-build: match whitespace instead of word boundaries around flags.

Because neither ' ' nor '-' is alphanumeric, \b won't match between them!
Since in this case we know our output is coming from a -### invocation,
we should always have spaces on both sides of the flag we're trying to match,
"-cc1".

llvm-svn: 204356
This commit is contained in:
Jordan Rose 2014-03-20 16:37:54 +00:00
parent 134a8a6311
commit 428f2e980a
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ sub GetCCArgs {
close(TO_PARENT); close(TO_PARENT);
my $line; my $line;
while (<FROM_CHILD>) { while (<FROM_CHILD>) {
next if (!/\b-cc1\b/); next if (!/\s-cc1\s/);
$line = $_; $line = $_;
} }