diff --git a/clang/lib/ExtractAPI/DeclarationFragments.cpp b/clang/lib/ExtractAPI/DeclarationFragments.cpp --- a/clang/lib/ExtractAPI/DeclarationFragments.cpp +++ b/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. diff --git a/clang/test/ExtractAPI/objc_category.m b/clang/test/ExtractAPI/objc_category.m --- a/clang/test/ExtractAPI/objc_category.m +++ b/clang/test/ExtractAPI/objc_category.m @@ -282,39 +282,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", diff --git a/clang/test/ExtractAPI/objc_id_protocol.m b/clang/test/ExtractAPI/objc_id_protocol.m --- a/clang/test/ExtractAPI/objc_id_protocol.m +++ b/clang/test/ExtractAPI/objc_id_protocol.m @@ -122,14 +122,6 @@ "kind": "text", "spelling": " (" }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, { "kind": "keyword", "spelling": "copy" @@ -206,30 +198,6 @@ "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" diff --git a/clang/test/ExtractAPI/objc_interface.m b/clang/test/ExtractAPI/objc_interface.m --- a/clang/test/ExtractAPI/objc_interface.m +++ b/clang/test/ExtractAPI/objc_interface.m @@ -432,14 +432,6 @@ "kind": "text", "spelling": " (" }, - { - "kind": "keyword", - "spelling": "atomic" - }, - { - "kind": "text", - "spelling": ", " - }, { "kind": "keyword", "spelling": "readonly" diff --git a/clang/test/ExtractAPI/objc_property.m b/clang/test/ExtractAPI/objc_property.m --- a/clang/test/ExtractAPI/objc_property.m +++ b/clang/test/ExtractAPI/objc_property.m @@ -161,38 +161,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 +223,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 +289,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 +351,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 +467,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 +529,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",