summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/CodeCompleteConsumer.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-19 19:34:47 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-19 19:34:47 +0000
commit6b8232ff82f85f40ecda480f2852bf5ec8ccf87c (patch)
tree99054a55818529e0fefe24816e065d920273de81 /clang/lib/Sema/CodeCompleteConsumer.cpp
parentfefcb1531c43e792e1fc5a3b8fab9282f0f85625 (diff)
downloadbcm5719-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.cpp4
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:
OpenPOWER on IntegriCloud