- Nov 08, 2009
-
-
Daniel Dunbar authored
llvm-svn: 86439
-
Daniel Dunbar authored
llvm-svn: 86438
-
- Nov 07, 2009
-
-
Douglas Gregor authored
- 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
-
- Oct 29, 2009
-
-
Steve Naroff authored
- change ObjCCategoryImplDecl::getCategoryClass() to getCategoryDecl(). No functionality change. llvm-svn: 85528
-
Steve Naroff authored
clang_getDeclSpelling(): For category implementations, make sure we hand back the category name (not the class name). This fixes <rdar://problem/7297518>. llvm-svn: 85521
-
- Oct 28, 2009
-
-
Steve Naroff authored
Remove _clang_initCXLookupHint() and _clang_getCursorWithHint(). Related to <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
-
- Oct 27, 2009
-
-
rdar://problem/7303360Steve Naroff authored
- 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
-
- Oct 26, 2009
-
-
Ted Kremenek authored
llvm-svn: 85163
-
Ted Kremenek authored
llvm-svn: 85162
-
- Oct 23, 2009
-
-
Ted Kremenek authored
Always emit error diagnostics when an error occurs within clang_createTranslationUnit() and clang_createTranslationUnitFromSource(). These kind of errors are ones that shouldn't be missed. llvm-svn: 84904
-
- Oct 22, 2009
-
-
Ted Kremenek authored
llvm-svn: 84873
-
Ted Kremenek authored
llvm-svn: 84825
-
Ted Kremenek authored
(1) Allow the source file to be specified in the actual command line arguments by allowing the caller to set 'source_filename' to NULL. (2) Automatically strip off the arguments '-emit-ast', '-fsyntax-only', and '-c'. llvm-svn: 84802
-
- Oct 21, 2009
-
-
Steve Naroff authored
Extend clang_getCursor() to take a 'relativeDecl' argument (so speed up 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
-
- Oct 20, 2009
-
-
Steve Naroff authored
- Extend clang_createIndex() to support PCH and diagnostic 'filtering'. This 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
-
Ted Kremenek authored
llvm-svn: 84555
-
rdar://problem/7312058Ted Kremenek authored
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
-
- Oct 19, 2009
-
-
Ted Kremenek authored
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
-
Ted Kremenek authored
Re-order includes so that the logic involving '#ifdef LLVM_ON_WIN32' appears after the main #includes. The ultimate solution is to just use LLVM-portable methods in llvm/System. llvm-svn: 84534
-
Steve Naroff authored
Removing this shared data should enable clang_createTranslationUnit/clang_createTranslationUnitFromSourceFile to be run from multiple threads (related to <rdar://problem/7303432>). llvm-svn: 84499
-
Steve Naroff authored
llvm-svn: 84498
-
Benjamin Kramer authored
Daniel's comment. llvm-svn: 84484
-
- Oct 18, 2009
-
-
Daniel Dunbar authored
llvm-svn: 84436
-
Benjamin Kramer authored
llvm-svn: 84422
-
Benjamin Kramer authored
llvm-svn: 84421
-
Benjamin Kramer authored
llvm-svn: 84420
-
Benjamin Kramer authored
llvm-svn: 84419
-
Benjamin Kramer authored
llvm-svn: 84414
-
Benjamin Kramer authored
llvm-svn: 84413
-
Daniel Dunbar authored
llvm-svn: 84381
-
- Oct 17, 2009
-
-
Ted Kremenek authored
llvm-svn: 84313
-
Ted Kremenek authored
its own BumpPtrAllocator to allocate ASTs. Change clang_createTranslationUnit (CIndex) to pass 'UseBumpPtrAllocator = true' to ASTUnit::LoadFromPCHFile(). llvm-svn: 84296
-
- Oct 16, 2009
-
-
Douglas Gregor authored
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
-
Douglas Gregor authored
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
-
Ted Kremenek authored
llvm-svn: 84220
-
Steve Naroff authored
llvm-svn: 84208
-
Ted Kremenek authored
llvm-svn: 84207
-
- Oct 15, 2009
-
-
Steve Naroff authored
llvm-svn: 84203
-
rdar://problem/7303432Steve Naroff authored
Implement <rdar://problem/7303432> [Clang/Index] In-memory-style AST generation API (initial API implementation). Added clang_createTranslationUnitFromSourceFile(). Changed clang_createIndex() to lookup the location of clang (using dladdr). llvm-svn: 84198
-
- Oct 05, 2009
-
-
Steve Naroff authored
- Make sure CHECK: lines in test case match the expected output. llvm-svn: 83316
-