<div dir="ltr"><div>Hi,</div><div><br></div><div>This change whitelists -fXXXX options. At least the use case here is to pass -fPIE and -fPIC to compiler, more talks in <a href="https://bugreports.qt-project.org/browse/QTBUG-33698">https://bugreports.qt-project.org/browse/QTBUG-33698</a> .</div>
<div><br></div><div>Review appreciated.</div><div><br></div><div>Regards,</div><div>Liang</div><div><br></div><div><div id=":33l" class="" style="font-size:13.333333969116211px;margin-bottom:0px;margin-left:0px;padding-bottom:5px;font-family:arial,sans-serif">
<div id=":126" style="overflow:hidden"><a href="http://llvm-reviews.chandlerc.com/D1805" target="_blank">http://llvm-reviews.chandlerc.com/D1805</a><br><br>Files:<br>  tools/scan-build/ccc-analyzer<br><br>Index: tools/scan-build/ccc-analyzer<br>
===================================================================<br>--- tools/scan-build/ccc-analyzer<br>+++ tools/scan-build/ccc-analyzer<br>@@ -488,6 +488,10 @@<br>     push @CompileOpts,$Arg;<br>     next;<br>   }<br>
+  if ($Arg =~ /-f.*/) {<br>+    push @CompileOpts,$Arg;<br>+    next;<br>+  }<br>   # Handle the case where there isn't a space after -iquote<br>   if ($Arg =~ /-iquote.*/) {<br>     push @CompileOpts,$Arg;<div class="">
</div></div></div><div id=":43b" class="" style="font-size:13.333333969116211px;font-family:arial,sans-serif"></div></div><div><br></div><br></div>