Skip to content
Snippets Groups Projects
  1. Jun 13, 2013
  2. Jun 11, 2013
  3. Jan 11, 2013
  4. Jan 07, 2013
  5. Nov 27, 2012
  6. Apr 11, 2012
  7. Mar 28, 2012
  8. May 05, 2011
  9. Nov 29, 2010
  10. Nov 16, 2010
  11. Nov 14, 2010
    • Ted Kremenek's avatar
      "Fix" some unintentional fallout from converting · 6c53fdd8
      Ted Kremenek authored
      the Stmt* visitation in CursorVisitor to be
      data-recursive.
      
      Since AnnotationTokensWorker explicitly calls
      CursorVisitor::VisitChildren(), it essentially
      transforms the data-recursive algorithm in
      CursorVisitor back into a non-data recursive one.
      This is particularly bad because the data-recursive
      algorithm uses more stack space per stack frame,
      which can cause us to blow the stack in some cases.
      
      "Fix" this by making the stack that AnnotationTokensWorker
      runs in really huge.  The real fix is to modify
      AnnotationTokensWorker not to do the explicit
      recursive call.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119047 91177308-0d34-0410-b5e6-96231b3b80d8
      6c53fdd8
  12. Nov 05, 2010
  13. Nov 03, 2010
    • Argyrios Kyrtzidis's avatar
      Implement -working-directory. · 389db16c
      Argyrios Kyrtzidis authored
      When -working-directory is passed in command line, file paths are resolved relative to the specified directory.
      This helps both when using libclang (where we can't require the user to actually change the working directory)
      and to help reproduce test cases when the reproduction work comes along.
      
      --FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains
       the working directory value if set).
      --FileSystemOptions are passed around to various interfaces that perform file operations.
      --Opening & reading the content of files should be done only through FileManager. This is useful in general since
       file operations will be abstracted in the future for the reproduction mechanism.
      
      FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same
      FileManager but with different FileSystemOptions.
      
      Addresses rdar://8583824.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118203 91177308-0d34-0410-b5e6-96231b3b80d8
      389db16c
  14. Oct 12, 2010
  15. Oct 11, 2010
  16. Apr 30, 2010
  17. Apr 12, 2010
  18. Mar 13, 2010
  19. Feb 19, 2010
  20. Feb 18, 2010
  21. Feb 17, 2010
  22. Jan 28, 2010
    • Douglas Gregor's avatar
      Switch the remaining diagnostic printing in CIndex over to the · 936ea3b5
      Douglas Gregor authored
      diagnostic callback mechanism, so all diagnostics now go through that
      callback. Also, eliminate the displayDiagnostics flag to
      clang_createIndex(), since it is no longer necessary: the client
      determines whether to display diagnostics or not.
      
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94714 91177308-0d34-0410-b5e6-96231b3b80d8
      936ea3b5
    • Douglas Gregor's avatar
      Implement a diagnostics callback for the C interface to Clang, so that · 5352ac06
      Douglas Gregor authored
      clients can format diagnostics as they wish rather than having to
      parse standard error. All of the important parts of the front end's
      diagnostics are exposed: text, severity, location, source ranges, and
      fix-its. The diagnostics callback is now available with
      clang_createTranslationUnitFromSource() and
      clang_createTranslationUnit().
      
      As part of this change, CXSourceLocation and CXSourceRange got one
      pointer larger, since we need to hold on to the SourceManager and
      LangOptions structures in the source location. This is the minimum
      amount of information needed for the functions that operate on source
      locations and ranges (as implemented now). Previously we held on to
      the ASTContext, but the diagnostics callback can end up with source
      locations when there is no ASTContext (or preprocessor).
      
      Still to do:
        - Code completion needs to support the diagnostics callback, once we
        have the ability to (de-)serialize diagnostics.
        - Eliminate the "displayDiagnostics" argument to createIndex; we'll
        always pass diagnostics to the callback and let it deal with display.
      
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94709 91177308-0d34-0410-b5e6-96231b3b80d8
      5352ac06
  23. Jan 26, 2010
  24. Jan 23, 2010
  25. Jan 22, 2010
  26. Jan 12, 2010
  27. Jan 05, 2010
Loading