llvm-project/clang/unittests/Tooling
Manuel Klimek 54042e743c Add structed way to express command line options in the compilation database.
Currently, arguments are passed via the string attribute 'command',
assuming a shell-escaped / quoted command line to extract the original
arguments. This works well enough on Unix systems, but turns out to be
problematic for Windows tools to generate.

This CL adds a new attribute 'arguments', an array of strings, which
specifies the exact command line arguments. If 'arguments' is available
in the compilation database, it is preferred to 'commands'.

Currently there is no plan to retire 'commands': there are enough
different use cases where users want to create their own mechanism for
creating compilation databases, that it doesn't make sense to force them
all to implement shell command line parsing.

Patch by Daniel Dilts.

llvm-svn: 245036
2015-08-14 09:55:36 +00:00
..
CMakeLists.txt [CMake] Add dependencies on clangToolingCore. 2014-10-30 00:44:01 +00:00
CommentHandlerTest.cpp Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable 2015-08-13 21:24:08 +00:00
CompilationDatabaseTest.cpp Add structed way to express command line options in the compilation database. 2015-08-14 09:55:36 +00:00
Makefile Revert "Wrap clang module files in a Mach-O, ELF, or COFF container." 2015-02-25 02:44:04 +00:00
RecursiveASTVisitorTest.cpp Separated RecursiveASTVisitorTest into multiple files. 2014-10-09 15:02:06 +00:00
RecursiveASTVisitorTestCallVisitor.cpp Separated RecursiveASTVisitorTest into multiple files. 2014-10-09 15:02:06 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp Separated RecursiveASTVisitorTest into multiple files. 2014-10-09 15:02:06 +00:00
RecursiveASTVisitorTestExprVisitor.cpp Separated RecursiveASTVisitorTest into multiple files. 2014-10-09 15:02:06 +00:00
RecursiveASTVisitorTestTypeLocVisitor.cpp Fix initializing TypeOfTypeLoc 2014-10-24 13:52:55 +00:00
RefactoringCallbacksTest.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
RefactoringTest.cpp Allow replacements created from token ranges to specify language options. 2015-06-03 13:10:41 +00:00
ReplacementsYamlTest.cpp Do not quote YAML plain string myself. Let YAMLIO do that. 2013-09-11 04:00:35 +00:00
RewriterTest.cpp Avoid using set::emplace as it is apparently not supported by gcc 4.7. 2015-06-16 13:15:54 +00:00
RewriterTestContext.h Standardize on StringMap::insert, removing uses of StringMap::GetOrCreateValue. 2014-11-19 03:06:06 +00:00
TestVisitor.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
ToolingTest.cpp Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:00:23 +00:00