| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
involving unsaved files, using the -remap-file= functionality recently
added to clang-cc.
llvm-svn: 90314
|
|
|
|
|
|
|
|
| |
quite slow and doesn't really stress the APIs people should really use.
- I'm not even sure if this mode is still useful given the other scanning mode;
Steve?
llvm-svn: 90193
|
|
|
|
|
|
| |
source file (and other command line arguments).
llvm-svn: 90187
|
|
|
|
|
|
| |
<rdar://problem/7383421>.
llvm-svn: 89183
|
|
|
|
| |
llvm-svn: 89140
|
|
|
|
|
|
| |
clang_getCursor() on every character.
llvm-svn: 89136
|
|
|
|
| |
llvm-svn: 89117
|
|
|
|
|
|
| |
"-test-load-tu" option when testing clang_loadTranslationUnit(). Running c-index-test without the correct arguments now also prints a useful summary of its correct usage.
llvm-svn: 89115
|
|
|
|
|
|
| |
or refers to a built-in buffer. Implements <rdar://problem/7296243>.
llvm-svn: 89044
|
|
|
|
|
|
| |
argument
llvm-svn: 86566
|
|
|
|
|
|
|
|
|
|
| |
clang_disposeString().
This abstraction will help us manage string memory for complex names that cross the C++/C boundary (e.g. ObjC methods, selectors). This patch also uses it in clang_getTranslationUnitSpelling (which I'm not sure is necessary). Will investigate later...since the extra malloc() can't hurt (for now).
Patch by John Thompson.
llvm-svn: 86562
|
|
|
|
| |
llvm-svn: 86556
|
|
|
|
|
|
|
|
| |
- Provide an actual test for code-completion via CIndex.
- Actually print optional strings in c-index-test
- Export clang_getCompletionChunkCompletionString from CIndex
llvm-svn: 86550
|
|
|
|
| |
llvm-svn: 86455
|
|
|
|
| |
llvm-svn: 86438
|
|
|
|
| |
llvm-svn: 86393
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Introduce more code-completion string "chunk" kinds that describe
symbols, the actual text that the user is expected to type, etc.
- Make the generation of macro results optional, since it can be
slow
- Make code-completion accessible through the C API, marshalling the
code-completion results through a temporary file (ick) to maintain
process separation.
The last doesn't have tests yet.
llvm-svn: 86306
|
|
|
|
|
|
|
|
|
|
| |
<rdar://problem/7310688>.
Localize the optimization to ResolveLocationInAST(). The last valid AST location is now stored with ASTUnit. There still isn't optimal, however it's an improvement (with a much cleaner API). Having the client manage an "hint" is error prone and complex.
I wanted to land the major changes before finishing up the optimizations.
llvm-svn: 85425
|
|
|
|
| |
llvm-svn: 85234
|
|
|
|
| |
llvm-svn: 84909
|
|
|
|
| |
llvm-svn: 84873
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
searching). Without a 'relativeDecl', the algorithm is n-squared. For example, running the following command on 'Large.m' takes hours without a 'relatvieDecl'.
snaroff% time ../../Debug/bin/c-index-test Large.ast all > Large.out
snaroff% cat Large.m
#import <Cocoa/Cocoa.h>
#import <QuickTime/QuickTime.h>
#import <OpenGL/OpenGL.h>
With a 'relativeDecl', it takes <30 seconds:-)
llvm-svn: 84760
|
|
|
|
|
|
|
|
|
|
|
|
| |
seems cleaner to me without sacrificing much flexibility.
- Remove clang_wantOnlyLocalDeclarations().
- Remove 'displayDiagnostics' arguments to clang_createTranslationUnitFromSourceFile() and clang_createTranslationUnit().
- Have clang_createTranslationUnitFromSourceFile() strip the '-o <outfile>' command line arguments if they exist. Document this semantic in the header. Also verify we have a valid ASTUnit before telling it to 'unlinkTemporaryFile()'.
llvm-svn: 84634
|
|
|
|
|
|
|
|
|
|
|
| |
clang_createTranslationUnit() and clang_createTranslationUnitFromSourceFile(). The user can now
specify if the diagnostics from Clang are printed to stderr or are silenced completely. We can
obviously evolve this API to be more general in the future.
Note: Added a FIXME since I wasn't certain what was the best way to redirect to something analogous
to '/dev/null' on Windows.
llvm-svn: 84548
|
|
|
|
| |
llvm-svn: 84318
|
|
|
|
| |
llvm-svn: 84317
|
|
|
|
|
|
|
|
| |
substantive change is that clang_getCursorSource() now returns the
file in which a macro was instantiated when the cursor points into a
macro instantiation, rather than crashing.
llvm-svn: 84275
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 83327
|
|
|
|
| |
llvm-svn: 83186
|
|
|
|
|
|
|
| |
Fix clang_getCursorDecl to do the right thing for expr refs
Fixup test file to accommodate new output (which includes the line/column for the referenced decl)
llvm-svn: 82798
|
|
|
|
| |
llvm-svn: 82706
|
|
|
|
| |
llvm-svn: 82646
|
|
|
|
|
|
| |
Next step: Add actual some test cases:-)
llvm-svn: 82636
|
|
|
|
|
|
|
|
|
| |
CXCursor_NoDeclFound).
- Add predicate clang_isInvalid().
- Implement clang_getCursorFromDecl().
llvm-svn: 81908
|
|
|
|
|
|
| |
valid location.
llvm-svn: 81487
|
|
|
|
|
|
|
| |
Implement clang_getCursor() - wired up to Argiris's work.
Implement callbacks for CXCursor_ObjCProtocolRef.
llvm-svn: 81004
|
|
|
|
|
|
|
|
| |
investigate the lifetime snafu (with ASTUnit) separately.
- Traverse category methods, add a "class ref" and make the little test harness a bit more flexible.
llvm-svn: 80921
|
|
|
|
|
|
| |
variables.", this is breaking x86_64-apple-darwin10 and Linux tests.
llvm-svn: 80896
|
|
|
|
|
|
|
|
| |
variables.
Add clang_getTranslationUnitSpelling().
llvm-svn: 80859
|
|
|
|
| |
llvm-svn: 80833
|
|
|
|
| |
llvm-svn: 80810
|
|
|
|
|
|
|
|
|
| |
- More declaration types (distinguish between struct/union/class, instance/class methods).
- Add definition types (class, category, function, instance/class method, etc.).
Add client data to clang_loadDeclaration() and implement.
llvm-svn: 80787
|
|
|
|
|
|
| |
blocks).
llvm-svn: 80673
|
|
|
|
| |
llvm-svn: 80585
|
|
|
|
| |
llvm-svn: 80529
|
|
Work in progress.
llvm-svn: 80367
|