<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:Tahoma, Geneva, sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I am a newbie in LLVM/Clang world. I started looking into Clang a month back for a class project.</p>
<p><br>
</p>
<p>I am using Clang from Windows and was able to build it with MSVS 2013. I was also able to add custom checkers to the Static Analyzers.</p>
<p><br>
</p>
<p>As per my understanding, the Static Analyzer can be invoked in 3 ways from the command line -
</p>
<ol>
<li>clang -cc1 -analyze -analyzer-checker=xxxx</li><li>scan-build utility<br>
</li><li>clang-check tool</li></ol>
<p>I want to implement code fixer for my custom checker which would be invoked only if option "-fix" is present at input.</p>
<p><br>
</p>
<p>I was able to figure out the interfaces to implement for the code replacements. But, I couldn't understand how to implement it in my custom_checker.cpp.</p>
<p><br>
</p>
<p>I want to use scan-build because it generates intuitive HTML reports. But, scan-build doesn't accept the option "--fix", does it?</p>
<p><br>
</p>
<p>Is the best way to do this is using libTooling?<br>
</p>
<p><br>
<font size="2"><font face="Tahoma, Geneva, sans-serif"></font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Any suggestions / guidance is appreciated.</font></font></p>
<p><br>
<font size="2"><font face="Tahoma, Geneva, sans-serif"></font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Thanks,</font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Pradnya</font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif"><br>
</font></font></p>
<div id="Signature"></div>
</div>
</body>
</html>