summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/cindex-on-invalid.m
Commit message (Collapse)AuthorAgeFilesLines
* When translating a Clang source range into a libclang source range,Douglas Gregor2011-04-201-1/+9
| | | | | | | | adjust the a ending macro location to the end of the instantiation location before adjusting it to the end of the token. Fixes <rdar://problem/9021561>. llvm-svn: 129872
* c-index-test shouldn't crash when a goto has no matching label. Fixes ↵Ted Kremenek2011-03-151-1/+8
| | | | | | <rdar://problem/9123493>. llvm-svn: 127711
* Update test case since c-index-test now works on invalid sources.Ted Kremenek2010-03-261-4/+3
| | | | llvm-svn: 99595
* Attempt to fix the MSVC9 failure with c-indext-test, where the CIndex DLLDouglas Gregor2010-02-211-1/+0
| | | | | | | | and the c-index-test executable end up getting different copies of stderr, causing non-deterministic ordering of output. Fixed by flushing the file after printing a diagnostic (only on Windows). llvm-svn: 96754
* XFAIL some of the c-index-test tests on Windows, where they are failing ↵Douglas Gregor2010-02-191-1/+1
| | | | | | inexplicably llvm-svn: 96644
* Re-apply my diagnostics-capture patch for CIndex, with some tweaks toDouglas Gregor2010-02-181-1/+0
| | | | | | try to address the msvc failures. llvm-svn: 96624
* Revert my CIndex diagnostic changes (r96603, 96606, 96607), which wereDouglas Gregor2010-02-181-0/+1
| | | | | | breaking the msvc9 builder for unknown reasons. llvm-svn: 96618
* Resurrect the displayDiagnostics parameter to clang_createIndex(), andDouglas Gregor2010-02-181-1/+0
| | | | | | | display captured diagnostics when we can't return an invalid CXTranslationUnit. llvm-svn: 96606
* Rework how CIndex handles diagnostics. Rather than using a callback,Douglas Gregor2010-02-181-0/+1
| | | | | | | | | | | | | | | | | | 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
* CIndex: For the time being, don't return translation units if we encounter ↵Daniel Dunbar2009-12-051-0/+8
an error during parsing. - We need to be more careful in the rest of CIndex if we are to handle possibly-invalid ASTs, and don't have much experience with this yet. llvm-svn: 90643
OpenPOWER on IntegriCloud