| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Also, it was the only reason that `argc` and `argv` were being passed
into createDiagnostics, so remove those parameters and clean up callers.
llvm-svn: 172945
|
|
|
|
|
|
| |
brought into 'clang' namespace by clang/Basic/LLVM.h
llvm-svn: 172323
|
|
|
|
| |
llvm-svn: 172321
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
RefactoringTool::run() always writes the result of rewrites to disk.
Instead, make this optional and provide a method for getting the
refactoring results in a memory buffer instead.
Also made ClangTool polymorphic so RefactoringTool could inherit from it
to properly express the IS-A relationship. This change also provides
access to ClangTool's public interface, e.g. mapVirtualFile() which is
important once refactored buffers start living in memory instead of on
disk.
Reviewers: klimek
llvm-svn: 172219
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Renaming GetCompilations() and GetSourcePathList() to follow LLVM
style.
- Updating docs to reflect name change.
- Also updating help text to not mention clang-check since this class
can be used by any tool.
Reviewed By: Alexander Kornienko
llvm-svn: 170229
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
uncovered.
This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.
I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
|
|
|
|
|
|
| |
compile commands of the database and expose it via the libclang API.
llvm-svn: 169226
|
|
|
|
|
|
| |
is not used in any #ifdef.
llvm-svn: 168703
|
|
|
|
|
|
|
| |
the various stakeholders bump up the reference count. In particular,
the diagnostics engine now keeps the DiagnosticOptions object alive.
llvm-svn: 166508
|
|
|
|
|
| |
Review: http://llvm-reviews.chandlerc.com/D62
llvm-svn: 165933
|
|
|
|
| |
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
|