<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>clang-tidy seems to be the correct point to start. It is made to
rewrite source code and is easy to begin with.</p>
<p>Take a look into the clang-tools-extra repository and browse the
code, there are a lot of examples. There is a dedicated tutorial
in the docs to get started as well.<br>
</p>
<br>
<div class="moz-cite-prefix">Am 12.11.2017 um 14:43 schrieb Maurizio
Vitale via cfe-dev:<br>
</div>
<blockquote type="cite"
cite="mid:CAAeLbQKtKAHE5RAweH2a0n+Dq8EwOKmjy8n2n1bMVYrDCdhQOQ@mail.gmail.com">
<div dir="ltr">hello clang clan,
<div><br>
</div>
<div> I'm getting started with checkers and I have one in mind
that I don't see a good way to implement.</div>
<div><br>
</div>
<div>The idea is to find all uses of putenv and replace them w/
setenv. This requires analyzing the argument to discover
constant parts in it (setenv require a separate variable
name). It also require to check that the argument is not
modified (or such modifications need also to be replaces w/
setenvs).</div>
<div><br>
</div>
<div>Is there a way to use the fixit infrastructure together
with the static analyzer?</div>
<div>If so, is it possible to make multiple changes part of the
same fixit?</div>
<div>What would be the recommended way of proceeding in this
case? any similar checks/analysis I can take a look at?</div>
<div><br>
</div>
<div>Thanks a lot,</div>
<div><br>
</div>
<div><br>
</div>
<div> Maurizio</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>