Lines Matching refs:RawTokens
48 static const Token &GetNextRawTok(const std::vector<Token> &RawTokens, in GetNextRawTok() argument
50 assert(CurTok < RawTokens.size() && "Overran eof!"); in GetNextRawTok()
53 if (!ReturnComment && RawTokens[CurTok].is(tok::comment)) in GetNextRawTok()
56 return RawTokens[CurTok++]; in GetNextRawTok()
63 std::vector<Token> &RawTokens) { in LexRawTokensFromMainFile() argument
84 RawTokens.push_back(RawTok); in LexRawTokensFromMainFile()
97 std::vector<Token> RawTokens; in RewriteMacrosInInput() local
98 LexRawTokensFromMainFile(PP, RawTokens); in RewriteMacrosInInput()
100 Token RawTok = GetNextRawTok(RawTokens, CurRawTok, false); in RewriteMacrosInInput()
130 if (RawTokens[CurRawTok].is(tok::identifier)) { in RewriteMacrosInInput()
131 const IdentifierInfo *II = RawTokens[CurRawTok].getIdentifierInfo(); in RewriteMacrosInInput()
136 RawTokens[CurRawTok+1].is(tok::identifier) && in RewriteMacrosInInput()
137 (RawTokens[CurRawTok+1].getIdentifierInfo()->getName() == in RewriteMacrosInInput()
146 RawTok = GetNextRawTok(RawTokens, CurRawTok, false); in RewriteMacrosInInput()
148 RawTok = GetNextRawTok(RawTokens, CurRawTok, false); in RewriteMacrosInInput()
159 RawTok = GetNextRawTok(RawTokens, CurRawTok, false); in RewriteMacrosInInput()
176 RawTok = GetNextRawTok(RawTokens, CurRawTok, true); in RewriteMacrosInInput()
181 RawTok = GetNextRawTok(RawTokens, CurRawTok, false); in RewriteMacrosInInput()