diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-10-11 19:58:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-10-11 19:58:38 +0000 |
commit | adff3ae3c8e9f3c2bf5caae0d1cb7484fa1b1ff6 (patch) | |
tree | b00d289afaa9cec066077044c581f9b4737dd191 /clang/include/clang-c | |
parent | a9767aed802937e772c327fdc4416c5ae4e81b80 (diff) | |
download | bcm5719-llvm-adff3ae3c8e9f3c2bf5caae0d1cb7484fa1b1ff6.tar.gz bcm5719-llvm-adff3ae3c8e9f3c2bf5caae0d1cb7484fa1b1ff6.zip |
[libclang] Introduce clang_Type_getCXXRefQualifier whichexposes ref-qualifier information of function type.
Patch by Che-Liang Chiou!
llvm-svn: 192493
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r-- | clang/include/clang-c/Index.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index ca0bc14eb27..c8cdcb78551 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -3002,6 +3002,23 @@ CINDEX_LINKAGE long long clang_Type_getSizeOf(CXType T); */ CINDEX_LINKAGE long long clang_Type_getOffsetOf(CXType T, const char *S); +enum CXRefQualifierKind { + /** \brief No ref-qualifier was provided. */ + CXRefQualifier_None = 0, + /** \brief An lvalue ref-qualifier was provided (\c &). */ + CXRefQualifier_LValue, + /** \brief An rvalue ref-qualifier was provided (\c &&). */ + CXRefQualifier_RValue +}; + +/** + * \brief Retrieve the ref-qualifier kind of a function or method. + * + * The ref-qualifier is returned for C++ functions or methods. For other types + * or non-C++ declarations, CXRefQualifier_None is returned. + */ +CINDEX_LINKAGE enum CXRefQualifierKind clang_Type_getCXXRefQualifier(CXType T); + /** * \brief Returns non-zero if the cursor specifies a Record member that is a * bitfield. |