diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-31 14:41:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-31 14:41:23 +0000 |
commit | 01829d3afafdfd355cbe93537bc408aeeed964c6 (patch) | |
tree | f448435bbcf07157a19c8b591dc5010d6cedb72c /include | |
parent | 8fb280cbbc8348d4d38f6ed7fa68bb04326814fb (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang-c/Index.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 3f0dabf1c5..e3d10f3fcd 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -976,9 +976,14 @@ enum CXCursorKind { CXCursor_Namespace = 22, /** \brief A linkage specification, e.g. 'extern "C"'. */ CXCursor_LinkageSpec = 23, - + /** \brief A C++ constructor. */ + CXCursor_Constructor = 24, + /** \brief A C++ destructor. */ + CXCursor_Destructor = 25, + /** \brief A C++ conversion function. */ + CXCursor_ConversionFunction = 26, CXCursor_FirstDecl = CXCursor_UnexposedDecl, - CXCursor_LastDecl = CXCursor_LinkageSpec, + CXCursor_LastDecl = CXCursor_ConversionFunction, /* References */ CXCursor_FirstRef = 40, /* Decl references */ |