diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-19 19:34:47 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-19 19:34:47 +0000 |
commit | 6b8232ff82f85f40ecda480f2852bf5ec8ccf87c (patch) | |
tree | 99054a55818529e0fefe24816e065d920273de81 /clang/lib/Sema/CodeCompleteConsumer.cpp | |
parent | fefcb1531c43e792e1fc5a3b8fab9282f0f85625 (diff) | |
download | bcm5719-llvm-6b8232ff82f85f40ecda480f2852bf5ec8ccf87c.tar.gz bcm5719-llvm-6b8232ff82f85f40ecda480f2852bf5ec8ccf87c.zip |
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
Diffstat (limited to 'clang/lib/Sema/CodeCompleteConsumer.cpp')
-rw-r--r-- | clang/lib/Sema/CodeCompleteConsumer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/CodeCompleteConsumer.cpp b/clang/lib/Sema/CodeCompleteConsumer.cpp index fbd14502b7e..8c4caafeac2 100644 --- a/clang/lib/Sema/CodeCompleteConsumer.cpp +++ b/clang/lib/Sema/CodeCompleteConsumer.cpp @@ -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: |