summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/Core/index-source.mm
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-04 07:17:43 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-04 07:17:43 +0000
commit9c9986738633640d9ac1e38d6c54948a9245c3c1 (patch)
tree42bcacb8e66e69bedf1f7da0ab2003cdbdeaa635 /clang/test/Index/Core/index-source.mm
parent4415bdbdc3afdb3c0a70afbfb7f74d39486b4a98 (diff)
downloadbcm5719-llvm-9c9986738633640d9ac1e38d6c54948a9245c3c1.tar.gz
bcm5719-llvm-9c9986738633640d9ac1e38d6c54948a9245c3c1.zip
[index] In ObjC++ handle objc type parameters for function USRs.
llvm-svn: 262693
Diffstat (limited to 'clang/test/Index/Core/index-source.mm')
-rw-r--r--clang/test/Index/Core/index-source.mm11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Index/Core/index-source.mm b/clang/test/Index/Core/index-source.mm
new file mode 100644
index 00000000000..049a0bdaf64
--- /dev/null
+++ b/clang/test/Index/Core/index-source.mm
@@ -0,0 +1,11 @@
+// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
+
+@interface MyCls
+@end
+
+@protocol P1,P2;
+
+// CHECK: [[@LINE+1]]:6 | function/C | foo | c:@F@foo#*$objc(cs)MyCls# | __Z3fooP5MyCls | Decl | rel: 0
+void foo(MyCls *o);
+// CHECK: [[@LINE+1]]:6 | function/C | foo | c:@F@foo#*Qoobjc(pl)P1objc(pl)P2# | __Z3fooPU15objcproto2P12P211objc_object | Decl | rel: 0
+void foo(id<P2, P1> o);
OpenPOWER on IntegriCloud