[ExtractAPI] Remove extra attributes in property declaration fragments
authorUsman Akinyemi <usmanakinyemi202@gmail.com>
Tue, 4 Apr 2023 16:58:03 +0000 (09:58 -0700)
committerZixu Wang <zixu_wang@apple.com>
Tue, 4 Apr 2023 17:00:34 +0000 (10:00 -0700)
commit32b53cf9d0c8c0e01ce5b0e7d5c717202a98cdf5
tree425c4b8d2e75a5ccadca44425f24c87302154857
parent787648989e8ac380b392bd1047ac309475fdcb90
[ExtractAPI] Remove extra attributes in property declaration fragments

Use `getPropertyAttributesAsWritten` instead of `getPropertyAttributes`
to get property attributes actually specified in the source code.
Resolves issue #61478.

https://reviews.llvm.org/D146759

Reviewed By: zixuw, dang

Differential Revision: https://reviews.llvm.org/D146759
clang/lib/ExtractAPI/DeclarationFragments.cpp
clang/test/ExtractAPI/objc_category.m
clang/test/ExtractAPI/objc_id_protocol.m
clang/test/ExtractAPI/objc_interface.m
clang/test/ExtractAPI/objc_property.m