Skip to content
  1. Oct 26, 2009
  2. Oct 23, 2009
  3. Oct 22, 2009
  4. 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
  5. 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
  6. Oct 19, 2009
  7. Oct 18, 2009
  8. Oct 17, 2009
  9. Oct 16, 2009
  10. Oct 15, 2009
  11. Oct 05, 2009
  12. Oct 01, 2009
  13. Sep 29, 2009
  14. Sep 26, 2009
  15. Sep 25, 2009
  16. Sep 23, 2009
  17. Sep 22, 2009
Loading