- Oct 26, 2009
-
-
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
-
- Oct 01, 2009
-
-
Steve Naroff authored
llvm-svn: 83186
-
- Sep 29, 2009
-
-
Argyrios Kyrtzidis authored
llvm-svn: 83099
-
Argyrios Kyrtzidis authored
-A NamedDecl reference -A TypeLoc llvm-svn: 83095
-
- Sep 26, 2009
-
-
Steve Naroff authored
llvm-svn: 82810
-
- Sep 25, 2009
-
-
Steve Naroff authored
llvm-svn: 82807
-
Steve Naroff authored
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
-
- Sep 23, 2009
-
-
Steve Naroff authored
Next step: Add actual some test cases:-) llvm-svn: 82636
-
- Sep 22, 2009
-
-
Steve Naroff authored
- Add missing prototypes for dispose functions. llvm-svn: 82564
-