diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-12 22:17:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-12 22:17:26 +0000 |
commit | 01e3c590aef562ced155d1768acc11ce59418f91 (patch) | |
tree | 2b846e758af6f33e646a674c9a89e417f925b8c4 /clang/test/Index/c-index-getCursor-test.m | |
parent | ac5a8836247dda04c2363ce51d3a35d458a33693 (diff) | |
download | bcm5719-llvm-01e3c590aef562ced155d1768acc11ce59418f91.tar.gz bcm5719-llvm-01e3c590aef562ced155d1768acc11ce59418f91.zip |
[libclang] For getDeclFromExpr in CIndex.cpp, associate the decl of
a DeclRefExpr, MemberExpr, etc. with a CastExpr if it is ImplicitCast,
since the implicit cast is the one that is invisible in source code.
llvm-svn: 139547
Diffstat (limited to 'clang/test/Index/c-index-getCursor-test.m')
-rw-r--r-- | clang/test/Index/c-index-getCursor-test.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/c-index-getCursor-test.m b/clang/test/Index/c-index-getCursor-test.m index 9b1fec7493e..f645d535a39 100644 --- a/clang/test/Index/c-index-getCursor-test.m +++ b/clang/test/Index/c-index-getCursor-test.m @@ -158,7 +158,7 @@ void f() { // CHECK: [52:7 - 52:8] CallExpr=main:44:5 // CHECK: [52:8 - 52:16] DeclRefExpr=someEnum:41:3 // CHECK: [52:16 - 52:18] CallExpr=main:44:5 -// CHECK: [52:18 - 52:33] UnexposedExpr=bee:45:8 +// CHECK: [52:18 - 52:33] UnexposedExpr= // CHECK: [52:33 - 52:36] DeclRefExpr=bee:45:8 // CHECK: [52:36 - 52:37] CallExpr=main:44:5 // CHECK: [52:37 - 53:2] UnexposedStmt= |