<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Sep 28, 2015 at 4:00 PM Bhargava Shastry <<a href="mailto:bshastry@sec.t-labs.tu-berlin.de">bshastry@sec.t-labs.tu-berlin.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> The question is what you want to do; if we're talking IDE support, we<br>
> don't want every IDE to go and fiddle with the clang AST - it's complex<br>
> and hard to get right.<br>
> Instead, we want to build tools in clang/clang-tools-extra, and export<br>
> those via libclang (or something similar). That way, all IDEs will have<br>
> a common set of well-tested tools.<br>
> If you want to build your own one-of code transformation, I'd recommend<br>
> to write it in C++ against the clang AST directly.<br>
<br>
I am working on a close-to-source on-disk representation of clang AST.</blockquote><div><br></div><div>I understand that - my question is what you want to use it for.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I<br>
am unsure what level of AST detail is necessary. But I do know that the<br>
detail offered by python bindings is too abstract (low level of detail)<br>
for my needs.<br>
<br>
Is the libclang project you speak of (clang-tidy abstraction) in<br>
development or planned for the future? It sounds like an apt setting to<br>
implement Bjarne Stroustrup's coding guidelines [1] that he discusses in<br>
his latest cppcon talk!<br></blockquote><div><br></div><div>Yes, clang-tidy exists and already has implemented a couple of the core guidelines - contributions to implement more checks from the guidelines would be highly appreciated.</div><div><br></div><div>Note that clang-tidy is not exposed through libclang yet.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[1] <a href="https://github.com/isocpp/CppCoreGuidelines" rel="noreferrer" target="_blank">https://github.com/isocpp/CppCoreGuidelines</a><br>
</blockquote></div></div>