Home
last modified time | relevance | path

Searched refs:PrevTok (Results 1 – 9 of 9) sorted by relevance

/external/clang/lib/Lex/
DTokenConcatenation.cpp158 const Token &PrevTok, in AvoidConcat() argument
164 SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation()); in AvoidConcat()
166 if (PrevSpellLoc.getLocWithOffset(PrevTok.getLength()) == SpellLoc) in AvoidConcat()
169 tok::TokenKind PrevKind = PrevTok.getKind(); in AvoidConcat()
170 if (!PrevTok.isAnnotation() && PrevTok.getIdentifierInfo()) in AvoidConcat()
233 if (!PrevTok.hasUDSuffix()) in AvoidConcat()
254 return IsIdentifierStringPrefix(PrevTok); in AvoidConcat()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp157 bool AvoidConcat(const Token &PrevPrevTok, const Token &PrevTok, in AvoidConcat() argument
159 return ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok); in AvoidConcat()
635 Token PrevPrevTok, PrevTok; in PrintPreprocessedTokens() local
637 PrevTok.startToken(); in PrintPreprocessedTokens()
652 Callbacks->AvoidConcat(PrevPrevTok, PrevTok, Tok))) { in PrintPreprocessedTokens()
696 PrevPrevTok = PrevTok; in PrintPreprocessedTokens()
697 PrevTok = Tok; in PrintPreprocessedTokens()
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp538 Token PrevTok = Tok; in HighlightMacros() local
558 ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok)) in HighlightMacros()
565 PrevPrevTok = PrevTok; in HighlightMacros()
566 PrevTok = Tok; in HighlightMacros()
/external/clang/lib/Parse/
DParseTemplate.cpp836 Token PrevTok = Tok; in ParseGreaterThanInTemplateList() local
856 if (ObjCGenericList && PrevTok.getKind() == tok::greatergreater && in ParseGreaterThanInTemplateList()
857 RemainingToken == tok::greater && PP.IsPreviousCachedToken(PrevTok)) { in ParseGreaterThanInTemplateList()
858 PrevTok.setKind(RemainingToken); in ParseGreaterThanInTemplateList()
859 PrevTok.setLength(1); in ParseGreaterThanInTemplateList()
863 PP.ReplacePreviousCachedToken({PrevTok, Tok}); in ParseGreaterThanInTemplateList()
865 PP.ReplacePreviousCachedToken({PrevTok}); in ParseGreaterThanInTemplateList()
DParseOpenMP.cpp1010 Token PrevTok = Tok; in ParseOpenMPSimpleVarList() local
1028 Diag(PrevTok.getLocation(), diag::err_expected) in ParseOpenMPSimpleVarList()
1030 << SourceRange(PrevTok.getLocation(), PrevTokLocation); in ParseOpenMPSimpleVarList()
/external/clang/include/clang/Lex/
DTokenConcatenation.h62 const Token &PrevTok,
/external/clang/lib/AST/
DCommentParser.cpp375 Token PrevTok = Tok; in parseBlockCommand() local
378 putBack(PrevTok); in parseBlockCommand()
/external/clang/lib/Format/
DUnwrappedLineParser.cpp318 const FormatToken *PrevTok = getPreviousToken(); in calculateBraceTypes() local
335 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok && in calculateBraceTypes()
336 PrevTok->is(tok::colon)) in calculateBraceTypes()
399 PrevTok = Tok; in calculateBraceTypes()
/external/clang/include/clang/Parse/
DParser.h680 Token PrevTok; variable
687 PrevTok = P.Tok; in TentativeParsingAction()
706 P.Tok = PrevTok; in Revert()