<p dir="ltr">Have you tried using the -header-filter option?</p>
<div class="gmail_quote">On Dec 8, 2015 12:57 AM, "Mark Deggeller via cfe-dev" <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I have integrated clang-tidy into a text-editor project, re-running clang-tidy as the user types. It works, but it can be slow to reparse the entire file and #includes after every edit.<br>
<br>
I've also experimented using libclang's precompiled preambles and clang_reparseTranslationUnit(). This works great for reparse performance, but I'm having trouble figuring out how to incorporate the clang-tidy checkers.<br>
<br>
I would appreciate any advice on speeding up clang-tidy so that repeatedly reparsing a file doesn't need to reparse all the #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><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>
</blockquote></div>