Home | History | Annotate | Download | only in Rewrite

Lines Matching refs:Tok

83                         const DirectoryLookup *Lookup, Token &Tok,
303 } while (!DirectiveToken.is(tok::eod) && DirectiveToken.isNot(tok::eof));
320 if (RawToken.is(tok::raw_identifier))
322 if (RawToken.is(tok::identifier))
330 FileID FileId, Lexer &RawLex, const DirectoryLookup *Lookup, Token &Tok,
333 RawLex.LexFromRawLexer(Tok);
334 if (Tok.isNot(tok::l_paren))
337 RawLex.LexFromRawLexer(Tok);
344 if (Tok.is(tok::less)) {
345 RawLex.LexFromRawLexer(Tok);
349 if (Tok.is(tok::eod)) // Sanity check.
352 if (Tok.is(tok::raw_identifier))
353 PP.LookUpIdentifierInfo(Tok);
358 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid);
364 RawLex.LexFromRawLexer(Tok);
365 } while (Tok.isNot(tok::greater));
370 if (Tok.isNot(tok::string_literal))
374 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid);
380 RawLex.LexFromRawLexer(Tok);
381 if (Tok.isNot(tok::r_paren))
386 bool isAngled = PP.GetIncludeFilenameSpelling(Tok.getLocation(), Filename);
435 while (RawToken.isNot(tok::eof)) {
436 if (RawToken.is(tok::hash) && RawToken.isAtStartOfLine()) {
440 if (RawToken.is(tok::raw_identifier))
444 case tok::pp_include:
445 case tok::pp_include_next:
446 case tok::pp_import: {
470 case tok::pp_pragma: {
489 case tok::pp_if:
490 case tok::pp_elif: {
492 tok::pp_elif);
497 if (RawToken.is(tok::raw_identifier))
500 if (RawToken.is(tok::identifier)) {
533 } while (RawToken.isNot(tok::eod));
543 case tok::pp_endif:
544 case tok::pp_else: {
553 } while (RawToken.isNot(tok::eod) && RawToken.isNot(tok::eof));
589 Token Tok;
597 PP.Lex(Tok);
598 } while (Tok.isNot(tok::eof));