diff options
author | Daniel Grumberg <dgrumberg@apple.com> | 2023-11-28 12:55:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 12:55:27 +0000 |
commit | 6b89fab8978f2b075cecc98b3d37769b24019034 (patch) | |
tree | 5905c86c6b20864ae32daaf963d9a0439bdb7064 /clang/test/ExtractAPI/objc_id_protocol.m | |
parent | 205f53010d0da11a9c4ab7a4655edb4a2ded1b02 (diff) | |
download | llvm-6b89fab8978f2b075cecc98b3d37769b24019034.zip llvm-6b89fab8978f2b075cecc98b3d37769b24019034.tar.gz llvm-6b89fab8978f2b075cecc98b3d37769b24019034.tar.bz2 |
[clang][ExtractAPI] Add support for blocks in declaration fragments (#73369)
Ensure that block types get represented correctly in declaration
fragments, as block parameter names are important for documentation
clients we need a separate system from getFragmentsForType in order to
have access to full ParmVarDecls for the parameters.
rdar://118257401
Diffstat (limited to 'clang/test/ExtractAPI/objc_id_protocol.m')
-rw-r--r-- | clang/test/ExtractAPI/objc_id_protocol.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/ExtractAPI/objc_id_protocol.m b/clang/test/ExtractAPI/objc_id_protocol.m index 4014541..0b0f1b3 100644 --- a/clang/test/ExtractAPI/objc_id_protocol.m +++ b/clang/test/ExtractAPI/objc_id_protocol.m @@ -150,6 +150,10 @@ { "kind": "identifier", "spelling": "obj1" + }, + { + "kind": "text", + "spelling": ";" } ], "identifier": { @@ -218,6 +222,10 @@ { "kind": "identifier", "spelling": "obj2" + }, + { + "kind": "text", + "spelling": ";" } ], "identifier": { |