diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-01 02:01:34 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-01 02:01:34 +0000 |
| commit | b26a24cca2fa03ae7db14b0b6290c005ed93cd55 (patch) | |
| tree | 9589cb7655dfdbe28514aa40033dd7891c7fbe74 /clang/include/clang-c | |
| parent | b351c8d692cd0722d112d568c8f8a47647ac145d (diff) | |
| download | bcm5719-llvm-b26a24cca2fa03ae7db14b0b6290c005ed93cd55.tar.gz bcm5719-llvm-b26a24cca2fa03ae7db14b0b6290c005ed93cd55.zip | |
[libclang] Introduce clang_Cursor_getReceiverType which returns the CXType for
the receiver of an ObjC message expression.
rdar://12578643
llvm-svn: 167201
Diffstat (limited to 'clang/include/clang-c')
| -rw-r--r-- | clang/include/clang-c/Index.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 299fa8f98bd..2b52c0c89c1 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -24,7 +24,7 @@ #include "clang-c/CXString.h" #define CINDEX_VERSION_MAJOR 0 -#define CINDEX_VERSION_MINOR 5 +#define CINDEX_VERSION_MINOR 6 #define CINDEX_VERSION_ENCODE(major, minor) ( \ ((major) * 10000) \ @@ -3197,6 +3197,12 @@ CINDEX_LINKAGE int clang_Cursor_getObjCSelectorIndex(CXCursor); CINDEX_LINKAGE int clang_Cursor_isDynamicCall(CXCursor C); /** + * \brief Given a cursor pointing to an ObjC message, returns the CXType of the + * receiver. + */ +CINDEX_LINKAGE CXType clang_Cursor_getReceiverType(CXCursor C); + +/** * \brief Given a cursor that represents a declaration, return the associated * comment's source range. The range may include multiple consecutive comments * with whitespace in between. |

