[LLVMbugs] [Bug 13607] New: -fcolor-diagnostics in the compilation database

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 14 13:10:54 PDT 2012


             Bug #: 13607
           Summary: -fcolor-diagnostics in the compilation database
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: klimek at google.com
        ReportedBy: dblaikie at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When -fcolor-diagnostics is used explicitly by the build system (as it is in
the ninja build, since ninja pipes clang's output so Clang's terminal detection
doesn't enable colors by default) it ends up in the compilation database.

Once -fcolor-diagnostics is in the compilation database, it's always passed to
clang tool commands (such as clang-check).

This interferes with tools trying to parse the output of clang-check (such as
vim's error parsing support). The end result is that such tools (eg: vim)
cannot parse the errors from clang-check. This makes me sad.

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