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 | c2954616fbd11f5a6117236f58420029b773a639 (patch) | |
tree | 7ed43057b8e0cb9254c19579c7f781c0f198cbb3 /test/Index/blocks.c | |
parent | 544055fa4663298bd2361e9cdfc684934d81e42f (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/blocks.c')
-rw-r--r-- | test/Index/blocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Index/blocks.c b/test/Index/blocks.c index a68cfebf49..6c97802723 100644 --- a/test/Index/blocks.c +++ b/test/Index/blocks.c @@ -24,7 +24,7 @@ void test() { // CHECK: blocks.c:9:28: UnexposedStmt= Extent=[9:28 - 9:58] // CHECK: blocks.c:9:30: UnexposedStmt= Extent=[9:30 - 9:55] // CHECK: blocks.c:9:37: UnexposedExpr= Extent=[9:37 - 9:55] -// CHECK: blocks.c:9:37: UnexposedExpr=x:4:19 Extent=[9:37 - 9:51] +// CHECK: blocks.c:9:37: UnexposedExpr= Extent=[9:37 - 9:51] // CHECK: blocks.c:9:38: TypeRef=int_t:3:13 Extent=[9:38 - 9:43] // CHECK: blocks.c:9:50: MemberRefExpr=x:4:19 SingleRefName=[9:50 - 9:51] RefName=[9:50 - 9:51] Extent=[9:45 - 9:51] // CHECK: blocks.c:9:45: DeclRefExpr=foo:9:23 Extent=[9:45 - 9:48] |