Lines Matching refs:Tok

28   switch (Tok.getKind()) {
87 tok::TokenKind Kind = Tok.getKind();
137 if (Tok.is(tok::identifier)) {
138 const IdentifierInfo *FieldName = Tok.getIdentifierInfo();
146 assert(Tok.is(tok::colon) && "MayBeDesignationStart not working properly!");
165 while (Tok.is(tok::period) || Tok.is(tok::l_square)) {
166 if (Tok.is(tok::period)) {
170 if (Tok.isNot(tok::identifier)) {
171 Diag(Tok.getLocation(), diag::err_expected_field_designator);
175 Desig.AddDesignator(Designator::getField(Tok.getIdentifierInfo(), DotLoc,
176 Tok.getLocation()));
182 assert(Tok.is(tok::l_square) && "Unexpected token!");
215 if (Tok.is(tok::identifier) && Tok.getIdentifierInfo() == Ident_super &&
248 } else if (getLangOpts().ObjC1 && Tok.is(tok::identifier)) {
249 IdentifierInfo *II = Tok.getIdentifierInfo();
250 SourceLocation IILoc = Tok.getLocation();
306 if (getLangOpts().ObjC1 && Tok.isNot(tok::ellipsis) &&
307 Tok.isNot(tok::r_square)) {
308 CheckArrayDesignatorSyntax(*this, Tok.getLocation(), Desig);
316 if (Tok.isNot(tok::ellipsis)) {
320 Diag(Tok, diag::ext_gnu_array_range);
345 if (Tok.is(tok::equal)) {
358 Diag(Tok, diag::ext_gnu_missing_equal_designator)
359 << FixItHint::CreateInsertion(Tok.getLocation(), "= ");
360 return Actions.ActOnDesignatedInitializer(Desig, Tok.getLocation(),
364 Diag(Tok, diag::err_expected_equal_designator);
392 if (Tok.is(tok::r_brace)) {
404 if (getLangOpts().MicrosoftExt && (Tok.is(tok::kw___if_exists) ||
405 Tok.is(tok::kw___if_not_exists))) {
407 if (Tok.isNot(tok::comma)) break;
410 if (Tok.is(tok::r_brace)) break;
424 if (Tok.is(tok::ellipsis))
441 if (Tok.isNot(tok::comma)) {
448 if (Tok.isNot(tok::comma)) break;
454 if (Tok.is(tok::r_brace)) break;
478 Diag(Tok, diag::err_expected) << tok::l_brace;
507 if (Tok.is(tok::ellipsis))
516 if (Tok.is(tok::comma)) {
521 if (Tok.is(tok::r_brace))