Searched defs:PrevTok (Results 1 - 8 of 8) sorted by relevance

/external/clang/lib/Lex/
H A DTokenConcatenation.cpp146 /// AvoidConcat - If printing PrevTok immediately followed by Tok would cause
158 const Token &PrevTok,
164 SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation());
166 if (PrevSpellLoc.getLocWithOffset(PrevTok.getLength()) == SpellLoc)
169 tok::TokenKind PrevKind = PrevTok.getKind();
170 if (!PrevTok.isAnnotation() && PrevTok.getIdentifierInfo())
233 if (!PrevTok.hasUDSuffix())
254 return IsIdentifierStringPrefix(PrevTok);
157 AvoidConcat(const Token &PrevPrevTok, const Token &PrevTok, const Token &Tok) const argument
/external/clang/lib/Rewrite/
H A DHTMLRewrite.cpp538 Token PrevTok = Tok; local
558 ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok))
565 PrevPrevTok = PrevTok;
566 PrevTok = Tok;
/external/clang/lib/AST/
H A DCommentParser.cpp375 Token PrevTok = Tok; local
378 putBack(PrevTok);
/external/clang/lib/Parse/
H A DParseTemplate.cpp836 Token PrevTok = Tok; local
856 if (ObjCGenericList && PrevTok.getKind() == tok::greatergreater &&
857 RemainingToken == tok::greater && PP.IsPreviousCachedToken(PrevTok)) {
858 PrevTok.setKind(RemainingToken);
859 PrevTok.setLength(1);
863 PP.ReplacePreviousCachedToken({PrevTok, Tok});
865 PP.ReplacePreviousCachedToken({PrevTok});
H A DParseOpenMP.cpp1010 Token PrevTok = Tok; local
1028 Diag(PrevTok.getLocation(), diag::err_expected)
1030 << SourceRange(PrevTok.getLocation(), PrevTokLocation);
/external/clang/lib/Format/
H A DUnwrappedLineParser.cpp318 const FormatToken *PrevTok = getPreviousToken(); local
335 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok &&
336 PrevTok->is(tok::colon))
399 PrevTok = Tok;
/external/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp157 bool AvoidConcat(const Token &PrevPrevTok, const Token &PrevTok, argument
159 return ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok);
635 Token PrevPrevTok, PrevTok; local
637 PrevTok.startToken();
648 // If we haven't emitted a token on this line yet, PrevTok isn't
652 Callbacks->AvoidConcat(PrevPrevTok, PrevTok, Tok))) {
696 PrevPrevTok = PrevTok;
697 PrevTok = Tok;
/external/clang/include/clang/Parse/
H A DParser.h680 Token PrevTok; member in class:clang::Parser::TentativeParsingAction
687 PrevTok = P.Tok;
706 P.Tok = PrevTok;

Completed in 307 milliseconds