[PATCH] [scan-build] Whitelist all -fXXXX options.
Liang Qi
cavendish.qi at gmail.com
Tue Oct 1 23:32:02 PDT 2013
Hi,
This change whitelists -fXXXX options. At least the use case here is to
pass -fPIE and -fPIC to compiler, more talks in
https://bugreports.qt-project.org/browse/QTBUG-33698 .
Review appreciated.
Regards,
Liang
http://llvm-reviews.chandlerc.com/D1805
Files:
tools/scan-build/ccc-analyzer
Index: tools/scan-build/ccc-analyzer
===================================================================
--- tools/scan-build/ccc-analyzer
+++ tools/scan-build/ccc-analyzer
@@ -488,6 +488,10 @@
push @CompileOpts,$Arg;
next;
}
+ if ($Arg =~ /-f.*/) {
+ push @CompileOpts,$Arg;
+ next;
+ }
# Handle the case where there isn't a space after -iquote
if ($Arg =~ /-iquote.*/) {
push @CompileOpts,$Arg;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131002/9c9220d6/attachment.html>
More information about the cfe-commits
mailing list