| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 90263
|
|
|
|
|
|
|
| |
Also, add an -ast-from-source option to index-test which allows index-test to
run on source files directly.
llvm-svn: 90223
|
|
|
|
| |
llvm-svn: 90033
|
|
|
|
|
|
|
|
| |
- This ended up being hard to factor, sorry for the large diff.
- Some post-commit cleanup to come.
llvm-svn: 88833
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the front-end (as far as the preprocessor goes), follow the usual logic of
inserting the (original include path) name into the predefines buffer. This
pushes the responsibility for handling this to PCH instead of the front-end. In
PCH this requires being a little more clever when we diff the predefines
buffers.
Neither of these solutions are particularly great, I think what we eventually
should do is something like gcc where we insert a special marker to indicate the
PCH file, but then run the preprocessor as usual. This would be clearer and
would allow us to drop the overly clever predefines handling.
llvm-svn: 86806
|
|
|
|
| |
llvm-svn: 86775
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ASTUnit to specify
alternate DiagnosticClients. To match this API, ASTUnit::LoadFromPCHFile() now takes a corresponding
DiagnosticClient* argument as well. The DiagnosticClient object is destroyed when the ASTUnit object
is destroyed.
The CIndex library now uses this API to create a 'IgnoreDiagnosticsClient' that simply silences
diagnostics when using the clang_createTranslationUnitFromSourceFile() function. This fixes
<rdar://problem/7312058>. This API can change in the future as we add more flexibility for clients.
llvm-svn: 84539
|
|
|
|
|
|
| |
Removing this shared data should enable clang_createTranslationUnit/clang_createTranslationUnitFromSourceFile to be run from multiple threads (related to <rdar://problem/7303432>).
llvm-svn: 84499
|
|
|
|
| |
llvm-svn: 84415
|
|
|
|
|
|
|
|
|
|
|
| |
created ASTContext to use
its own BumpPtrAllocator to allocate ASTs.
Change clang_createTranslationUnit (CIndex) to pass 'UseBumpPtrAllocator = true' to
ASTUnit::LoadFromPCHFile().
llvm-svn: 84296
|
|
|
|
|
|
|
|
|
|
| |
header or not via a new "PCHLevel" field in Decl. We currently use
this information to help CIndex filter out declarations that came from
a precompiled header (rather than from an AST file). Further down the
road, it can be used to help implement multi-level precompiled
headers.
llvm-svn: 84267
|
|
|
|
| |
llvm-svn: 84208
|
|
|
|
|
|
|
|
| |
predefines.
- It isn't really clear what to do with the preprocessor here, but this is more sensible.
llvm-svn: 82431
|
|
|
|
|
|
| |
control of this.
llvm-svn: 82430
|
|
|
|
| |
llvm-svn: 81346
|
|
|
|
|
|
|
| |
Implement clang_getCursor() - wired up to Argiris's work.
Implement callbacks for CXCursor_ObjCProtocolRef.
llvm-svn: 81004
|
|
|
|
|
|
| |
clang_getTranslationUnitSpelling().
llvm-svn: 80932
|
|
|
|
|
|
| |
variables.", this is breaking x86_64-apple-darwin10 and Linux tests.
llvm-svn: 80896
|
|
|
|
|
|
| |
previous commit this depends on is breaking x86_64-apple-darwin10 and Linux tests.
llvm-svn: 80895
|
|
|
|
| |
llvm-svn: 80861
|
|
|
|
|
|
|
|
| |
variables.
Add clang_getTranslationUnitSpelling().
llvm-svn: 80859
|
|
|
|
| |
llvm-svn: 74196
|
|
|
|
| |
llvm-svn: 73825
|
|
ASTUnit is a helper class to allow easy loading of an ASTContext from a PCH file. No users for now.
llvm-svn: 73819
|