Lines Matching defs:FormatTok
2355 for (FormatToken *FormatTok = Line->First; FormatTok;
2356 FormatTok = FormatTok->Next) {
2357 StringRef Input = FormatTok->TokenText;
2358 if (FormatTok->Finalized || !FormatTok->isStringLiteral() ||
2370 SourceLocation Start = FormatTok->Tok.getLocation();
2383 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1,
2585 for (FormatToken *FormatTok = Line->First; FormatTok;
2586 FormatTok = FormatTok->Next) {
2587 if (FormatTok->NewlinesBefore == 0)
2589 FormatToken *Matching = FormatTok->MatchingParen;
2590 if (!Matching || !FormatTok->getPreviousNonComment())
2592 if (!(FormatTok->is(tok::r_square) &&
2594 !(FormatTok->is(tok::r_brace) && Matching->is(TT_DictLiteral))) {
2597 FormatToken *Prev = FormatTok->getPreviousNonComment();
2953 for (const FormatToken *FormatTok = Line->First; FormatTok;
2954 FormatTok = FormatTok->Next) {
2955 if ((FormatTok->Previous && FormatTok->Previous->is(tok::at) &&
2956 (FormatTok->Tok.getObjCKeywordID() != tok::objc_not_keyword ||
2957 FormatTok->isOneOf(tok::numeric_constant, tok::l_square,
2959 (FormatTok->Tok.isAnyIdentifier() &&
2962 FormatTok->TokenText)) ||
2963 FormatTok->is(TT_ObjCStringLiteral) ||
2964 FormatTok->isOneOf(Keywords.kw_NS_CLOSED_ENUM, Keywords.kw_NS_ENUM,
2972 << FormatTok->Tok.getLocation().printToString(
2974 << " token: " << FormatTok->TokenText << " token type: "
2975 << getTokenTypeName(FormatTok->getType()) << "\n");