History log of /external/clang/lib/Tooling/CompilationDatabase.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7fd90b03a28df0626fdb44d05be9ddcdb2562686 24-Aug-2012 Daniel Jasper <djasper@google.com> Use LLVM's plugin registry to enable registering new compilation
databases. Move JSONCompilationDatabase.h to its own files and
register it as plugin.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162541 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
e1da3305158d1ecbb6d0cb2cc4ae0c1b3457b29d 17-Jul-2012 Alexander Kornienko <alexfh@google.com> Add a custom initialize hook for clang tools + minor fixes in CustomCompilationDatabase.h

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
a3c70966babdd6c63623470fbba9bb4ec37de4a5 13-Jul-2012 Manuel Klimek <klimek@google.com> Allows retrieving all files in a CompilationDatabase.

Patch by Tobias Koenig, some test changes by myself.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160167 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
068040ede2b2e6449d84273cc16e62fcd5e7e541 11-Jul-2012 Daniel Jasper <djasper@google.com> Add a hook to supply a custom CompilationDatabase. To add a custom CompilationDatabase, make it implement findCompilationDatabaseForDirectory in CustomCompilationDatabase.h and set USE_COSTUM_COMPILATION_DATABASE.

Differential Revision: http://llvm-reviews.chandlerc.com/D4

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
4187df5f7bdda66d2fbe64a3f2660ee3977f0d12 10-Jul-2012 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> Adds support for auto-detection of compilation databases, looking in a directory and all its parents.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159998 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
8fa2fb859a4cb8e67d9763225281d9b0aa9cb59f 10-Jul-2012 Manuel Klimek <klimek@google.com> Adds support for auto-detection of compilation databases
from a source file and changes clang-check to make use of this.

This makes clang-check just work on in-tree builds, and allows
easy setup via a symlink per source directory to make clang-check
work without any extra configuration.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
62d198c5b1174279174eb35d222b5cee46f3ef6f 24-May-2012 NAKAMURA Takumi <geek4civic@gmail.com> Tooling: Canonicalize Key in IndexByFile[]. llvm::sys::path::native() may be used here.

It fixes test/Tooling on Win32 hosts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157350 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
1a8d6861278051b2109c98baf6a7478a6f3f98aa 15-May-2012 Manuel Klimek <klimek@google.com> Fixes crasher bug in JSONCompilationDatabase for invalid input.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
30318e6df9c8c24d080211dfb92ef8065fa7381c 18-Apr-2012 Manuel Klimek <klimek@google.com> Adds a FixedCompilationDatabase to be able to specify tool parameters
at the command line.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154989 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
c661f1467a84a0a3a83a396b067188b647844ee9 17-Apr-2012 Manuel Klimek <klimek@google.com> Switches the JSONCompilationDatabase to use the YAML parser.
This will allow us to delete the JSON parser from llvm.

The biggest change is a general change of strategy - instead
of storing StringRef's to the values for the command line and
directory in the input buffer, we store ScalarNode*'s. The
reason is that the YAML parser's getRawValue on ScalarNodes
returns a string that includes the quotes in case of double
quoted strings.

For the same reason we're removing the JSON parsing part of
the command line parsing - this means an extra copy for a
command line when it is requested (and only when it is requested).



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154929 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/CompilationDatabase.cpp
cb971c6726d16e12ecd2a340941d7f5c06698332 04-Apr-2012 Manuel Klimek <klimek@google.com> Adds a tooling library.

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.



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