Index: clang/lib/ExtractAPI/DeclarationFragments.cpp =================================================================== --- clang/lib/ExtractAPI/DeclarationFragments.cpp +++ clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -638,7 +638,7 @@ // Build the Objective-C property keyword. Fragments.append("@property", DeclarationFragments::FragmentKind::Keyword); - const auto Attributes = Property->getPropertyAttributes(); + const auto Attributes = Property->getPropertyAttributesAsWritten(); // Build the attributes if there is any associated with the property. if (Attributes != ObjCPropertyAttribute::kind_noattr) { // No leading comma for the first attribute. Index: clang/test/ExtractAPI/objc_category.m =================================================================== --- clang/test/ExtractAPI/objc_category.m +++ clang/test/ExtractAPI/objc_category.m @@ -38,16 +38,11 @@ "module": { "name": "", "platform": { - "architecture": "arm64", + "architecture": "x86_64", "operatingSystem": { - "minimumVersion": { - "major": 11, - "minor": 0, - "patch": 0 - }, - "name": "macosx" + "name": "linux" }, - "vendor": "apple" + "vendor": "unknown" } }, "relationships": [ @@ -282,39 +277,7 @@ }, { "kind": "text", - "spelling": " (" - }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "assign" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "unsafe_unretained" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "readwrite" - }, - { - "kind": "text", - "spelling": ") " + "spelling": " " }, { "kind": "typeIdentifier", Index: clang/test/ExtractAPI/objc_interface.m =================================================================== --- clang/test/ExtractAPI/objc_interface.m +++ clang/test/ExtractAPI/objc_interface.m @@ -41,16 +41,11 @@ "module": { "name": "", "platform": { - "architecture": "arm64", + "architecture": "x86_64", "operatingSystem": { - "minimumVersion": { - "major": 11, - "minor": 0, - "patch": 0 - }, - "name": "macosx" + "name": "linux" }, - "vendor": "apple" + "vendor": "unknown" } }, "relationships": [ @@ -432,14 +427,6 @@ "kind": "text", "spelling": " (" }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, { "kind": "keyword", "spelling": "readonly" Index: clang/test/ExtractAPI/objc_property.m =================================================================== --- clang/test/ExtractAPI/objc_property.m +++ clang/test/ExtractAPI/objc_property.m @@ -39,16 +39,11 @@ "module": { "name": "", "platform": { - "architecture": "arm64", + "architecture": "x86_64", "operatingSystem": { - "minimumVersion": { - "major": 11, - "minor": 0, - "patch": 0 - }, - "name": "macosx" + "name": "linux" }, - "vendor": "apple" + "vendor": "unknown" } }, "relationships": [ @@ -161,38 +156,6 @@ "kind": "keyword", "spelling": "class" }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "assign" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "unsafe_unretained" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "readwrite" - }, { "kind": "text", "spelling": ") " @@ -255,39 +218,7 @@ }, { "kind": "text", - "spelling": " (" - }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "assign" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "unsafe_unretained" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "readwrite" - }, - { - "kind": "text", - "spelling": ") " + "spelling": " " }, { "kind": "typeIdentifier", @@ -353,38 +284,6 @@ "kind": "keyword", "spelling": "class" }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "assign" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "unsafe_unretained" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "readwrite" - }, { "kind": "text", "spelling": ") " @@ -447,39 +346,7 @@ }, { "kind": "text", - "spelling": " (" - }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "assign" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "unsafe_unretained" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "readwrite" - }, - { - "kind": "text", - "spelling": ") " + "spelling": " " }, { "kind": "typeIdentifier", @@ -595,38 +462,6 @@ "kind": "keyword", "spelling": "class" }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "assign" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "unsafe_unretained" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "readwrite" - }, { "kind": "text", "spelling": ") " @@ -689,39 +524,7 @@ }, { "kind": "text", - "spelling": " (" - }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "assign" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "unsafe_unretained" - }, - { - "kind": "text", - "spelling": ", " - }, - { - "kind": "keyword", - "spelling": "readwrite" - }, - { - "kind": "text", - "spelling": ") " + "spelling": " " }, { "kind": "typeIdentifier", @@ -774,3 +577,5 @@ } ] } + +