aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cpplocators
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-07-16 16:35:03 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-07-24 11:38:54 +0200
commit3a242495fe28811c535fab909db5aa42dc68873b (patch)
tree8612d3bb40e3b1a43c6198cf0d880d26f88b5b72 /tests/cpplocators
parentb8adc786157b81b0400cf701d02694a380d3e780 (diff)
ObjC++: also index ObjC symbols.
@classes, @protocols, @properties and -methods (and +methods) will now show up in the locator. Change-Id: I33f904c456c321fc80b8aba7ff52d5f1207c58be Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'tests/cpplocators')
-rw-r--r--tests/cpplocators/testdata_basic/file1.mm23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/cpplocators/testdata_basic/file1.mm b/tests/cpplocators/testdata_basic/file1.mm
new file mode 100644
index 0000000000..841a31051c
--- /dev/null
+++ b/tests/cpplocators/testdata_basic/file1.mm
@@ -0,0 +1,23 @@
+// Copyright header to keep the Qt Insanity Bot happy.
+
+@protocol NSObject
+@end
+
+@interface NSObject<NSObject>
+@end
+
+@protocol MyProtocol <NSObject>
+- (void) someMethod;
+@end
+
+@interface MyClass: NSObject <MyProtocol>
+@end
+
+@implementation MyClass
+- (void) someMethod {}
+@end
+
+@implementation MyClass(MyCategory)
+- (void) anotherMethod;{}
+- (void) anotherMethod:(NSObject*)withAnObject{}
+@end