http://llvm.org/bugs/show_bug.cgi?id=6791
Summary: rev 99053 broke string escapes for scan-build
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Hi,
preprocessor defines like -DPLATFORM_CONFIG_H=\"config_freebsd.h\" are no
longer passed to the static analyzer correctly. This has been broken in rev
99053. Before, the FreeBSD world sources could be analyzed correctly, now it is
erroring out for lots of the tools, observe:
/data/src/llvm/Release/bin/ccc-analyzer -O2 -pipe
-DPLATFORM_CONFIG_H=\"config_freebsd.h\"
-I/data/obj/data/src/freebsd-head/lib/libarchive -DWITH_OPENSSL -std=gnu99
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align
-Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wno-pointer-sign -c
/data/src/freebsd-head/lib/libarchive/archive_check_magic.c
In file included from <built-in>:111:
<command line>:2:28: error: missing terminating '"' character
#define PLATFORM_CONFIG_H \"config_freebsd.h\"
^
In file included from
/data/src/freebsd-head/lib/libarchive/archive_check_magic.c:26:
/data/src/freebsd-head/lib/libarchive/archive_platform.h:46:10: error: expected
"FILENAME" or <FILENAME>
#include PLATFORM_CONFIG_H
^
I'm not sure what triggered ddunbar to change this, but it's breaking the
scan-world <-> clang interaction.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs