| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 93003
|
|
|
|
|
|
| |
restore to the one most recently created.
llvm-svn: 92959
|
|
|
|
| |
llvm-svn: 92955
|
|
|
|
|
|
| |
character in the last token.
llvm-svn: 92869
|
|
|
|
|
|
| |
clang_createTranslationUnitFromSourceFile().
llvm-svn: 92820
|
|
|
|
|
|
| |
'clang_getDeclFile()' instead.
llvm-svn: 92803
|
|
|
|
|
|
| |
declaration. This implements <rdar://problem/7280072>.
llvm-svn: 92802
|
|
|
|
| |
llvm-svn: 92789
|
|
|
|
| |
llvm-svn: 92765
|
|
|
|
|
|
| |
unnecessary #includes.
llvm-svn: 92756
|
|
|
|
| |
llvm-svn: 92500
|
|
|
|
| |
llvm-svn: 91702
|
|
|
|
|
|
|
|
| |
the heap, so that clients are not forced to copy the results during
the initial iteration. A separate clang_disposeCodeCompleteResults
function frees the returned results.
llvm-svn: 91690
|
|
|
|
|
|
| |
CIndex to pass in the right directory (previously it was using the path to the main executable, which generally is wrong).
llvm-svn: 91238
|
|
|
|
| |
llvm-svn: 91072
|
|
|
|
|
|
| |
DiagnosticOptions, and update callers to make sure they don't pass in a temporary.
llvm-svn: 90704
|
|
|
|
|
|
|
|
|
| |
an error during parsing.
- We need to be more careful in the rest of CIndex if we are to handle
possibly-invalid ASTs, and don't have much experience with this yet.
llvm-svn: 90643
|
|
|
|
|
|
|
|
| |
from a source file.
- This allows CIndex to avoid iterating over all the top-level decls when using
a PCH, which means we deserialize far fewer decls.
llvm-svn: 90559
|
|
|
|
|
|
| |
-{remap-file,code-completion-at}.
llvm-svn: 90416
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ASTUnit::LoadFromCommandLine.
- This is much faster, as it avoids the overhead of dumping an AST file to disk and reloading it.
- For debugging purposes, there is a clang_setUseExternalASTGeneration hook which can be used to disable this.
On the Sketch Cocoa app, the speedup is pretty nice, especially when using a PCH file while scanning the source:
Wall time to c-index-test all files (no PCH):
Old: 23.4221
New: 12.3884
Wall time to c-index-test all files (with a PCH, and "local" mode):
Old: 10.9233
New: 1.9038
llvm-svn: 90385
|
|
|
|
|
|
| |
propogate and simplify.
llvm-svn: 90379
|
|
|
|
|
|
|
| |
involving unsaved files, using the -remap-file= functionality recently
added to clang-cc.
llvm-svn: 90314
|
|
|
|
|
|
| |
for a massive speedup
llvm-svn: 90209
|
|
|
|
| |
llvm-svn: 90196
|
|
|
|
| |
llvm-svn: 90155
|
|
|
|
| |
llvm-svn: 90154
|
|
|
|
|
|
| |
Also, tweak a few help strings and update CompilerInvocation serialization for prev change.
llvm-svn: 89317
|
|
|
|
|
|
| |
cursors).
llvm-svn: 89131
|
|
|
|
|
|
| |
NULL). This allows the client to put the source_filename in the command_line_args without fear of the file being named twice.
llvm-svn: 89118
|
|
|
|
| |
llvm-svn: 89055
|
|
|
|
|
|
| |
or refers to a built-in buffer. Implements <rdar://problem/7296243>.
llvm-svn: 89044
|
|
|
|
| |
llvm-svn: 87050
|
|
|
|
| |
llvm-svn: 86896
|
|
|
|
|
|
| |
'displayDiagnostics' option to 1 in clang_createIndex(). This fixes <rdar://problem/7370691>.
llvm-svn: 86700
|
|
|
|
|
|
|
| |
when looking for a name within a given DeclContext. Now enumerators
will show up in code-completion results.
llvm-svn: 86591
|
|
|
|
| |
llvm-svn: 86577
|
|
|
|
|
|
|
|
| |
- free(NULL) is a nop anyway.
- if someone thinks calling clang_disposeString twice should be legal
please change the method to take a pointer.
llvm-svn: 86568
|
|
|
|
|
|
|
|
|
|
| |
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: 86439
|
|
|
|
| |
llvm-svn: 86438
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
- change ObjCCategoryImplDecl::getCategoryClass() to getCategoryDecl().
No functionality change.
llvm-svn: 85528
|
|
|
|
|
|
| |
back the category name (not the class name). This fixes <rdar://problem/7297518>.
llvm-svn: 85521
|
|
|
|
|
|
|
|
|
|
| |
<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
|
|
|
|
|
|
|
|
|
|
| |
- 4 new functions (clang_getCursorSourceFile, clang_getDeclSourceFile, clang_getFileName, clang_getFileTime).
- Should remove clang_getDeclSource() and clang_getCursorSource(). For now, just put 'deprecate' comment in header.
- Also changed CXX style comment to C style (to eliminate warning).
llvm-svn: 85238
|
|
|
|
| |
llvm-svn: 85163
|
|
|
|
| |
llvm-svn: 85162
|
|
|
|
|
|
| |
clang_createTranslationUnit() and clang_createTranslationUnitFromSource(). These kind of errors are ones that shouldn't be missed.
llvm-svn: 84904
|
|
|
|
| |
llvm-svn: 84873
|
|
|
|
|
|
| |
fails.
llvm-svn: 84825
|