[LLVMbugs] [Bug 16414] New: Preprocessing with ccc-analyzer fails in verbose mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 21 15:51:50 PDT 2013


            Bug ID: 16414
           Summary: Preprocessing with ccc-analyzer fails in verbose mode
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: kmowery at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10736
  --> http://llvm.org/bugs/attachment.cgi?id=10736&action=edit
patch for ccc-analyzer preprocessor mode

If scan-build is set in verbose mode (and sets the CCC_ANALYZER_LOG environment
variable) and ccc-analyzer is invoked in preprocessor mode (-E), ccc-analyzer
prints its invocation command and ruins the preprocessed file.

Since the preprocessor prints its output to STDOUT, ccc-analyzer should not
print is invocation to STDOUT as well.

I have attached a patch against ccc-analyzer that solves this issue, but it is
a little bit unclean. Basically, it checks the CCC_ANALYZER_LOG environment
variable only after it parses all its arguments.

I believe clang-3.3 has this issue as well, but other bugs are preventing me
from fully testing.

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/20130621/47917801/attachment.html>

More information about the llvm-bugs mailing list