For example "test.cc". Also add another non-verbose test.
} else {
# Ignore lines with no compiler commands.
- next if $line !~ /\b(cc|gcc|g\+\+|c\+\+)(\s|\\)/;
+ next if $line !~ /\b((?<!\.)cc|gcc|g\+\+|c\+\+)(\s|\\)/;
# Ignore false positives.
#
Byte-compiling python modules...
Byte-compiling python modules (optimized versions) ...
+Compiling test/test.cc to ../build/test/test.cc
+
[ 22%] Building CXX object src/CMakeFiles/test/test.cpp.o
NONVERBOSE BUILD: CC libtest-d.lo
NONVERBOSE BUILD: CCLD libtest.la
NONVERBOSE BUILD: CC modules/server/test.c
+NONVERBOSE BUILD: Compiling test/test.cc to ../build/test/test.cc
NONVERBOSE BUILD: [ 22%] Building CXX object src/CMakeFiles/test/test.cpp.o
No compiler commands!
";