[cfe-dev] Building clang-tidy

Patrik Eklöf via cfe-dev cfe-dev at lists.llvm.org
Tue Apr 18 03:30:38 PDT 2017


Dear community,

 

Are there any instructions specifically on how to build clang-tidy? I’ve
downloaded LLVM, Clang and Clang Extras, run cmake, but can’t get clang-tidy
to build. I’ve put clang extras in tools\clang\tools\extra, and run cmake
with the command:

 

cmake -G "Visual Studio 15 Win64" ..

 

Everything up to this point is fine. Clang builds and runs just fine. But
when I try to compile clang-tidy, I get this error:

 

Cannot open include file: 'clang/Tooling/Core/Diagnostic.h': No such file or
directory (tools\clang\tools\extra\clang-tidy\ClangTidyDiagnosticConsumer.h)

 

Searching, I can’t find this file or this Core directory. My clang version
is version 3.9.0 (tags/RELEASE_390/final).

 

Any ideas why it doesn’t compile?

 

Regards,
Patrik Eklöf


Patrik Eklöf
Programmer
Tel. +46 720 514 440
 <mailto:patrik.eklof at vmssoftware.com> patrik.eklof at vmssoftware.com


Skeppsgatan 19, SE-211 11 Malmö Sweden
 <http://vmssoftware.com/> http://vmssoftware.com/

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170418/d43e9f39/attachment.html>


More information about the cfe-dev mailing list