<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 17, 2015 at 6:37 PM Mark Deggeller <<a href="mailto:mark@holedigger.com">mark@holedigger.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Glad to hear it.<br>
<br>
I have managed to integrate clang-tidy as a plugin in libclang. I<br>
haven't exposed the entire command-line options, but it is working for<br>
my purposes.<br>
<br>
How are you planning on integrating the two?<br></blockquote><div><br></div><div>1. expose clang-tidy via libclang (or similar); plugin sounds like a good idea, but we also will want a stable (for the future) interface for editors to rely on</div><div>2. profit :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
Mark<br>
<br>
<br>
<br>
Manuel Klimek wrote:<br>
> Exposing clang-tidy via libclang (or similar) to be able to integrate it<br>
> into editors is on our list of things to do in the first months of 2016.<br>
><br>
> On Thu, Dec 17, 2015 at 7:24 AM don hinton via cfe-dev<br>
> <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a> <mailto:<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>>> wrote:<br>
><br>
> Have you tried using the -header-filter option?<br>
><br>
> On Dec 8, 2015 12:57 AM, "Mark Deggeller via cfe-dev"<br>
> <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a> <mailto:<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>>> wrote:<br>
><br>
><br>
> I have integrated clang-tidy into a text-editor project,<br>
> re-running clang-tidy as the user types. It works, but it can be<br>
> slow to reparse the entire file and #includes after every edit.<br>
><br>
> I've also experimented using libclang's precompiled preambles<br>
> and clang_reparseTranslationUnit(). This works great for reparse<br>
> performance, but I'm having trouble figuring out how to<br>
> incorporate the clang-tidy checkers.<br>
><br>
> I would appreciate any advice on speeding up clang-tidy so that<br>
> repeatedly reparsing a file doesn't need to reparse all the<br>
> #included headers.<br>
><br>
> Thanks!<br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a> <mailto:<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a> <mailto:<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
><br>
</blockquote></div></div>