<div dir="ltr">Would this also be usable as a way to run clang-tidy checks as part of normal compilation? (some things in clang-tidy aren't there because the FP is too high to be a hard error on old codebases (but might be viable once a codebase is able to be cleaned up (like several have been with LLVM)) or because they're project specific (either stylistically, or because they're about some project specific API))</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 2, 2016 at 6:47 AM, Benjamin Kramer via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">bkramer created this revision.<br>
bkramer added a reviewer: klimek.<br>
bkramer added a subscriber: cfe-commits.<br>
<br>
This doesn't really do much at the moment. You can load it via libclang<br>
and set the -checks via an extra command line argument as illustrated in<br>
the test case. Support for other options (including headers check) is<br>
currently missing. Also when using this with libclang some checks may<br>
not work with the precompiled preamble in place.<br>
<br>
This can be used to easily show clang-tidy warnings in an editor<br>
integration as all that's needed is adding command line flags that are<br>
passed into libclang. Warnings and FixIts are exposed via the existing<br>
CXDiagnostic machinery.<br>
<br>
<a href="http://reviews.llvm.org/D17807" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17807</a><br>
<br>
Files:<br>
  clang-tidy/CMakeLists.txt<br>
  clang-tidy/ClangTidyDiagnosticConsumer.h<br>
  clang-tidy/plugin/CMakeLists.txt<br>
  clang-tidy/plugin/ClangTidyPlugin.cpp<br>
  test/clang-tidy/basic.cpp<br>
<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>