Skip to content
  1. Nov 08, 2009
  2. Nov 07, 2009
  3. Nov 02, 2009
  4. Oct 29, 2009
  5. Oct 28, 2009
    • Steve Naroff's avatar
      Remove _clang_initCXLookupHint() and _clang_getCursorWithHint(). Related to... · 58bd62d1
      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
      58bd62d1
  6. Oct 27, 2009
  7. Oct 26, 2009
  8. Oct 23, 2009
  9. Oct 22, 2009
  10. Oct 21, 2009
    • Steve Naroff's avatar
      Extend clang_getCursor() to take a 'relativeDecl' argument (so speed up... · 20bad0b7
      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
      20bad0b7
  11. Oct 20, 2009
    • Steve Naroff's avatar
      · 531e2840
      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
      531e2840
    • Ted Kremenek's avatar
    • Ted Kremenek's avatar
      Really fix <rdar://problem/7312058> by adding a 'displayDiagnostics' option to · 02b319ce
      Ted 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
      02b319ce
  12. Oct 19, 2009
  13. Oct 18, 2009
  14. Oct 17, 2009
  15. Oct 16, 2009
Loading