From: Simon Ruderich Date: Thu, 15 Mar 2012 21:39:57 +0000 (+0100) Subject: Fix false positive with file names containg "cc". X-Git-Tag: 0.01~119 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=4d6308c34fb0182db05846df83118bb83ad5497d;p=blhc%2Fblhc.git Fix false positive with file names containg "cc". For example "test.cc". Also add another non-verbose test. --- diff --git a/bin/blhc b/bin/blhc index aecc180..d966f93 100755 --- a/bin/blhc +++ b/bin/blhc @@ -242,7 +242,7 @@ while (my $line = <>) { } else { # Ignore lines with no compiler commands. - next if $line !~ /\b(cc|gcc|g\+\+|c\+\+)(\s|\\)/; + next if $line !~ /\b((?