<div dir="ltr">Hi<br><div><br>scan-build fails to analyse command line containing multiple -include option.<br></div><div>Bellow is a quick patch that (i believe) fix this.<br></div><div>This is my very first experience with perl, so it might be totally wrong.<br>
<br></div><div>Can it be integrated, or similar functionality ?<br><br></div><div>Julien<br></div><div><br></div><div>--- /usr/share/clang/scan-build/ccc-analyzer 2014-07-22 18:36:39.009334094 +0200<br>+++ ccc-analyzer 2014-07-22 18:38:18.833334082 +0200<br>
@@ -329,7 +329,6 @@<br> <br> my %CompileOptionMap = (<br> '-nostdinc' => 0,<br>- '-include' => 1,<br> '-idirafter' => 1,<br> '-imacros' => 1,<br> '-iprefix' => 1,<br>
@@ -610,6 +609,12 @@<br> next;<br> }<br> <br>+ if ($Arg =~ /^-include/) {<br>+ ++$i;<br>+ push @CompileOpts, $Arg, $ARGV[$i];<br>+ next;<br>+ }<br>+<br> if ($Arg =~ /^-f/) {<br> push @CompileOpts,$Arg;<br>
push @LinkOpts,$Arg;<br><br></div></div>