[LLVMbugs] [Bug 6791] New: rev 99053 broke string escapes for scan-build

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 6 00:35:15 PDT 2010


           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: kremenek at apple.com
        ReportedBy: uspoerlein at gmail.com
                CC: llvmbugs at cs.uiuc.edu


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 
-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
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_platform.h:46:10: error: expected

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.

More information about the llvm-bugs mailing list