diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-10-03 16:19:23 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-10-03 16:19:23 +0000 |
commit | 7a4253b68512edb5342047974f4080e5544dc027 (patch) | |
tree | 1d991007a3757e1c3163f81beb7e3f0cf4b06b6a /clang/include/clang-c | |
parent | 0bf8241d4bda427f47e3374f60f0203fdab0f5b1 (diff) | |
download | bcm5719-llvm-7a4253b68512edb5342047974f4080e5544dc027.tar.gz bcm5719-llvm-7a4253b68512edb5342047974f4080e5544dc027.zip |
[libclang] Introduce clang_Type_getClassType which returns the class type of a member pointer type.
Patch by Che-Liang Chiou!
llvm-svn: 191906
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r-- | clang/include/clang-c/Index.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 4285cc5922f..ca0bc14eb27 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -2678,7 +2678,8 @@ enum CXTypeKind { CXType_Vector = 113, CXType_IncompleteArray = 114, CXType_VariableArray = 115, - CXType_DependentSizedArray = 116 + CXType_DependentSizedArray = 116, + CXType_MemberPointer = 117 }; /** @@ -2969,6 +2970,13 @@ enum CXTypeLayoutError { CINDEX_LINKAGE long long clang_Type_getAlignOf(CXType T); /** + * \brief Return the class type of an member pointer type. + * + * If a non-member-pointer type is passed in, an invalid type is returned. + */ +CINDEX_LINKAGE CXType clang_Type_getClassType(CXType T); + +/** * \brief Return the size of a type in bytes as per C++[expr.sizeof] standard. * * If the type declaration is invalid, CXTypeLayoutError_Invalid is returned. |