| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 165414
|
| |
|
|
| |
llvm-svn: 165412
|
| |
|
|
|
| |
Review: http://llvm-reviews.chandlerc.com/D30
llvm-svn: 165392
|
| |
|
|
|
|
|
| |
This is similar to how we divide up the StaticAnalyzer libraries to separate
core functionality to what is clearly associated with Frontend actions.
llvm-svn: 163050
|
| |
|
|
|
|
|
|
| |
passing additional parameters to a tool.
Use this to fix a FIXME in testing code.
llvm-svn: 162889
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Subj.
Reviewers: chandlerc, klimek, djasper
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D29
llvm-svn: 162798
|
| |
|
|
|
|
| |
"volatile" affects.
llvm-svn: 162550
|
| |
|
|
|
|
|
| |
databases. Move JSONCompilationDatabase.h to its own files and
register it as plugin.
llvm-svn: 162541
|
| |
|
|
| |
llvm-svn: 162521
|
| |
|
|
|
|
| |
static variables.
llvm-svn: 162391
|
| |
|
|
|
|
|
|
| |
Clear the FileManager's stat cache in between running
translation units, as the stat cache loaded from a pch
is only valid for one compiler invocation.
llvm-svn: 161047
|
| |
|
|
| |
llvm-svn: 160851
|
| |
|
|
| |
llvm-svn: 160850
|
| |
|
|
| |
llvm-svn: 160432
|
| |
|
|
|
|
| |
CustomCompilationDatabase.h
llvm-svn: 160369
|
| |
|
|
|
|
| |
buildbot failures.
llvm-svn: 160355
|
| |
|
|
|
|
|
| |
ASTMatchers (lower level abstraction) to Tooling (higher level
abstraction).
llvm-svn: 160351
|
| |
|
|
| |
llvm-svn: 160315
|
| |
|
|
| |
llvm-svn: 160313
|
| |
|
|
|
|
| |
command-line tool stuff to CommandLineClangTool
llvm-svn: 160265
|
| |
|
|
|
|
| |
Patch by Tobias Koenig, some test changes by myself.
llvm-svn: 160167
|
| |
|
|
|
|
|
|
| |
CompilationDatabase, make it implement findCompilationDatabaseForDirectory in CustomCompilationDatabase.h and set USE_COSTUM_COMPILATION_DATABASE.
Differential Revision: http://llvm-reviews.chandlerc.com/D4
llvm-svn: 160061
|
| |
|
|
|
|
| |
directory and all its parents.
llvm-svn: 159998
|
| |
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 159990
|
| |
|
|
|
|
|
|
| |
used with classes that generate ASTConsumers; this allows decoupling
the ASTConsumer generation from the Frontend library (like, for example,
the MatchFinder in the upcoming ASTMatcher patch).
llvm-svn: 159760
|
| |
|
|
|
|
|
|
|
| |
express library-level dependencies within Clang.
This is no more verbose really, and plays nicer with the rest of the
CMake facilities. It should also have no change in functionality.
llvm-svn: 158888
|
| |
|
|
|
|
| |
tool's binary contains sym-links.
llvm-svn: 157944
|
| |
|
|
|
|
| |
path.
llvm-svn: 157889
|
| |
|
|
| |
llvm-svn: 157759
|
| |
|
|
|
|
| |
Adds missing header guards to Refactoring.h.
llvm-svn: 157694
|
| |
|
|
| |
llvm-svn: 157687
|
| |
|
|
|
|
|
|
| |
used here.
It fixes test/Tooling on Win32 hosts.
llvm-svn: 157350
|
| |
|
|
|
|
| |
that allows easy refactoring across translation units.
llvm-svn: 157331
|
| |
|
|
| |
llvm-svn: 156814
|
| |
|
|
|
|
| |
Also, add an anchor as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch
llvm-svn: 156495
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 156302
|
| |
|
|
| |
llvm-svn: 156301
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
The driver needs to get the correct path to the executable to deduce
the header search path.
llvm-svn: 155542
|
| |
|
|
|
|
| |
at the command line.
llvm-svn: 154989
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
llvm-svn: 154929
|
| |
|
|
|
|
|
|
| |
We currently want to look whether PWD is available - if PWD is available it will
get us the non-resolved current path, while fs::current_path will resolve
symlinks. The long term fix is to not rely on that behavior any more.
llvm-svn: 154330
|
| |
|
|
| |
llvm-svn: 154016
|
| |
|
|
|
|
| |
$ENV{PWD} is not expected to be set on all hosts.
llvm-svn: 154015
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 132462
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
tools to be implemented without duplicating the boilerplate.
llvm-svn: 131425
|
| |
|
|
| |
llvm-svn: 131367
|