summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/TestClassForwardDecl.m
Commit message (Collapse)AuthorAgeFilesLines
* c-index-test: Unify and always print half-open extents.Daniel Dunbar2010-02-141-9/+9
| | | | llvm-svn: 96160
* c-index-test: Unify syntax for printing extents. Yes, there were 4.Daniel Dunbar2010-02-141-9/+9
| | | | llvm-svn: 96158
* Loosen preconditions for clang_getCursorSpelling(), returning an emptyDouglas Gregor2010-01-251-1/+1
| | | | | | | string when given a cursor that does not have a name. Also, don't give silly names for statements and non-reference expressions. llvm-svn: 94426
* Teach CIndex's cursor visitor to restrict its traversal to a specificDouglas Gregor2010-01-221-8/+3
| | | | | | | | | | | | | | region of interest (if provided). Implement clang_getCursor() in terms of this traversal rather than using the Index library; the unified cursor visitor is more complete, and will be The Way Forward. Minor other tweaks needed to make this work: - Extend Preprocessor::getLocForEndOfToken() to accept an offset from the end, making it easy to move to the last character in the token (rather than just past the end of the token). - In Lexer::MeasureTokenLength(), the length of whitespace is zero. llvm-svn: 94200
* Extend the CIndex API with direct support for expressions andDouglas Gregor2010-01-191-1/+1
| | | | | | | | | | statements, moving some of the more unnatural kinds of references (VarRef, EnumConstantRef, etc.) over to the expressions. We can now poke at arbitrary expressions and statements with, e.g., clang_getCursor() and get back useful information (e.g., source ranges). llvm-svn: 93946
* Introduce the notion of an "unexposed" declaration into the CIndexDouglas Gregor2010-01-191-1/+1
| | | | | | | | API. This is a catch-all for any declaration known to Clang but not specifically part of the CIndex API. We'll use the same approach with expressions, statements, references, etc., as needed. llvm-svn: 93924
* Eliminate cursor kinds used to express definitions. Instead, provideDouglas Gregor2010-01-191-6/+6
| | | | | | | | | | | | CIndex functions that (1) map from a reference or declaration to the corresponding definition, if available, and (2) determine whether a given declaration cursor is also a definition. This eliminates a lot of duplication in the cursor kinds, and maps more closely to the Clang ASTs. This is another API + ABI breaker with no deprecation. Yay, progress. llvm-svn: 93893
* Introduce clang_getCursorReferenced, to get a cursor pointing at theDouglas Gregor2010-01-191-2/+2
| | | | | | entity that a particular cursor references. llvm-svn: 93830
* Replace clang_getDeclUSR() with clang_getCursorUSR(). Also remove printing ↵Ted Kremenek2010-01-181-2/+2
| | | | | | 'contexts' from c-index-test output; it wasn't helpful and was extremely brittle. llvm-svn: 93760
* Give ObjCClassRef cursors a sane representation, which is encapsulatedDouglas Gregor2010-01-161-1/+1
| | | | | | | | | in CXCursor.cpp. With this sane representation, fix the class reference that is part of Objective-C category declarations so that the cursor's location matches up with the reference, not the class being referred to. llvm-svn: 93640
* Remove TranslateKind and centralize Decl -> CXCursorKind in GetCursorKind(). ↵Ted Kremenek2010-01-161-6/+6
| | | | | | This revealed a bunch of inconsistencies in how CXCursorKinds were being computed. llvm-svn: 93618
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Make tests use the new clang -cc1 flag.Fariborz Jahanian2009-12-141-1/+1
| | | | llvm-svn: 91303
* Update test to stop scanning things in the predefines buffer, this isn't addingDaniel Dunbar2009-11-181-14/+14
| | | | | | value. llvm-svn: 89235
* Update index tests for r89203.Benjamin Kramer2009-11-181-7/+7
| | | | llvm-svn: 89204
* Add special clang_getCursor() support for @class. Handles ↵Ted Kremenek2009-11-181-0/+46
<rdar://problem/7383421>. llvm-svn: 89183
OpenPOWER on IntegriCloud