Lines Matching refs:FormatTok
1404 for (FormatToken *FormatTok = Line->First; FormatTok;
1405 FormatTok = FormatTok->Next) {
1406 StringRef Input = FormatTok->TokenText;
1407 if (FormatTok->Finalized || !FormatTok->isStringLiteral() ||
1418 SourceLocation Start = FormatTok->Tok.getLocation();
1431 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1,
1624 for (FormatToken *FormatTok = Line->First; FormatTok;
1625 FormatTok = FormatTok->Next) {
1626 if (FormatTok->NewlinesBefore == 0)
1628 FormatToken *Matching = FormatTok->MatchingParen;
1629 if (!Matching || !FormatTok->getPreviousNonComment())
1631 if (!(FormatTok->is(tok::r_square) &&
1633 !(FormatTok->is(tok::r_brace) && Matching->is(TT_DictLiteral)))
1635 FormatToken *Prev = FormatTok->getPreviousNonComment();
1983 for (const FormatToken *FormatTok = Line->First; FormatTok;
1984 FormatTok = FormatTok->Next) {
1985 if ((FormatTok->Previous && FormatTok->Previous->is(tok::at) &&
1986 (FormatTok->Tok.getObjCKeywordID() != tok::objc_not_keyword ||
1987 FormatTok->isOneOf(tok::numeric_constant, tok::l_square,
1989 (FormatTok->Tok.isAnyIdentifier() &&
1992 FormatTok->TokenText)) ||
1993 FormatTok->is(TT_ObjCStringLiteral) ||
1994 FormatTok->isOneOf(Keywords.kw_NS_CLOSED_ENUM, Keywords.kw_NS_ENUM,
2001 << FormatTok->Tok.getLocation().printToString(
2003 << " token: " << FormatTok->TokenText << " token type: "
2004 << getTokenTypeName(FormatTok->getType()) << "\n");