]> granicus.if.org Git - clang/commit
[tooling] Provide the compile commands of the JSON database in the order that they...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 22 Sep 2015 17:22:33 +0000 (17:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 22 Sep 2015 17:22:33 +0000 (17:22 +0000)
commit1a963b825c36012200d5bdb5ea2c2d6285980d29
tree12372839a36fceb58fd256e0c536c73775191474
parentdd04d50d58e2a8b1f6be861aaba3c518c3a4a8b8
[tooling] Provide the compile commands of the JSON database in the order that they were provided in the JSON file.

This is useful for debugging of issues and reduction of test cases.
For example, an issue may show up due to the order that some commands were processed.
It is convenient to be able to remove commands from the file and still preserve the order
that they are returned, instead of getting a completely different order when removing a few commands.

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