[LLVMbugs] [Bug 19735] New: CompilerInstance::ExecuteAction() prints error count to llvm::errs() when ShowCarets enabled

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 13 09:30:24 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19735

            Bug ID: 19735
           Summary: CompilerInstance::ExecuteAction() prints error count
                    to llvm::errs() when ShowCarets enabled
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tstellar at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

CompilerInstance::ExecuteAction() will print the number of errors and warnings
to llvm::errs() when ShowCarets is enabled.  This is an issue for applications
which use clang as a library who don't want output to be printed to stderr.

I'm not sure why this code is conditional on ShowCarets being enabled, but
there
is a FIXME at the top of the function that a raw_ostream parameter should be
used
instead of llvm::errs().

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140513/85d929d5/attachment.html>


More information about the llvm-bugs mailing list