Eliminate cursor kinds used to express definitions. Instead, provide

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
This commit is contained in:
Douglas Gregor
2010-01-19 19:34:47 +00:00
parent fefcb1531c
commit 6b8232ff82
11 changed files with 347 additions and 94 deletions

View File

@@ -572,11 +572,11 @@ CIndexCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &SemaRef,
break;
case Decl::ObjCImplementation:
Kind = CXCursor_ObjCClassDefn;
Kind = CXCursor_ObjCImplementationDecl;
break;
case Decl::ObjCCategoryImpl:
Kind = CXCursor_ObjCCategoryDefn;
Kind = CXCursor_ObjCCategoryImplDecl;
break;
default: