[LLVMbugs] [Bug 14443] New: scan-build skips C++ files with .C suffix (capital C).

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 27 08:04:37 PST 2012


             Bug #: 14443
           Summary: scan-build skips C++ files with .C suffix (capital C).
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: peeter.joot at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Our product uses .C suffixes for C++ code.  The compiler recognizes this
suffix, but the scan-build script does not, and skips such files silently:

A patch to fix:

--- llvm.orig/tools/clang/tools/scan-build/ccc-analyzer   2012-11-20
17:53:14.000000000 -0500
+++ ./ccc-analyzer   2012-11-26 19:19:31.000000000 -0500
@@ -384,6 +388,7 @@ my %IgnoredOptionMap = (

 my %LangMap = (
   'c'   => 'c',
+  'C'   => 'c++',
   'cp'  => 'c++',
   'cpp' => 'c++',
   'cxx' => 'c++',

I'd also suggest that some error handling for unrecognized file types be
implemented (something better than the somewhat confusing message than the "no
reports were generated, deleting directory ..." message.

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