<br><p dir="ltr"></p>
<p dir="ltr">On Monday, December 30, 2013 2:40:30 PM, Sean Silva <<a href="mailto:silvas@purdue.edu">silvas@purdue.edu</a>> wrote:</p>
<blockquote><p dir="ltr">On Mon, Dec 30, 2013 at 9:40 AM, <a href="mailto:dblaikie@gmail.com">dblaikie@</a><a href="mailto:dblaikie@gmail.com">gmail.com</a> <<a href="mailto:dblaikie@gmail.com">dblaikie@</a><a href="mailto:dblaikie@gmail.com">gmail.com</a>> wrote:</p>

</blockquote>
<blockquote><blockquote><p dir="ltr"></p>
<p dir="ltr">On Sun Dec 29 2013 at 10:25:19 AM, Schlottke, Michael <<a href="mailto:m.schlottke@fz-juelich.de">m.schlottke</a><a href="mailto:m.schlottke@fz-juelich.de">@</a><a href="mailto:m.schlottke@fz-juelich.de">fz</a><a href="mailto:m.schlottke@fz-juelich.de">-</a><a href="mailto:m.schlottke@fz-juelich.de">juelich.de</a>> wrote:</p>

</blockquote>
</blockquote>
<blockquote><blockquote><blockquote><p dir="ltr">Hi David,  <br></p>
<p dir="ltr">Thanks for the fast reply. <br></p>
<p dir="ltr">From your description I infer that clang-fixit is a tool for enforcing a certain naming convention, rather than changing specific names, or did I misunderstand you? <br>
</p>
</blockquote>
</blockquote>
</blockquote>
<blockquote><blockquote><p dir="ltr"></p>
<p dir="ltr">That's correct - but it has the same challenges in terms of resizing names, etc.</p>
<p dir="ltr"> </p>
</blockquote>
</blockquote>
<blockquote><blockquote><blockquote><p dir="ltr"><br>
However, maybe it could be a place for me to start looking for ideas... The only reference I found to clang-fixit is <a href="http://llvm-reviews.chandlerc.com/D51">http://llvm-</a><a href="http://llvm-reviews.chandlerc.com/D51">reviews.chandlerc.com</a><a href="http://llvm-reviews.chandlerc.com/D51">/D51</a>, but nothing in the llvm or clang/extra repository. Could you tell me where I can find more information on it? <br>

</p>
</blockquote>
</blockquote>
</blockquote>
<blockquote><blockquote><p dir="ltr"></p>
<p dir="ltr">Hmm, perhaps it hasn't really been started yet. Sorry for the red herring.<br>
</p>
</blockquote>
</blockquote>
<blockquote><p dir="ltr"></p>
<p dir="ltr">Do you maybe mean clang-tidy? It's in clang-tools-extra last I checked</p>
</blockquote>
<br><br>Indeed I did. Thanks for the correction!<br><blockquote><p dir="ltr"></p>
<p dir="ltr">-- Sean Silva</p>
<p dir="ltr"> </p>
</blockquote>
<blockquote><blockquote><p dir="ltr"><br>
I would guess clang-migrate would be the next best tool to look at. It does various code changes and deals with reformatting the resulting code, etc.<br></p>
<p dir="ltr">- David</p>
<p dir="ltr"> </p>
</blockquote>
</blockquote>
<blockquote><blockquote><blockquote><p dir="ltr"><br>
Regards, <br></p>
<p dir="ltr">Michael <br><br><br></p>
<p dir="ltr">-------- Ursprüngliche Nachricht --------<br>
Von: <a href="mailto:dblaikie@gmail.com">dblaikie@</a><a href="mailto:dblaikie@gmail.com">gmail.com</a> <br>
Datum: <br>
An: "Schlottke, Michael" <<a href="mailto:m.schlottke@fz-juelich.de">m.schlottke</a><a href="mailto:m.schlottke@fz-juelich.de">@</a><a href="mailto:m.schlottke@fz-juelich.de">fz</a><a href="mailto:m.schlottke@fz-juelich.de">-</a><a href="mailto:m.schlottke@fz-juelich.de">juelich.de</a>>,cfe-dev Developers <<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-</a><a href="mailto:cfe-dev@cs.uiuc.edu">dev</a><a href="mailto:cfe-dev@cs.uiuc.edu">@</a><a href="mailto:cfe-dev@cs.uiuc.edu">cs.uiuc.edu</a>>,<a href="mailto:djasper@google.com">djasper</a><a href="mailto:djasper@google.com">@</a><a href="mailto:djasper@google.com">google.com</a>,<a href="mailto:klimek@google.com">klimek</a><a href="mailto:klimek@google.com">@</a><a href="mailto:klimek@google.com">google.com</a> <br>

Betreff: [cfe-dev] LibTooling vs. LibClang+Python for simple refactoring <br><br></p>
<p dir="ltr">Tooling, specifically the clang-fixit till is one place sheet efforts are being made to apply these kinds of refractoriness (specifically clang-fixit would apply predefined naming convention rules, rather than user specified renaming).</p>

<p dir="ltr">One of the things that tooling might help you with would be the necessary reformatting (clang-format) and build/source discovery.</p>
<p dir="ltr">On Sunday, December 29, 2013 3:49:06 AM, Schlottke, Michael <<a href="mailto:m.schlottke@fz-juelich.de">m.schlottke</a><a href="mailto:m.schlottke@fz-juelich.de">@</a><a href="mailto:m.schlottke@fz-juelich.de">fz</a><a href="mailto:m.schlottke@fz-juelich.de">-</a><a href="mailto:m.schlottke@fz-juelich.de">juelich.de</a>> wrote:</p>

