[PATCH] D33263: [scan-build] Patch to scan-build tool to support "--target=<value>" flag
Haowei Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 16 15:48:20 PDT 2017
haowei created this revision.
The scan-build script provided by clang can be used to detect defects in code in the compile time. However, we discovered that the "--target=<value>" flag in clang is not properly handled by this script, which results in failures when analyzing projects that have used this flag in their makefile.
This single line of change allows scan-build script to properly handle the "--target=<value>" flag
https://reviews.llvm.org/D33263
Files:
tools/scan-build/libexec/ccc-analyzer
Index: tools/scan-build/libexec/ccc-analyzer
===================================================================
--- tools/scan-build/libexec/ccc-analyzer
+++ tools/scan-build/libexec/ccc-analyzer
@@ -385,7 +385,8 @@
'-target' => 1,
'-v' => 0,
'-mmacosx-version-min' => 0, # This is really a 1 argument, but always has '='
- '-miphoneos-version-min' => 0 # This is really a 1 argument, but always has '='
+ '-miphoneos-version-min' => 0, # This is really a 1 argument, but always has '='
+ '--target' => 0
);
my %IgnoredOptionMap = (
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33263.99219.patch
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170516/d8ab6edd/attachment.bin>
More information about the cfe-commits
mailing list