#
64f67be3 |
| 22-Sep-2015 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[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
[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.
llvm-svn: 248292
show more ...
|
#
6d0a7676 |
| 16-Sep-2015 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[tooling] Add unit tests for change in r247468.
llvm-svn: 247832
|
#
3ecd8c0a |
| 08-Sep-2015 |
Manuel Klimek <klimek@google.com> |
Fix performance regression when running clang tools.
Brings tool start time for a large synthetic test case down from (on my machine) 4 seconds to 0.5 seconds.
llvm-svn: 247018
|
Revision tags: llvmorg-3.7.0, llvmorg-3.7.0-rc4, llvmorg-3.7.0-rc3 |
|
#
54042e74 |
| 14-Aug-2015 |
Manuel Klimek <klimek@google.com> |
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 ex
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
show more ...
|
Revision tags: studio-1.4, llvmorg-3.7.0-rc2, llvmorg-3.7.0-rc1, llvmorg-3.6.2, llvmorg-3.6.2-rc1, llvmorg-3.6.1, llvmorg-3.6.1-rc1 |
|
#
34eb2072 |
| 11-Apr-2015 |
Alexander Kornienko <alexfh@google.com> |
Use 'override/final' instead of 'virtual' for overridden methods
Summary: The patch is generated using clang-tidy misc-use-override check.
This command was used:
tools/clang/tools/extra/clang-ti
Use 'override/final' instead of 'virtual' for overridden methods
Summary: The patch is generated using clang-tidy misc-use-override check.
This command was used:
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix
Reviewers: dblaikie
Reviewed By: dblaikie
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D8926
llvm-svn: 234678
show more ...
|
Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1, llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1, llvmorg-3.5.0, llvmorg-3.5.0-rc4, llvmorg-3.5.0-rc3, llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1 |
|
#
416fa34b |
| 08-Jun-2014 |
Craig Topper <craig.topper@gmail.com> |
[C++11] Use 'nullptr'. Unittests edition.
llvm-svn: 210423
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1 |
|
#
b8984329 |
| 07-Mar-2014 |
Ahmed Charles <ahmedcharles@gmail.com> |
Replace OwningPtr with std::unique_ptr.
This compiles cleanly with lldb/lld/clang-tools-extra/llvm.
llvm-svn: 203279
|
#
d72a5f10 |
| 07-Mar-2014 |
Ahmed Charles <ahmedcharles@gmail.com> |
Replace OwningPtr::isValid() with conversion to bool.
This is a precursor to moving to std::unique_ptr.
llvm-svn: 203277
|
#
8a8454bc |
| 25-Jan-2014 |
Saleem Abdulrasool <compnerd@compnerd.org> |
unittests: explicit stringify StringRefs for conversion
When clang is built outside of the LLVM tree (against a corresponding version), there is no definition providing for operator<<(std::ostream &
unittests: explicit stringify StringRefs for conversion
When clang is built outside of the LLVM tree (against a corresponding version), there is no definition providing for operator<<(std::ostream &, StringRef) which is required for the assertion routines in google-test tests. Avoid the compilation failure by explicitly stringifying the StringRef prior to use.
llvm-svn: 200096
show more ...
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1 |
|
#
eb56f4fe |
| 17-Nov-2013 |
Edwin Vane <revane@gmail.com> |
Relax some preconditions for using FixedCompilationDatabase.
FixedCompilationDatabase (FCD) requires that the arguments it consumes after '--' must not include positional parameters or the argv[0] o
Relax some preconditions for using FixedCompilationDatabase.
FixedCompilationDatabase (FCD) requires that the arguments it consumes after '--' must not include positional parameters or the argv[0] of the tool. This patch relaxes those restrictions.
llvm-svn: 194968
show more ...
|
Revision tags: llvmorg-3.3.1-rc1 |
|
#
552c169e |
| 11-Jun-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Include Path.h instead of PathV2.h.
I am about to move PathV2.h to Path.h.
llvm-svn: 183795
|
Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2 |
|
#
7d17010d |
| 15-May-2013 |
David Blaikie <dblaikie@gmail.com> |
Use only explicit bool conversion operator
The most common (non-buggy) case are where such objects are used as return expressions in bool-returning functions or as boolean function arguments. In tho
Use only explicit bool conversion operator
The most common (non-buggy) case are where such objects are used as return expressions in bool-returning functions or as boolean function arguments. In those cases I've used (& added if necessary) a named function to provide the equivalent (or sometimes negative, depending on convenient wording) test.
DiagnosticBuilder kept its implicit conversion operator owing to the prevalent use of it in return statements.
One bug was found in ExprConstant.cpp involving a comparison of two PointerUnions (PointerUnion did not previously have an operator==, so instead both operands were converted to bool & then compared). A test is included in test/SemaCXX/constant-expression-cxx1y.cpp for the fix (adding operator== to PointerUnion in LLVM).
llvm-svn: 181869
show more ...
|
Revision tags: llvmorg-3.3.0-rc1 |
|
#
fe7a3486 |
| 02-Mar-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
CommandLineArgumentParser: handle single quotes.
Differential Revision: http://llvm-reviews.chandlerc.com/D482
llvm-svn: 176404
|
#
f857950d |
| 12-Jan-2013 |
Dmitri Gribenko <gribozavr@gmail.com> |
Remove useless 'llvm::' qualifier from names like StringRef and others that are brought into 'clang' namespace by clang/Basic/LLVM.h
llvm-svn: 172323
|
Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3 |
|
#
251ad5e0 |
| 04-Dec-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Introduce CompilationDatabase::getAllCompileCommands() that returns all compile commands of the database and expose it via the libclang API.
llvm-svn: 169226
|
Revision tags: llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1 |
|
#
6b108a61 |
| 08-Oct-2012 |
Daniel Jasper <djasper@google.com> |
CompilationDatabaseTest: Fix another Windows path issue.
llvm-svn: 165425
|
#
5697f99f |
| 08-Oct-2012 |
Daniel Jasper <djasper@google.com> |
CompilationDatabase: Use //net paths for tests, as they should be considered absolute on all platforms.
llvm-svn: 165422
|
#
fddb32c3 |
| 08-Oct-2012 |
Daniel Jasper <djasper@google.com> |
FileNameMatchTrie: Use StringRef instead of Twines where possible.
llvm-svn: 165412
|
#
26cf9c43 |
| 08-Oct-2012 |
Daniel Jasper <djasper@google.com> |
Support symlinks and relative paths in complilation databases.
Review: http://llvm-reviews.chandlerc.com/D30 llvm-svn: 165392
|
#
6ed1f85c |
| 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.
llvm-svn: 162541
|
#
60b80161 |
| 13-Jul-2012 |
Manuel Klimek <klimek@google.com> |
Allows retrieving all files in a CompilationDatabase.
Patch by Tobias Koenig, some test changes by myself.
llvm-svn: 160167
|
#
fdbe4f9d |
| 15-May-2012 |
Manuel Klimek <klimek@google.com> |
Fixes crasher bug in JSONCompilationDatabase for invalid input.
llvm-svn: 156814
|
Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1 |
|
#
ff26efce |
| 18-Apr-2012 |
Manuel Klimek <klimek@google.com> |
Adds a FixedCompilationDatabase to be able to specify tool parameters at the command line.
llvm-svn: 154989
|
#
47c245a5 |
| 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
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.
llvm-svn: 154008
show more ...
|