summaryrefslogtreecommitdiffstats
path: root/clang/tools/CIndex/CXCursor.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-13 23:39:06 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-13 23:39:06 +0000
commit225b8e39f1bab24f8220694e622bb4859e7abd3a (patch)
treea305929a09e91be87f9cd383949114aca2a68989 /clang/tools/CIndex/CXCursor.cpp
parent3447a02d5f37ff007cec790f80a259a8c4904621 (diff)
downloadbcm5719-llvm-225b8e39f1bab24f8220694e622bb4859e7abd3a.tar.gz
bcm5719-llvm-225b8e39f1bab24f8220694e622bb4859e7abd3a.zip
Add cursor kind for C++ methods.
llvm-svn: 101193
Diffstat (limited to 'clang/tools/CIndex/CXCursor.cpp')
-rw-r--r--clang/tools/CIndex/CXCursor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/CIndex/CXCursor.cpp b/clang/tools/CIndex/CXCursor.cpp
index cbf9d7e6f91..036214e75f4 100644
--- a/clang/tools/CIndex/CXCursor.cpp
+++ b/clang/tools/CIndex/CXCursor.cpp
@@ -50,6 +50,7 @@ static CXCursorKind GetCursorKind(Decl *D) {
case Decl::ObjCMethod:
return cast<ObjCMethodDecl>(D)->isInstanceMethod()
? CXCursor_ObjCInstanceMethodDecl : CXCursor_ObjCClassMethodDecl;
+ case Decl::CXXMethod: return CXCursor_CXXMethod;
case Decl::ObjCProperty: return CXCursor_ObjCPropertyDecl;
case Decl::ObjCProtocol: return CXCursor_ObjCProtocolDecl;
case Decl::ParmVar: return CXCursor_ParmDecl;
OpenPOWER on IntegriCloud