r323664 - [analyzer] Fix -x language argument for C preprocessed sources
Jonathan Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 29 08:37:53 PST 2018
Author: jroelofs
Date: Mon Jan 29 08:37:53 2018
New Revision: 323664
URL: http://llvm.org/viewvc/llvm-project?rev=323664&view=rev
Log:
[analyzer] Fix -x language argument for C preprocessed sources
clang's -x option doesn't accept c-cpp-output as a language (even though
463eb6ab was merged, the driver still doesn't handle that).
This bug prevents testing C language projects when ccache is used.
Fixes #25851.
Investigation and patch by Dave Rigby.
Modified:
cfe/trunk/tools/scan-build/libexec/ccc-analyzer
Modified: cfe/trunk/tools/scan-build/libexec/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/libexec/ccc-analyzer?rev=323664&r1=323663&r2=323664&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/libexec/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/libexec/ccc-analyzer Mon Jan 29 08:37:53 2018
@@ -419,7 +419,7 @@ my %LangMap = (
'cc' => 'c++',
'C' => 'c++',
'ii' => 'c++-cpp-output',
- 'i' => $IsCXX ? 'c++-cpp-output' : 'c-cpp-output',
+ 'i' => $IsCXX ? 'c++-cpp-output' : 'cpp-output',
'm' => 'objective-c',
'mi' => 'objective-c-cpp-output',
'mm' => 'objective-c++',
@@ -439,7 +439,7 @@ my %LangsAccepted = (
"c" => 1,
"c++" => 1,
"objective-c++" => 1,
- "c-cpp-output" => 1,
+ "cpp-output" => 1,
"objective-c-cpp-output" => 1,
"c++-cpp-output" => 1
);
More information about the cfe-commits
mailing list