Skip to content
  1. Nov 08, 2009
  2. Nov 07, 2009
    • Douglas Gregor's avatar
      Various improvements to Clang's code-completion infrastructure: · 9eb7701d
      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
      9eb7701d
  3. Oct 29, 2009
  4. 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
  5. Oct 27, 2009
    • Steve Naroff's avatar
      Add support for 'CXFile' (<rdar://problem/7303360>). · 6231f187
      Steve 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
      6231f187
  6. Oct 26, 2009
  7. Oct 23, 2009
  8. Oct 22, 2009
  9. 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
  10. 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
  11. Oct 19, 2009
  12. Oct 18, 2009
  13. Oct 17, 2009
  14. Oct 16, 2009
  15. Oct 15, 2009
  16. Oct 05, 2009
Loading