<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>