Names like "c++defs.h-t" and "c++defs.h" are used by some build scripts.
} else {
# Ignore lines with no compiler commands.
- next if $line !~ /\b(cc\b|gcc\b|g\+\+|c\+\+)/;
+ next if $line !~ /\b(cc|gcc|g\+\+|c\+\+)(\s|\\)/;
# Ignore false positives.
#
c++ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-d.cc
test-d.cc:47:11: warning: unused variable 'test' [-Wunused-variable]
c++ -Wl,-z,defs -o test test-a.o test-b.o test-c.o test-d.o -ltest
+
+rm c++test.h
+c++\
+ test.c
CFLAGS missing (-Werror=format-security -fPIE): c++ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.cpp
CFLAGS missing (-fPIE): c++ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-d.cc
LDFLAGS missing (-Wl,-z,relro -fPIE -pie -Wl,-z,now): c++ -Wl,-z,defs -o test test-a.o test-b.o test-c.o test-d.o -ltest
+CFLAGS missing (-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIE): c++\\ test.c
+CPPFLAGS missing (-D_FORTIFY_SOURCE=2): c++\\ test.c
";