summaryrefslogtreecommitdiffstats
path: root/clang/test/Tooling
Commit message (Collapse)AuthorAgeFilesLines
...
* clang/test/Tooling: Tweak 4 tests to escape the path separator s/\\/\\\\/g ↵NAKAMURA Takumi2012-05-234-8/+7
| | | | | | in JSON. llvm-svn: 157351
* test/Tooling/clang-check-pwd.cpp: Mark as XFAIL:mingw for now. Fixing is ↵NAKAMURA Takumi2012-05-201-0/+1
| | | | | | work-in-progress. llvm-svn: 157170
* clang/test/Tooling: Remark as XFAIL again in 5 tests for msvc hosts.NAKAMURA Takumi2012-05-165-0/+15
| | | | | FIXME: JSON doesn't like path separator '\', on Win32 hosts. llvm-svn: 156957
* clang/test/Tooling: Remove XFAIL in 5 tests to unveil the real failure.NAKAMURA Takumi2012-05-165-20/+0
| | | | | | FYI, they can pass on Cygwin w/o any tweaks. llvm-svn: 156930
* clang/test/Tooling/clang-check-pwd.cpp: Add "REQUIRES: shell".NAKAMURA Takumi2012-05-161-3/+1
| | | | | | This passes on MSYS bash and Cygwin. llvm-svn: 156929
* Declare abstract class ArgumentsAdjuster. This abstract interface describesSimon Atanasyan2012-05-091-0/+8
| | | | | | | | | | | | | a command line argument adjuster, which is responsible for command line arguments modification before the arguments are used to run a frontend action. Define class ClangSyntaxOnlyAdjuster implements ArgumentsAdjuster interface. This class converts input command line arguments to the "syntax check only" variant. Reviewed by Manuel Klimek. llvm-svn: 156478
* Fixes resolution of relative paths when running clang tools.Manuel Klimek2012-05-071-0/+18
| | | | | | | | | The chdir is not the perfect fix, as it is thread hostile. The real fix will be to make -working-dir work correctly, which will take time to implement. Before that, the tooling library cannot be used concurrently. llvm-svn: 156299
* Fixes the header search logic for tools:Manuel Klimek2012-04-251-0/+16
| | | | | | | The driver needs to get the correct path to the executable to deduce the header search path. llvm-svn: 155542
* Adds a FixedCompilationDatabase to be able to specify tool parametersManuel Klimek2012-04-181-0/+8
| | | | | | at the command line. llvm-svn: 154989
* Fix quoting to allow shell expansion to occur for shell variablesKaelyn Uhrain2012-04-101-1/+1
| | | | | | introduced by the test harness' expansion of %t. llvm-svn: 154443
* Fix tautological FileCheck by moving the CHECK to an extra line.Manuel Klimek2012-04-102-2/+4
| | | | llvm-svn: 154393
* Implementing a test for the use of PWD to base finding theManuel Klimek2012-04-091-0/+12
| | | | | | correct compile commands on, based on an idea by Jordan Rose. llvm-svn: 154335
* clang/test/Tooling/clang-check.cpp: Mark it as XFAIL also on cygwin.NAKAMURA Takumi2012-04-041-1/+2
| | | | | | It seems clang-check doesn't like gcc driver on cygming. Investigating. llvm-svn: 154066
* clang/test/Tooling/clang-check.cpp: Mark it as XFAIL mingw,msvc for now.NAKAMURA Takumi2012-04-041-0/+3
| | | | | | It seems JSON parser doesn't like path separator '\' on Win32 hosts. llvm-svn: 154017
* Adds a tooling library.Manuel Klimek2012-04-041-0/+8
| | | | | | | | | | | | | | | Provides an API to run clang tools (FrontendActions) as standalone tools, or repeatedly in-memory in a process. This is useful for unit-testing, map-reduce style applications, source transformation daemons or command line tools. The ability to run over multiple translation units with different command line arguments enables building up refactoring tools that need to apply transformations across translation unit boundaries. See tools/clang-check/ClangCheck.cpp for an example. llvm-svn: 154008
* Reverts the Tooling changes as requested by Chris.Manuel Klimek2011-06-021-21/+0
| | | | llvm-svn: 132462
* Fix test breakage due to example not being built.Manuel Klimek2011-06-011-0/+1
| | | | llvm-svn: 132376
* This patch implements an AST matching framework that allows to writeManuel Klimek2011-05-311-0/+20
tools that match on the C++ ASTs. The main interface is in ASTMatchers.h, an example implementation of a tool that removes redundant .c_str() calls is in the example RemoveCStrCalls.cpp. Various contributions: Zhanyong Wan, Chandler Carruth, Marcin Kowalczyk, Wei Xu, James Dennett. llvm-svn: 132374
OpenPOWER on IntegriCloud