]> granicus.if.org Git - clang/commit
[Tooling] Parse compilation database command lines on Windows.
authorZachary Turner <zturner@google.com>
Wed, 17 Aug 2016 20:04:35 +0000 (20:04 +0000)
committerZachary Turner <zturner@google.com>
Wed, 17 Aug 2016 20:04:35 +0000 (20:04 +0000)
commit27a874790fc79f6391ad3703d7c790f51ac6ae1f
tree0c47f7cb6883568e4a2e3403a59e649925f67d7a
parent8dd3abebe50fc69a9bdd080160e8c0f02cef742b
[Tooling] Parse compilation database command lines on Windows.

When a compilation database is used on Windows, the command lines cannot
be parsed using the standard GNU style syntax. LLVM provides functions for
parsing Windows style command lines, so use them where appropriate.

After this patch, clang-tidy runs correctly on Windows.

Reviewed by: alexfh
Differential Revision: https://reviews.llvm.org/D23455

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278964 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/JSONCompilationDatabase.cpp