aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShantonu Sen <ssen@apple.com>2010-07-03 03:08:23 +0000
committerShantonu Sen <ssen@apple.com>2010-07-03 03:08:23 +0000
commitd9d97265f9f34b20f174591d88a11a97502c9dbe (patch)
treefdfa32070c2710d1350fb8392e1f9162c0b81416
parent4f0a3376a5e5c9028b0c736ac935895aabdb5fcd (diff)
Forward -fno-builtin to clang, add .cp as a supported
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
-rwxr-xr-xtools/scan-build/ccc-analyzer2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer
index 803b5e9d4c..c182a68620 100755
--- a/tools/scan-build/ccc-analyzer
+++ b/tools/scan-build/ccc-analyzer
@@ -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',