Lines Matching refs:PPTok
28 static bool isSameToken(Token &RawTok, Token &PPTok) { in isSameToken() argument
31 if (PPTok.getKind() == RawTok.getKind() && in isSameToken()
32 PPTok.getIdentifierInfo() == RawTok.getIdentifierInfo()) in isSameToken()
38 if (PPTok.getIdentifierInfo() && in isSameToken()
39 PPTok.getIdentifierInfo() == RawTok.getIdentifierInfo()) in isSameToken()
105 Token PPTok; in RewriteMacrosInInput() local
106 PP.Lex(PPTok); in RewriteMacrosInInput()
114 while (RawTok.isNot(tok::eof) || PPTok.isNot(tok::eof)) { in RewriteMacrosInInput()
115 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
119 PP.Lex(PPTok); in RewriteMacrosInInput()
158 if (PPOffs == RawOffs && isSameToken(RawTok, PPTok)) { in RewriteMacrosInInput()
160 PP.Lex(PPTok); in RewriteMacrosInInput()
186 (PPOffs != RawOffs || !isSameToken(RawTok, PPTok))); in RewriteMacrosInInput()
198 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput()
199 PP.Lex(PPTok); in RewriteMacrosInInput()
200 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()