</blockquote>
</blockquote>
</blockquote>
<blockquote><blockquote><blockquote><blockquote><p dir="ltr">Hi everyone,</p>
<p dir="ltr">For our research group, I need to get started with some relatively simple refactoring tasks in a modestly complex C++ project. The goal is to have a tool that (in the beginning) is good for at least two things:<br>

- renaming member variables/methods<br>
- replacing member variable access by getters/setters</p>
<p dir="ltr">After the extremely positive experiences I've had with clang (and since the IDE tools I tried failed for our project), I'd like to utilize the clang infrastructure for this task. However, in the very beginning I already face the problem of where I should start:</p>

<p dir="ltr">On the one hand, LibTooling seems to be the interface of choice when it comes to refactoring code (it's one of the canonical examples on <a href="http://clang.llvm.org/docs/Tooling.html">http://</a><a href="http://clang.llvm.org/docs/Tooling.html">clang.llvm.org</a><a href="http://clang.llvm.org/docs/Tooling.html">/docs/</a><a href="http://clang.llvm.org/docs/Tooling.html">Tooling.html</a>). On the other hand libclang seems to be easier to use, has Python bindings, and from the outset looks like it could be already sufficient for the task at hand.</p>

<p dir="ltr">Do you have any experience/recommendations for which library is the one to use in this case?</p>
<p dir="ltr">Regards,</p>
<p dir="ltr">Michael</p>
<p dir="ltr">--<br>
Michael Schlottke</p>
<p dir="ltr">SimLab Highly Scalable Fluids & Solids Engineering<br>
Jülich Supercomputing Centre (JSC)<br>
Forschungszentrum Jülich GmbH<br>
52425 Jülich<br>
Germany</p>
<p dir="ltr">Phone: +49 (2461) 61 2326<br>
Mail: <a href="mailto:m.schlottke@fz-juelich.de">m.schlottke</a><a href="mailto:m.schlottke@fz-juelich.de">@</a><a href="mailto:m.schlottke@fz-juelich.de">fz</a><a href="mailto:m.schlottke@fz-juelich.de">-</a><a href="mailto:m.schlottke@fz-juelich.de">juelich.de</a><br>

Web: <a href="http://www.fz-juelich.de/jsc">http://</a><a href="http://www.fz-juelich.de/jsc">www.fz</a><a href="http://www.fz-juelich.de/jsc">-</a><a href="http://www.fz-juelich.de/jsc">juelich.de</a><a href="http://www.fz-juelich.de/jsc">/</a><a href="http://www.fz-juelich.de/jsc">jsc</a><br>
</p>
<p dir="ltr"><font color="#000000">------------------------------------------------------------------------------------------------</font><br>
<font color="#000000">------------------------------------------------------------------------------------------------</font><br>
<font color="#000000">Forschungszentrum</font><font color="#000000"> </font><font color="#000000">Juelich</font><font color="#000000"> GmbH</font><br>
<font color="#000000">52425 </font><font color="#000000">Juelich</font><br>
<font color="#000000">Sitz </font><font color="#000000">der</font><font color="#000000"> </font><font color="#000000">Gesellschaft</font><font color="#000000">: </font><font color="#000000">Juelich</font><br>
<font color="#000000">Eingetragen</font><font color="#000000"> </font><font color="#000000">im</font><font color="#000000"> </font><font color="#000000">Handelsregister</font><font color="#000000"> </font><font color="#000000">des</font><font color="#000000"> </font><font color="#000000">Amtsgerichts</font><font color="#000000"> </font><font color="#000000">Dueren</font><font color="#000000"> </font><font color="#000000">Nr</font><font color="#000000">. HR B 3498</font><br>

<font color="#000000">Vorsitzender</font><font color="#000000"> </font><font color="#000000">des</font><font color="#000000"> </font><font color="#000000">Aufsichtsrats</font><font color="#000000">: </font><font color="#000000">MinDir</font><font color="#000000"> Dr. Karl </font><font color="#000000">Eugen</font><font color="#000000"> </font><font color="#000000">Huthmacher</font><br>

<font color="#000000">Geschaeftsfuehrung</font><font color="#000000">: Prof. Dr. </font><font color="#000000">Achim</font><font color="#000000"> </font><font color="#000000">Bachem</font><font color="#000000"> (</font><font color="#000000">Vorsitzender</font><font color="#000000">),</font><br>

<font color="#000000">Karsten</font><font color="#000000"> </font><font color="#000000">Beneke</font><font color="#000000"> (</font><font color="#000000">stellv</font><font color="#000000">. </font><font color="#000000">Vorsitzender</font><font color="#000000">), Prof. Dr.-</font><font color="#000000">Ing</font><font color="#000000">. Harald Bolt,</font><br>

<font color="#000000">Prof. Dr. Sebastian M. Schmidt</font><br>
<font color="#000000">------------------------------------------------------------------------------------------------</font><br>
<font color="#000000">------------------------------------------------------------------------------------------------</font><br>
</p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote><blockquote><blockquote><p dir="ltr"><br>
</p>
</blockquote>
</blockquote>
</blockquote>
<blockquote><blockquote><p dir="ltr"><br>
</p>
</blockquote>
</blockquote>
<blockquote><p dir="ltr"><br>
</p>
</blockquote>
<blockquote><blockquote><p dir="ltr">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-</a><a href="mailto:cfe-dev@cs.uiuc.edu">dev</a><a href="mailto:cfe-dev@cs.uiuc.edu">@</a><a href="mailto:cfe-dev@cs.uiuc.edu">cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://</a><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">lists.cs.uiuc.edu</a><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">/mailman/</a><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">listinfo</a><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">/cfe-</a><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">dev</a><br>

</p>
</blockquote>
</blockquote>
<p dir="ltr"><br>
</p>