Lines Matching refs:PrevSpec
1755 const char *PrevSpec; in ParseDeclGroup() local
1760 bool Fixit = !DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); in ParseDeclGroup()
2298 const char *PrevSpec; in ParseImplicitInt() local
2300 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt()
2428 const char *PrevSpec; in ParseImplicitInt() local
2430 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt()
2694 const char *PrevSpec = nullptr; in ParseDeclarationSpecifiers() local
2861 PrevSpec, DiagID, T, Policy); in ParseDeclarationSpecifiers()
2919 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
2938 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
2990 if (TryAltiVecToken(DS, Loc, PrevSpec, DiagID, isInvalid)) in ParseDeclarationSpecifiers()
3001 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3036 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3098 isInvalid = DS.setFunctionSpecForceInline(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3107 isInvalid = DS.SetTypeQual(DeclSpec::TQ_unaligned, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3151 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3158 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3163 Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3170 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3177 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3182 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3186 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3191 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto_type, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3196 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3201 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3206 PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3211 PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3215 Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3221 isInvalid = DS.setFunctionSpecInline(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3224 isInvalid = DS.setFunctionSpecVirtual(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3227 isInvalid = DS.setFunctionSpecExplicit(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3232 isInvalid = DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3245 isInvalid = DS.SetFriendSpec(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3247 PrevSpec = ""; // not actually used by the diagnostic in ParseDeclarationSpecifiers()
3255 isInvalid = DS.setModulePrivateSpec(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3260 isInvalid = DS.SetConstexprSpec(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3265 isInvalid = DS.SetConceptSpec(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
3270 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_short, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3275 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_long, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3278 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_longlong, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3282 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_longlong, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3286 isInvalid = DS.SetTypeSpecSign(DeclSpec::TSS_signed, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3290 isInvalid = DS.SetTypeSpecSign(DeclSpec::TSS_unsigned, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3294 isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_complex, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3298 isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_imaginary, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3302 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_void, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3306 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3310 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3314 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3318 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_half, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3322 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3326 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_double, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3330 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3334 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_wchar, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3338 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char16, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3342 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char32, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3350 PrevSpec = ""; // Not used by the diagnostic. in ParseDeclarationSpecifiers()
3356 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_bool, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3361 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal32, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3365 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal64, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3369 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3373 isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3376 isInvalid = DS.SetTypeAltiVecPixel(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3379 isInvalid = DS.SetTypeAltiVecBool(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3388 isInvalid = DS.SetTypePipe(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3392 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_##ImgType##_t, Loc, PrevSpec, \ in ParseDeclarationSpecifiers()
3398 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3433 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3437 isInvalid = DS.SetTypeQual(DeclSpec::TQ_volatile, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3441 isInvalid = DS.SetTypeQual(DeclSpec::TQ_restrict, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3493 isInvalid = DS.SetTypeQual(DeclSpec::TQ_atomic, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3503 PrevSpec = Tok.getIdentifierInfo()->getNameStart(); in ParseDeclarationSpecifiers()
3529 PrevSpec, DiagID, Type.get(), in ParseDeclarationSpecifiers()
3531 Diag(StartLoc, DiagID) << PrevSpec; in ParseDeclarationSpecifiers()
3544 assert(PrevSpec && "Method did not return previous specifier!"); in ParseDeclarationSpecifiers()
3549 << PrevSpec << FixItHint::CreateRemoval(Tok.getLocation()); in ParseDeclarationSpecifiers()
3555 Diag(Tok, DiagID) << VerSpec << PrevSpec << isStorageClass; in ParseDeclarationSpecifiers()
3557 Diag(Tok, DiagID) << PrevSpec; in ParseDeclarationSpecifiers()
4082 const char *PrevSpec = nullptr; in ParseEnumSpecifier() local
4100 PrevSpec, DiagID, TagDecl, Owned, in ParseEnumSpecifier()
4102 Diag(StartLoc, DiagID) << PrevSpec; in ParseEnumSpecifier()
4124 PrevSpec, DiagID, Type.get(), in ParseEnumSpecifier()
4126 Diag(StartLoc, DiagID) << PrevSpec; in ParseEnumSpecifier()
4148 PrevSpec, DiagID, TagDecl, Owned, in ParseEnumSpecifier()
4150 Diag(StartLoc, DiagID) << PrevSpec; in ParseEnumSpecifier()
4801 const char *PrevSpec = nullptr; in ParseTypeQualifierListOpt() local
4811 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const , Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4815 isInvalid = DS.SetTypeQual(DeclSpec::TQ_volatile, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4819 isInvalid = DS.SetTypeQual(DeclSpec::TQ_restrict, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4825 isInvalid = DS.SetTypeQual(DeclSpec::TQ_atomic, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4842 isInvalid = DS.SetTypeQual(DeclSpec::TQ_unaligned, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4913 assert(PrevSpec && "Method did not return previous specifier!"); in ParseTypeQualifierListOpt()
4914 Diag(Tok, DiagID) << PrevSpec; in ParseTypeQualifierListOpt()
6292 const char *PrevSpec = nullptr; in ParseTypeofSpecifier() local
6295 if (DS.SetTypeSpecType(DeclSpec::TST_typeofType, StartLoc, PrevSpec, in ParseTypeofSpecifier()
6298 Diag(StartLoc, DiagID) << PrevSpec; in ParseTypeofSpecifier()
6315 const char *PrevSpec = nullptr; in ParseTypeofSpecifier() local
6318 if (DS.SetTypeSpecType(DeclSpec::TST_typeofExpr, StartLoc, PrevSpec, in ParseTypeofSpecifier()
6321 Diag(StartLoc, DiagID) << PrevSpec; in ParseTypeofSpecifier()
6351 const char *PrevSpec = nullptr; in ParseAtomicSpecifier() local
6353 if (DS.SetTypeSpecType(DeclSpec::TST_atomic, StartLoc, PrevSpec, in ParseAtomicSpecifier()
6356 Diag(StartLoc, DiagID) << PrevSpec; in ParseAtomicSpecifier()
6393 const char *&PrevSpec, unsigned &DiagID, in TryAltiVecTokenOutOfLine() argument
6411 isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID, Policy); in TryAltiVecTokenOutOfLine()
6415 isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID,Policy); in TryAltiVecTokenOutOfLine()
6419 isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID,Policy); in TryAltiVecTokenOutOfLine()
6428 isInvalid = DS.SetTypeAltiVecPixel(true, Loc, PrevSpec, DiagID, Policy); in TryAltiVecTokenOutOfLine()
6432 isInvalid = DS.SetTypeAltiVecBool(true, Loc, PrevSpec, DiagID, Policy); in TryAltiVecTokenOutOfLine()