[cfe-dev] Building clang-tidy

Chris Bieneman via cfe-dev cfe-dev at lists.llvm.org
Tue Apr 18 11:07:44 PDT 2017


It looks to me like you are mismatching your sources. You have clang 3.9, but a much more recent clang-tools-extra checkout. The missing header was added in January, so it is not present in the 3.9 release.

-Chris

> On Apr 18, 2017, at 3:30 AM, Patrik Eklöf via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> 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
> patrik.eklof at vmssoftware.com <mailto:patrik.eklof at vmssoftware.com>	
> 
> Skeppsgatan 19, SE-211 11 Malmö Sweden
> http://vmssoftware.com/ <http://vmssoftware.com/>
>  
>  
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170418/3729f765/attachment.html>


More information about the cfe-dev mailing list