Lines Matching defs:DS
825 ParsingDeclSpec DS(*this);
826 ParseStructDeclaration(DS, ObjCPropertyCallback);
854 ObjCDeclSpec &DS,
857 if (DS.getNullability() == nullability) {
860 << SourceRange(DS.getNullabilityLoc());
866 << DiagNullabilityKind(DS.getNullability(), true)
867 << SourceRange(DS.getNullabilityLoc());
896 void Parser::ParseObjCPropertyAttribute(ObjCDeclSpec &DS) {
904 Actions.CodeCompletion().CodeCompleteObjCPropertyFlags(getCurScope(), DS);
918 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_readonly);
920 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_assign);
922 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained);
924 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_readwrite);
926 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_retain);
928 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_strong);
930 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_copy);
932 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nonatomic);
934 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_atomic);
936 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_weak);
971 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_setter);
972 DS.setSetterName(SelIdent, SelLoc);
980 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_getter);
981 DS.setGetterName(SelIdent, SelLoc);
984 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
985 diagnoseRedundantPropertyNullability(*this, DS,
988 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
989 DS.setNullability(Tok.getLocation(), NullabilityKind::NonNull);
991 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
992 diagnoseRedundantPropertyNullability(*this, DS,
995 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
996 DS.setNullability(Tok.getLocation(), NullabilityKind::Nullable);
998 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
999 diagnoseRedundantPropertyNullability(*this, DS,
1002 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
1003 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified);
1005 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
1006 diagnoseRedundantPropertyNullability(*this, DS,
1009 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
1010 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified);
1013 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_null_resettable);
1015 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_class);
1017 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_direct);
1199 void Parser::ParseObjCTypeQualifierList(ObjCDeclSpec &DS,
1208 getCurScope(), DS, Context == DeclaratorContext::ObjCParameter);
1250 DS.setObjCDeclQualifier(Qual);
1252 DS.setNullability(Tok.getLocation(), Nullability);
1299 ParsedType Parser::ParseObjCTypeName(ObjCDeclSpec &DS,
1315 ParseObjCTypeQualifierList(DS, context);
1322 declSpec.setObjCQualifiers(&DS);
1334 if (DS.getObjCDeclQualifier() & ObjCDeclSpec::DQ_CSNullability)
1336 DS.getNullability(),
1337 DS.getNullabilityLoc(),
1542 DeclSpec DS(AttrFactory);
1544 ParseDeclarationSpecifiers(DS, TemplateInfo);
1546 Declarator ParmDecl(DS, ParsedAttributesView::none(),
1739 DeclSpec DS(AttrFactory);
1742 DS.SetTypeSpecType(TST_typename, identifierLocs[i], prevSpec, diagID,
1746 Declarator D(DS, ParsedAttributesView::none(),
2032 ParsingDeclSpec DS(*this);
2033 ParseStructDeclaration(DS, ObjCIvarCallback);
2606 DeclSpec DS(AttrFactory);
2608 ParseDeclarationSpecifiers(DS, TemplateInfo);
2609 Declarator ParmDecl(DS, ParsedAttributesView::none(),
2992 DeclSpec DS(AttrFactory);
2993 ParseCXXSimpleTypeSpecifier(DS);
3008 ExprResult Receiver = ParseCXXTypeConstructExpression(DS);
3024 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),