Lines Matching defs:DS
826 ParsingDeclSpec DS(*this);
827 ParseStructDeclaration(DS, ObjCPropertyCallback);
855 ObjCDeclSpec &DS,
858 if (DS.getNullability() == nullability) {
861 << SourceRange(DS.getNullabilityLoc());
867 << DiagNullabilityKind(DS.getNullability(), true)
868 << SourceRange(DS.getNullabilityLoc());
897 void Parser::ParseObjCPropertyAttribute(ObjCDeclSpec &DS) {
905 Actions.CodeCompletion().CodeCompleteObjCPropertyFlags(getCurScope(), DS);
919 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_readonly);
921 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_assign);
923 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained);
925 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_readwrite);
927 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_retain);
929 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_strong);
931 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_copy);
933 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nonatomic);
935 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_atomic);
937 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_weak);
972 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_setter);
973 DS.setSetterName(SelIdent, SelLoc);
981 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_getter);
982 DS.setGetterName(SelIdent, SelLoc);
985 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
986 diagnoseRedundantPropertyNullability(*this, DS,
989 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
990 DS.setNullability(Tok.getLocation(), NullabilityKind::NonNull);
992 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
993 diagnoseRedundantPropertyNullability(*this, DS,
996 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
997 DS.setNullability(Tok.getLocation(), NullabilityKind::Nullable);
999 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
1000 diagnoseRedundantPropertyNullability(*this, DS,
1003 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
1004 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified);
1006 if (DS.getPropertyAttributes() & ObjCPropertyAttribute::kind_nullability)
1007 diagnoseRedundantPropertyNullability(*this, DS,
1010 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
1011 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified);
1014 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_null_resettable);
1016 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_class);
1018 DS.setPropertyAttributes(ObjCPropertyAttribute::kind_direct);
1200 void Parser::ParseObjCTypeQualifierList(ObjCDeclSpec &DS,
1209 getCurScope(), DS, Context == DeclaratorContext::ObjCParameter);
1251 DS.setObjCDeclQualifier(Qual);
1253 DS.setNullability(Tok.getLocation(), Nullability);
1300 ParsedType Parser::ParseObjCTypeName(ObjCDeclSpec &DS,
1316 ParseObjCTypeQualifierList(DS, context);
1323 declSpec.setObjCQualifiers(&DS);
1335 if (DS.getObjCDeclQualifier() & ObjCDeclSpec::DQ_CSNullability)
1337 DS.getNullability(),
1338 DS.getNullabilityLoc(),
1543 DeclSpec DS(AttrFactory);
1545 ParseDeclarationSpecifiers(DS, TemplateInfo);
1547 Declarator ParmDecl(DS, ParsedAttributesView::none(),
1751 DeclSpec DS(AttrFactory);
1754 DS.SetTypeSpecType(TST_typename, identifierLocs[i], prevSpec, diagID,
1758 Declarator D(DS, ParsedAttributesView::none(),
2044 ParsingDeclSpec DS(*this);
2045 ParseStructDeclaration(DS, ObjCIvarCallback);
2618 DeclSpec DS(AttrFactory);
2620 ParseDeclarationSpecifiers(DS, TemplateInfo);
2621 Declarator ParmDecl(DS, ParsedAttributesView::none(),
3004 DeclSpec DS(AttrFactory);
3005 ParseCXXSimpleTypeSpecifier(DS);
3020 ExprResult Receiver = ParseCXXTypeConstructExpression(DS);
3036 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),