Lines Matching defs:FormatTok
2422 for (FormatToken *FormatTok = Line->First; FormatTok;
2423 FormatTok = FormatTok->Next) {
2424 StringRef Input = FormatTok->TokenText;
2425 if (FormatTok->Finalized || !FormatTok->isStringLiteral() ||
2437 SourceLocation Start = FormatTok->Tok.getLocation();
2450 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1,
2652 for (FormatToken *FormatTok = Line->First; FormatTok;
2653 FormatTok = FormatTok->Next) {
2654 if (FormatTok->NewlinesBefore == 0)
2656 FormatToken *Matching = FormatTok->MatchingParen;
2657 if (!Matching || !FormatTok->getPreviousNonComment())
2659 if (!(FormatTok->is(tok::r_square) &&
2661 !(FormatTok->is(tok::r_brace) && Matching->is(TT_DictLiteral))) {
2664 FormatToken *Prev = FormatTok->getPreviousNonComment();
3020 for (const FormatToken *FormatTok = Line->First; FormatTok;
3021 FormatTok = FormatTok->Next) {
3022 if ((FormatTok->Previous && FormatTok->Previous->is(tok::at) &&
3023 (FormatTok->Tok.getObjCKeywordID() != tok::objc_not_keyword ||
3024 FormatTok->isOneOf(tok::numeric_constant, tok::l_square,
3026 (FormatTok->Tok.isAnyIdentifier() &&
3029 FormatTok->TokenText)) ||
3030 FormatTok->is(TT_ObjCStringLiteral) ||
3031 FormatTok->isOneOf(Keywords.kw_NS_CLOSED_ENUM, Keywords.kw_NS_ENUM,
3039 << FormatTok->Tok.getLocation().printToString(
3041 << " token: " << FormatTok->TokenText << " token type: "
3042 << getTokenTypeName(FormatTok->getType()) << "\n");