summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/Core/index-source.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-02-29 07:55:55 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-02-29 07:55:55 +0000
commitc97c7c88c0d19cb892e8b166004d339aa1ecc93b (patch)
treeaa59d9a58bde65f6603f0de22360c95c82623b5d /clang/test/Index/Core/index-source.m
parentd97ec18fe449a9d36d831bc3f61c747667101f36 (diff)
downloadbcm5719-llvm-c97c7c88c0d19cb892e8b166004d339aa1ecc93b.tar.gz
bcm5719-llvm-c97c7c88c0d19cb892e8b166004d339aa1ecc93b.zip
[AST/RecursiveASTVisitor] Correction so that dataTraverseStmtPost will get called after the statement has been visited.
Fixes the indexing client of this. llvm-svn: 262206
Diffstat (limited to 'clang/test/Index/Core/index-source.m')
-rw-r--r--clang/test/Index/Core/index-source.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Index/Core/index-source.m b/clang/test/Index/Core/index-source.m
index 6bff76ed27c..3307ec54393 100644
--- a/clang/test/Index/Core/index-source.m
+++ b/clang/test/Index/Core/index-source.m
@@ -6,3 +6,13 @@
// CHECK: [[@LINE-1]]:1 | objc-instance-method/ObjC | meth | c:objc(cs)Base(im)meth | -[Base meth] | Decl,Dyn,RelChild | rel: 1
// CHECK-NEXT: RelChild | Base | c:objc(cs)Base
@end
+
+void foo();
+// CHECK: [[@LINE+1]]:6 | function/C | goo | c:@F@goo | _goo | Def | rel: 0
+void goo(Base *b) {
+ // CHECK: [[@LINE+1]]:3 | function/C | foo | c:@F@foo | _foo | Ref,Call | rel: 0
+ foo();
+ // CHECK: [[@LINE+2]]:6 | objc-instance-method/ObjC | meth | c:objc(cs)Base(im)meth | -[Base meth] | Ref,Call,Dyn,RelRec | rel: 1
+ // CHECK-NEXT: RelRec | Base | c:objc(cs)Base
+ [b meth];
+}
OpenPOWER on IntegriCloud