Index: clang/lib/ExtractAPI/DeclarationFragments.cpp =================================================================== --- clang/lib/ExtractAPI/DeclarationFragments.cpp +++ clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -624,7 +624,8 @@ const auto Attributes = Property->getPropertyAttributes(); // Build the attributes if there is any associated with the property. - if (Attributes != ObjCPropertyAttribute::kind_noattr) { + + if (Attributes == ObjCPropertyAttribute::kind_noattr) { //I changed the != to == as I guess we only want to generate the attribute only if it is the same as the one specified in the source // No leading comma for the first attribute. bool First = true; Fragments.append(" (", DeclarationFragments::FragmentKind::Text);