]> granicus.if.org Git - clang/commit
Resubmit "[Tooling] Parse compilation database command lines on Windows."
authorZachary Turner <zturner@google.com>
Thu, 18 Aug 2016 19:31:48 +0000 (19:31 +0000)
committerZachary Turner <zturner@google.com>
Thu, 18 Aug 2016 19:31:48 +0000 (19:31 +0000)
commitcd39b643d9e1e5e7d5a85874a9176501c227c9f1
treeee77c14bc45157d91878cb95f7e55cf807608d09
parentb2df6a41f4d626eec3a9de7cbca7b23a28f7b8b7
Resubmit "[Tooling] Parse compilation database command lines on Windows."

This patch introduced the ability to decide at runtime whether to parse
JSON compilation database command lines using Gnu syntax or Windows
syntax.  However, there were many existing unit tests written that
hardcoded Gnu-specific paths.  These tests were now failing because
the auto-detection logic was choosing to parse them using Windows
rules.

This resubmission of the patch fixes this by introducing an enum
which defines the syntax mode, which defaults to auto-detect, but
for which the unit tests force Gnu style parsing.

Reviewed By: alexfh
Differential Revision: https://reviews.llvm.org/D23628

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279120 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/JSONCompilationDatabase.h
lib/Tooling/JSONCompilationDatabase.cpp
unittests/Tooling/CompilationDatabaseTest.cpp