<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>There is no 'fix' option for clang static analyzer. You have to implement it by yourself. Just follow one of these flags how these are implemented.</div><div>--analyze, --analyzer-checker, --analyzer-output, --analyzer-annotate</div><div><br></div><div>These flags are propagated from front end to the static analyzer. You can implement the 'fix' in similar ways. Let me know if you have any trouble.</div><div><br></div><div>Aldo, I'm not sure if the program can be 'changed' at that stage, I'll have to look up.<br><br>Aditya</div><div><br>Sent from my iPhone</div><div><br>On Mar 30, 2015, at 9:22 PM, Pradnya Laxman Khalate <<a href="mailto:plkhalat@syr.edu">plkhalat@syr.edu</a>> wrote:<br><br></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<div id="divtagdefaultwrapper" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:Tahoma, Geneva, sans-serif;">
Hi,<br>
<br>
Thank you for your response.<br>
<br>
Can you point me to any reference example? As far as I know, none of the Core checkers present in the current version of Static Analyzer tool have a "--fixme" / "--fix" option.<br>
<br>
Regards,<br>
Pradnya<br>
________________________________________<br>
From: Aditya K <<a href="mailto:hiraditya@msn.com">hiraditya@msn.com</a>><br>
Sent: Sunday, March 29, 2015 10:20 AM<br>
To: Clang; Pradnya Laxman Khalate<br>
Subject: RE: [cfe-dev] How to implement "--fix" for a checker in Static Analyzer?<br>
<br>
----------------------------------------<br>
> From: <a href="mailto:hiraditya@msn.com">hiraditya@msn.com</a><br>
> To: <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> Subject: [cfe-dev] How to implement "--fix" for a checker in Static Analyzer?<br>
> Date: Sun, 29 Mar 2015 14:16:53 +0000<br>
><br>
> I think you need to implement it as a flag (in the clang front end) and pass it to the clang analyzer.<br>
> scan-build is just a wrapper so you have to implement another flag for this and invoke the analyzer with --fix flag.<br>
><br>
> Let me know if you need any more help on this.<br>
><br>
> -Aditya<br>
><br>
><br>
</div>


</div></blockquote></body></html>