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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to