Lines Matching refs:PrevSpec
2339 const char *PrevSpec; in ParseDeclGroup() local
2344 bool Fixit = !DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); in ParseDeclGroup()
3056 const char *PrevSpec; in ParseImplicitInt() local
3058 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt()
3193 const char *PrevSpec; in ParseImplicitInt() local
3195 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt()
3604 const char *PrevSpec = nullptr; in ParseDeclarationSpecifiers() local
3634 isInvalid = DS.SetTypeSpecType(ImageTypeSpec, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
3842 PrevSpec, DiagID, T, Policy); in ParseDeclarationSpecifiers()
3917 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3935 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4024 if (TryAltiVecToken(DS, Loc, PrevSpec, DiagID, isInvalid)) in ParseDeclarationSpecifiers()
4036 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4090 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4143 isInvalid = DS.SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4176 isInvalid = DS.SetTypeSpecType(TST_decltype_auto, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4179 isInvalid = DS.SetTypeSpecType(TST_auto, AutoLoc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4217 isInvalid = DS.setFunctionSpecForceInline(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4226 isInvalid = DS.SetTypeQual(DeclSpec::TQ_unaligned, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4281 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4288 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4293 Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4300 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4307 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4312 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4316 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4321 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto_type, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4326 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4331 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4336 PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4350 Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4356 Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4362 isInvalid = DS.setFunctionSpecInline(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4371 PrevSpec = Tok.getIdentifierInfo()->getNameStart(); in ParseDeclarationSpecifiers()
4374 isInvalid = DS.setFunctionSpecVirtual(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4409 isInvalid = DS.setFunctionSpecExplicit(ExplicitLoc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4415 isInvalid = DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4421 isInvalid = DS.SetFriendSpec(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4426 PrevSpec = ""; // not actually used by the diagnostic in ParseDeclarationSpecifiers()
4434 isInvalid = DS.setModulePrivateSpec(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4442 PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4446 PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4450 PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4455 isInvalid = DS.SetTypeSpecWidth(TypeSpecifierWidth::Short, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4460 isInvalid = DS.SetTypeSpecWidth(TypeSpecifierWidth::Long, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4464 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4468 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4472 DS.SetTypeSpecSign(TypeSpecifierSign::Signed, Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4475 isInvalid = DS.SetTypeSpecSign(TypeSpecifierSign::Unsigned, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4481 isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_complex, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4487 isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_imaginary, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4491 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_void, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4495 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4499 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4508 isInvalid = DS.SetBitIntType(Loc, ER.get(), PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4513 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4517 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_half, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4521 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_BFloat16, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4525 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4529 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_double, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4533 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float16, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4540 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_accum, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4547 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_fract, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4554 isInvalid = DS.SetTypeSpecSat(Loc, PrevSpec, DiagID); in ParseDeclarationSpecifiers()
4557 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4561 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_ibm128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4565 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_wchar, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4569 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char8, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4573 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char16, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4577 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char32, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4591 PrevSpec = ""; // Not used by the diagnostic. in ParseDeclarationSpecifiers()
4597 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_bool, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4602 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal32, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4606 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal64, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4610 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
4614 isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4617 isInvalid = DS.SetTypeAltiVecPixel(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4620 isInvalid = DS.SetTypeAltiVecBool(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4632 PrevSpec = Tok.getIdentifierInfo()->getNameStart(); in ParseDeclarationSpecifiers()
4635 isInvalid = DS.SetTypePipe(true, Loc, PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4648 PrevSpec, DiagID, Policy); in ParseDeclarationSpecifiers()
4683 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4687 isInvalid = DS.SetTypeQual(DeclSpec::TQ_volatile, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4691 isInvalid = DS.SetTypeQual(DeclSpec::TQ_restrict, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4754 isInvalid = DS.SetTypeQual(DeclSpec::TQ_atomic, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4766 PrevSpec = Tok.getIdentifierInfo()->getNameStart(); in ParseDeclarationSpecifiers()
4808 PrevSpec, DiagID, Type.get(), in ParseDeclarationSpecifiers()
4810 Diag(StartLoc, DiagID) << PrevSpec; in ParseDeclarationSpecifiers()
4826 assert(PrevSpec && "Method did not return previous specifier!"); in ParseDeclarationSpecifiers()
4832 Diag(Loc, DiagID) << PrevSpec in ParseDeclarationSpecifiers()
4836 Diag(Loc, DiagID) << getLangOpts().getOpenCLVersionString() << PrevSpec in ParseDeclarationSpecifiers()
4839 Diag(Loc, DiagID) << PrevSpec; in ParseDeclarationSpecifiers()
5537 const char *PrevSpec = nullptr; in ParseEnumSpecifier() local
5558 PrevSpec, DiagID, TagDecl, Owned, in ParseEnumSpecifier()
5560 Diag(StartLoc, DiagID) << PrevSpec; in ParseEnumSpecifier()
5582 PrevSpec, DiagID, Type.get(), in ParseEnumSpecifier()
5584 Diag(StartLoc, DiagID) << PrevSpec; in ParseEnumSpecifier()
5613 PrevSpec, DiagID, TagDecl, Owned, in ParseEnumSpecifier()
5615 Diag(StartLoc, DiagID) << PrevSpec; in ParseEnumSpecifier()
6421 const char *PrevSpec = nullptr; in ParseTypeQualifierListOpt() local
6435 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const , Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
6439 isInvalid = DS.SetTypeQual(DeclSpec::TQ_volatile, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
6443 isInvalid = DS.SetTypeQual(DeclSpec::TQ_restrict, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
6450 isInvalid = DS.SetTypeQual(DeclSpec::TQ_atomic, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
6479 isInvalid = DS.SetTypeQual(DeclSpec::TQ_unaligned, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
6560 assert(PrevSpec && "Method did not return previous specifier!"); in ParseTypeQualifierListOpt()
6561 Diag(Tok, DiagID) << PrevSpec; in ParseTypeQualifierListOpt()
8351 const char *PrevSpec = nullptr; in ParseTypeofSpecifier() local
8356 StartLoc, PrevSpec, in ParseTypeofSpecifier()
8359 Diag(StartLoc, DiagID) << PrevSpec; in ParseTypeofSpecifier()
8376 const char *PrevSpec = nullptr; in ParseTypeofSpecifier() local
8381 StartLoc, PrevSpec, in ParseTypeofSpecifier()
8384 Diag(StartLoc, DiagID) << PrevSpec; in ParseTypeofSpecifier()
8414 const char *PrevSpec = nullptr; in ParseAtomicSpecifier() local
8416 if (DS.SetTypeSpecType(DeclSpec::TST_atomic, StartLoc, PrevSpec, in ParseAtomicSpecifier()
8419 Diag(StartLoc, DiagID) << PrevSpec; in ParseAtomicSpecifier()
8458 const char *&PrevSpec, unsigned &DiagID, in TryAltiVecTokenOutOfLine() argument
8477 isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID, Policy); in TryAltiVecTokenOutOfLine()
8481 isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID,Policy); in TryAltiVecTokenOutOfLine()
8487 DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID, Policy); in TryAltiVecTokenOutOfLine()
8496 isInvalid = DS.SetTypeAltiVecPixel(true, Loc, PrevSpec, DiagID, Policy); in TryAltiVecTokenOutOfLine()
8500 isInvalid = DS.SetTypeAltiVecBool(true, Loc, PrevSpec, DiagID, Policy); in TryAltiVecTokenOutOfLine()