[cfe-dev] [clang-tidy] Using clang-tidy on Windows
Tobias Langner via cfe-dev
cfe-dev at lists.llvm.org
Sun Sep 6 07:49:00 PDT 2015
here are my 2 cents of experience with it:
1) you can use the -G”Ninja” code generator. It works on Windows too and it can generate compilation databases.
2) it you only use the standard headers, you can use "clang-tidy foo.cpp — -fms-compatibility-version=19” from the visual studio command line and it’ll find the standard headers without any problems.
> On 04 Sep 2015, at 18:43, Manuel Klimek via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> On Fri, Sep 4, 2015 at 6:40 PM Richard via cfe-dev <cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>> wrote:
> In article <CAOsfVv=QAgkYsADBo6zMxB8mn8MBKdr56Tqzh3Prnntj-6ukLw at mail.gmail.com <mailto:QAgkYsADBo6zMxB8mn8MBKdr56Tqzh3Prnntj-6ukLw at mail.gmail.com>>,
> Manuel Klimek via cfe-dev <cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>> writes:
> > The easiest way to get there is to use CMake, and have it output a
> > compilation database (see the description how to do this for LLVM, it's
> > very similar: http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html <http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html>)
> Unless they've changed it, this doesn't work on Windows.
> Ah, right, sorry. My mistake. Do we have anything on Windows to generate compile_commands.json? (I think I remember something, but then again, my memory is really bad :)
> "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline <http://tinyurl.com/d3d-pipeline>>
> The Computer Graphics Museum <http://ComputerGraphicsMuseum.org <http://computergraphicsmuseum.org/>>
> The Terminals Wiki <http://terminals.classiccmp.org <http://terminals.classiccmp.org/>>
> Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com <http://legalizeadulthood.wordpress.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>
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev