Skip to content
  1. Mar 05, 2010
  2. Mar 04, 2010
  3. Mar 03, 2010
  4. Mar 02, 2010
  5. Feb 28, 2010
  6. Feb 27, 2010
  7. Feb 26, 2010
  8. Feb 25, 2010
  9. Feb 24, 2010
  10. Feb 23, 2010
  11. Feb 22, 2010
  12. Feb 21, 2010
  13. Feb 19, 2010
  14. Feb 18, 2010
    • Douglas Gregor's avatar
      Rework how CIndex handles diagnostics. Rather than using a callback, · 33cdd810
      Douglas Gregor authored
      we attach diagnostics to translation units and code-completion
      results, so they can be queried at any time.
      
      To facilitate this, the new StoredDiagnostic class stores a diagnostic
      in a serializable/deserializable form, and ASTUnit knows how to
      capture diagnostics in this stored form. CIndex's CXDiagnostic is a
      thin wrapper around StoredDiagnostic, providing a C interface to
      stored or de-serialized diagnostics.
      
      I've XFAIL'd one test case temporarily, because currently we end up
      storing diagnostics in an ASTUnit that's never returned to the user
      (because it contains errors). I'll introduce a temporary fix for this
      soon; the real fix will be to allow us to return and query invalid ASTs.
      
      llvm-svn: 96592
      33cdd810
Loading