aboutsummaryrefslogtreecommitdiff
path: root/clang/test/ExtractAPI/objc_interface.m
diff options
context:
space:
mode:
authorZixu Wang <zixu_wang@apple.com>2022-04-06 14:53:52 -0700
committerZixu Wang <zixu_wang@apple.com>2022-04-07 10:22:41 -0700
commit4048aad85a843d2b15cb8e60b2ea37f148b7b770 (patch)
tree1c856898f2697d30e5ac068c6b8ccfb5ae69ada6 /clang/test/ExtractAPI/objc_interface.m
parent17fdaccccfad9b143e4aadbcdda7f645de127153 (diff)
downloadllvm-4048aad85a843d2b15cb8e60b2ea37f148b7b770.zip
llvm-4048aad85a843d2b15cb8e60b2ea37f148b7b770.tar.gz
llvm-4048aad85a843d2b15cb8e60b2ea37f148b7b770.tar.bz2
[clang][ExtractAPI] Fix declaration fragments for ObjC methods
Objective-C methods selector parts should be considered as identifiers. Depends on D123259 Differential Revision: https://reviews.llvm.org/D123261
Diffstat (limited to 'clang/test/ExtractAPI/objc_interface.m')
-rw-r--r--clang/test/ExtractAPI/objc_interface.m14
1 files changed, 9 insertions, 5 deletions
diff --git a/clang/test/ExtractAPI/objc_interface.m b/clang/test/ExtractAPI/objc_interface.m
index a74a53c..5ca6404 100644
--- a/clang/test/ExtractAPI/objc_interface.m
+++ b/clang/test/ExtractAPI/objc_interface.m
@@ -146,11 +146,7 @@
},
{
"kind": "identifier",
- "spelling": "getWithProperty"
- },
- {
- "kind": "text",
- "spelling": ":"
+ "spelling": "getWithProperty:"
},
{
"kind": "text",
@@ -168,6 +164,10 @@
{
"kind": "internalParam",
"spelling": "Property"
+ },
+ {
+ "kind": "text",
+ "spelling": ";"
}
],
"identifier": {
@@ -403,6 +403,10 @@
{
"kind": "identifier",
"spelling": "getIvar"
+ },
+ {
+ "kind": "text",
+ "spelling": ";"
}
],
"identifier": {