summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXCursor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-31 14:41:23 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-31 14:41:23 +0000
commit12bca22e91415038c3f05a167297d5b344d45824 (patch)
tree0bd43a558e801218b75731e00963fbd0222dc7e7 /clang/tools/libclang/CXCursor.cpp
parentdb2be6a59285e6049c18be26129cccae28447341 (diff)
downloadbcm5719-llvm-12bca22e91415038c3f05a167297d5b344d45824.tar.gz
bcm5719-llvm-12bca22e91415038c3f05a167297d5b344d45824.zip
libclang indexing support for C++ constructors, destructors, and
conversion functions. This introduces new cursor kinds for these three C++ entities, and reworks visitation of function declarations so that we get type-source information for the names. llvm-svn: 112600
Diffstat (limited to 'clang/tools/libclang/CXCursor.cpp')
-rw-r--r--clang/tools/libclang/CXCursor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp
index 40f91a73839..029b3d237dc 100644
--- a/clang/tools/libclang/CXCursor.cpp
+++ b/clang/tools/libclang/CXCursor.cpp
@@ -51,6 +51,9 @@ static CXCursorKind GetCursorKind(Decl *D) {
return cast<ObjCMethodDecl>(D)->isInstanceMethod()
? CXCursor_ObjCInstanceMethodDecl : CXCursor_ObjCClassMethodDecl;
case Decl::CXXMethod: return CXCursor_CXXMethod;
+ case Decl::CXXConstructor: return CXCursor_Constructor;
+ case Decl::CXXDestructor: return CXCursor_Destructor;
+ case Decl::CXXConversion: return CXCursor_ConversionFunction;
case Decl::ObjCProperty: return CXCursor_ObjCPropertyDecl;
case Decl::ObjCProtocol: return CXCursor_ObjCProtocolDecl;
case Decl::ParmVar: return CXCursor_ParmDecl;
OpenPOWER on IntegriCloud