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
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer
index 803b5e9..c182a68 100755
--- a/tools/scan-build/ccc-analyzer
+++ b/tools/scan-build/ccc-analyzer
@@ -315,6 +315,7 @@
my %CompileOptionMap = (
'-nostdinc' => 0,
'-fblocks' => 0,
+ '-fno-builtin' => 0,
'-fobjc-gc-only' => 0,
'-fobjc-gc' => 0,
'-ffreestanding' => 0,
@@ -365,6 +366,7 @@
my %LangMap = (
'c' => 'c',
+ 'cp' => 'c++',
'cpp' => 'c++',
'cc' => 'c++',
'i' => 'c-cpp-output',