[LLVMbugs] [Bug 7349] New: -P flag strips all whitespace from preprocessed output

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 10 13:37:55 PDT 2010


           Summary: -P flag strips all whitespace from preprocessed output
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: evan at chromium.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=5009)
 --> (http://llvm.org/bugs/attachment.cgi?id=5009)
sample showing the problem

clang -E -P -x c++ clang-bug.cc

$ gcc -E -P -x c++ clang-bug.cc | wc -l
$ clang -E -P -x c++ clang-bug.cc | wc -l

WebKit relies on the whitespace in the output (!) in a perl script.

WebKit seems a bit crazy to me here, but perhaps it's worth making clang match

Revision: 105793

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