<br><br><div class="gmail_quote">On Mon, Dec 3, 2012 at 12:52 PM, Konstantin Tokarev <span dir="ltr"><<a href="mailto:annulen@yandex.ru" target="_blank">annulen@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
03.12.2012, 15:47, "Sujit Kamthe" <<a href="mailto:Sujit.Kamthe@kpitcummins.com">Sujit.Kamthe@kpitcummins.com</a>>:<br>
<div class="im">> Hi,<br>
><br>
> Is it possible to do static analysis only without pre-compiling the source code.<br>
<br>
</div>Yes. Static analysis is unrelated to compilation. However, it's usually much slower than regular compilation.<br>
<div class="im"><br>
><br>
> Can I just run some static analysis checks on the source code without specifying any dependencies (include files)?<br>
<br>
</div>Some tools like cppcheck can do it, however it's not possible with clang.<br>
<div class="im"><br>
> Doing this static analysis can be performed even if there are few compilation errors in the source code.<br>
<br>
</div>It's not possible to analyse invalid code properly.<br>
<div class="im"><br>
><br>
> This is important as clang does not support some syntax like MFC is not fully supported.<br>
<br>
</div>You may want to switch to other analysis tool, or wait until MFC is supported.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Regards,<br>
Konstantin<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></span></blockquote></div><br>It was my belief that in -fsyntax-only Clang was really close to support MFC (if not supported it completely) and that only the CodeGen part was really lacking on Windows.<br><br>Are you sure that you used the microsoft compatibility mode (-fms-compatibility) ?<br>
<br>-- Matthieu<br>