Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-12 Thread Zachary Turner via cfe-commits
zturner abandoned this revision. zturner added a comment. Once I split the JSONCompilationDatabase patch out, then the rest is strictly a driver-only patch, and the other one is strictly a tooling patch. So I will abandon this one and upload two new patches with a more targeted set of reviewer

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-12 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. The changes in Driver LGTM (though I'd prefer someone who knows Driver to look). Could you move lib/Tooling/JSONCompilationDatabase.cpp to a separate patch? It seems like an orthogonal change. As for a clang-cl-mode test for clang-tidy, clang-tidy-run-with-database.cpp i

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Zachary Turner via cfe-commits
zturner updated this revision to Diff 67751. zturner added a comment. I added a test for the clang Driver changes. It seems I'm still having some trouble writing the clang-cl test for clang-tidy. It depends on having a different compilation database that uses clang-cl instead of clang. I foun

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Zachary Turner via cfe-commits
zturner added a comment. In https://reviews.llvm.org/D23409#513017, @alexfh wrote: > May I ask you to upload patches with full diff context next time? I know, > it's not directly supported by TortoiseGit, but there are at least two other > reasonable ways of generating full diffs for Phabricato

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. May I ask you to upload patches with full diff context next time? I know, it's not directly supported by TortoiseGit, but there are at least two other reasonable ways of generating full diffs for Phabricator: http://llvm.org/docs/Phabricator.html#requesting-a-review-via-

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D23409#512819, @zturner wrote: > In https://reviews.llvm.org/D23409#512745, @zturner wrote: > > > In https://reviews.llvm.org/D23409#512720, @aaron.ballman wrote: > > > > > Patch generally LGTM, though I wonder if there's a way we can add test

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Zachary Turner via cfe-commits
zturner added a comment. In https://reviews.llvm.org/D23409#512745, @zturner wrote: > In https://reviews.llvm.org/D23409#512720, @aaron.ballman wrote: > > > Patch generally LGTM, though I wonder if there's a way we can add test > > coverage for this. > > > I'd imagine we can just enable the clan

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Zachary Turner via cfe-commits
zturner added inline comments. Comment at: lib/Driver/Driver.cpp:93 @@ +92,3 @@ + ArrayRef Args) { + auto Default = ToolChain::getTargetAndModeFromProgramName(ProgramName); + StringRef DefaultMode(Default.second); rnk wrote: > Why not

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Zachary Turner via cfe-commits
zturner added inline comments. Comment at: lib/Tooling/JSONCompilationDatabase.cpp:119 @@ -115,1 +118,3 @@ StringRef EscapedCommandLine) { +#if defined(LLVM_ON_WIN32) + llvm::BumpPtrAllocator Alloc; rnk wrote: > It would be nice if the JSON file just told us

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Zachary Turner via cfe-commits
zturner added a comment. In https://reviews.llvm.org/D23409#512720, @aaron.ballman wrote: > Patch generally LGTM, though I wonder if there's a way we can add test > coverage for this. I'd imagine we can just enable the clang-tidy test suite on Windows (I'm assuming it's currently disabled).

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Driver/Driver.cpp:93 @@ +92,3 @@ + ArrayRef Args) { + auto Default = ToolChain::getTargetAndModeFromProgramName(ProgramName); + StringRef DefaultMode(Default.second); Why not change ToolInvoc

Re: [PATCH] D23409: Make clang-tidy work with clang-cl

2016-08-11 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a comment. Patch generally LGTM, though I wonder if there's a way we can add test coverage for this. https://reviews.llvm.org/D23409 ___ cfe-commits mailing list cfe-commits@lists