Skip to content
Snippets Groups Projects
Commit d9d97265 authored by Shantonu Sen's avatar Shantonu Sen
Browse files

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
parent 4f0a3376
No related branches found
No related tags found
No related merge requests found
...@@ -315,6 +315,7 @@ sub Analyze { ...@@ -315,6 +315,7 @@ sub Analyze {
my %CompileOptionMap = ( my %CompileOptionMap = (
'-nostdinc' => 0, '-nostdinc' => 0,
'-fblocks' => 0, '-fblocks' => 0,
'-fno-builtin' => 0,
'-fobjc-gc-only' => 0, '-fobjc-gc-only' => 0,
'-fobjc-gc' => 0, '-fobjc-gc' => 0,
'-ffreestanding' => 0, '-ffreestanding' => 0,
...@@ -365,6 +366,7 @@ my %IgnoredOptionMap = ( ...@@ -365,6 +366,7 @@ my %IgnoredOptionMap = (
my %LangMap = ( my %LangMap = (
'c' => 'c', 'c' => 'c',
'cp' => 'c++',
'cpp' => 'c++', 'cpp' => 'c++',
'cc' => 'c++', 'cc' => 'c++',
'i' => 'c-cpp-output', 'i' => 'c-cpp-output',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment