Lines Matching refs:PPTok
27 static bool isSameToken(Token &RawTok, Token &PPTok) { in isSameToken() argument
30 if (PPTok.getKind() == RawTok.getKind() && in isSameToken()
31 PPTok.getIdentifierInfo() == RawTok.getIdentifierInfo()) in isSameToken()
37 if (PPTok.getIdentifierInfo() && in isSameToken()
38 PPTok.getIdentifierInfo() == RawTok.getIdentifierInfo()) in isSameToken()
104 Token PPTok; in RewriteMacrosInInput() local
105 PP.Lex(PPTok); in RewriteMacrosInInput()
113 while (RawTok.isNot(tok::eof) || PPTok.isNot(tok::eof)) { in RewriteMacrosInInput()
114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
118 PP.Lex(PPTok); in RewriteMacrosInInput()
157 if (PPOffs == RawOffs && isSameToken(RawTok, PPTok)) { in RewriteMacrosInInput()
159 PP.Lex(PPTok); in RewriteMacrosInInput()
185 (PPOffs != RawOffs || !isSameToken(RawTok, PPTok))); in RewriteMacrosInInput()
197 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput()
198 PP.Lex(PPTok); in RewriteMacrosInInput()
199 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()