diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-07-02 23:54:36 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-07-02 23:54:36 +0000 |
commit | b6df6821944632a58c75772dcefc01f2082b04f8 (patch) | |
tree | 4518c1ff1087ef859247a978444505652d1af30c /clang/tools/c-index-test/c-index-test.c | |
parent | 577574ab886a2f3588d146e433008b80bd033413 (diff) | |
download | llvm-b6df6821944632a58c75772dcefc01f2082b04f8.zip llvm-b6df6821944632a58c75772dcefc01f2082b04f8.tar.gz llvm-b6df6821944632a58c75772dcefc01f2082b04f8.tar.bz2 |
[libclang] Introduce clang_Cursor_isDynamicCall which,
given a cursor pointing to a C++ method call or an ObjC message,
returns non-zero if the method/message is "dynamic", meaning:
For a C++ method: the call is virtual.
For an ObjC message: the receiver is an object instance, not 'super' or a
specific class.
rdar://11779185
llvm-svn: 159627
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 43229fd..79a3c57 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -1614,6 +1614,9 @@ static int inspect_cursor_at(int argc, const char **argv) { clang_disposeString(Spelling); if (clang_Cursor_getObjCSelectorIndex(Cursor) != -1) printf(" Selector index=%d",clang_Cursor_getObjCSelectorIndex(Cursor)); + if (clang_Cursor_isDynamicCall(Cursor)) + printf(" Dynamic-call"); + if (completionString != NULL) { printf("\nCompletion string: "); print_completion_string(completionString, stdout); |