Lines Matching refs:TheTok
409 Token TheTok; in MeasureTokenLength() local
410 if (getRawToken(Loc, TheTok, SM, LangOpts)) in MeasureTokenLength()
412 return TheTok.getLength(); in MeasureTokenLength()
488 Token TheTok; in getBeginningOfFileToken() local
490 TheLexer.LexFromRawLexer(TheTok); in getBeginningOfFileToken()
496 if (TheLexer.getBufferLocation() - TheTok.getLength() <= StrData) in getBeginningOfFileToken()
497 return TheTok.getLocation(); in getBeginningOfFileToken()
503 } while (TheTok.getKind() != tok::eof); in getBeginningOfFileToken()
553 Token TheTok; in ComputePreamble() local
575 TheLexer.LexFromRawLexer(TheTok); in ComputePreamble()
579 if (TheTok.getKind() == tok::eof) { in ComputePreamble()
585 if (!TheTok.isAtStartOfLine()) in ComputePreamble()
594 if (TheTok.isAtStartOfLine()) { in ComputePreamble()
595 unsigned TokOffset = TheTok.getLocation().getRawEncoding() - StartOffset; in ComputePreamble()
604 if (TheTok.getKind() == tok::comment) { in ComputePreamble()
606 ActiveCommentLoc = TheTok.getLocation(); in ComputePreamble()
610 if (TheTok.isAtStartOfLine() && TheTok.getKind() == tok::hash) { in ComputePreamble()
612 Token HashTok = TheTok; in ComputePreamble()
619 TheLexer.LexFromRawLexer(TheTok); in ComputePreamble()
620 if (TheTok.getKind() == tok::raw_identifier && !TheTok.needsCleaning()) { in ComputePreamble()
621 StringRef Keyword = TheTok.getRawIdentifier(); in ComputePreamble()
675 TheTok = HashTok; in ComputePreamble()
690 End = TheTok.getLocation(); in ComputePreamble()
694 : TheTok.isAtStartOfLine()); in ComputePreamble()