]> granicus.if.org Git - clang/commitdiff
Forward -fno-builtin to clang, add .cp as a supported
authorShantonu Sen <ssen@apple.com>
Sat, 3 Jul 2010 03:08:23 +0000 (03:08 +0000)
committerShantonu Sen <ssen@apple.com>
Sat, 3 Jul 2010 03:08:23 +0000 (03:08 +0000)
extension if you otherwise configure scan-build
to do c++ static analysis.

OKed by Ted

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107562 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index 803b5e9d4c80a2516ee64d3da44ce17f78ff6634..c182a686202f2883e91ee29ac1519e19b73ebdae 100755 (executable)
@@ -315,6 +315,7 @@ sub Analyze {
 my %CompileOptionMap = (
   '-nostdinc' => 0,
   '-fblocks' => 0,
+  '-fno-builtin' => 0,
   '-fobjc-gc-only' => 0,
   '-fobjc-gc' => 0,
   '-ffreestanding' => 0,
@@ -365,6 +366,7 @@ my %IgnoredOptionMap = (
 
 my %LangMap = (
   'c'   => 'c',
+  'cp'  => 'c++',
   'cpp' => 'c++',
   'cc'  => 'c++',
   'i'   => 'c-cpp-output',