• Home
  • Raw
  • Download

Lines Matching refs:Lexer

63 void Lexer::anchor() { }  in anchor()
65 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer()
117 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP) in Lexer() function in Lexer
132 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts, in Lexer() function in Lexer
145 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, in Lexer() function in Lexer
171 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer()
180 Lexer *L = new Lexer(SpellingFID, InputFile, PP); in Create_PragmaLexer()
209 std::string Lexer::Stringify(const std::string &Str, bool Charify) { in Stringify()
223 void Lexer::Stringify(SmallVectorImpl<char> &Str) { in Stringify()
241 StringRef Lexer::getSpelling(SourceLocation loc, in getSpelling()
260 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), options, in getSpelling()
277 buffer.push_back(Lexer::getCharAndSizeNoWarn(ti, charSize, options)); in getSpelling()
289 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr, in getSpelling()
312 Result.push_back(Lexer::getCharAndSizeNoWarn(Ptr, CharSize, LangOpts)); in getSpelling()
330 unsigned Lexer::getSpelling(const Token &Tok, const char *&Buffer, in getSpelling()
372 *OutBuf++ = Lexer::getCharAndSizeNoWarn(Ptr, CharSize, LangOpts); in getSpelling()
389 unsigned Lexer::MeasureTokenLength(SourceLocation Loc, in MeasureTokenLength()
413 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, in MeasureTokenLength()
456 Lexer TheLexer(LexerStartLoc, LangOpts, BufStart, LexStart, Buffer.end()); in getBeginningOfFileToken()
481 SourceLocation Lexer::GetBeginningOfToken(SourceLocation Loc, in GetBeginningOfToken()
510 Lexer::ComputePreamble(const llvm::MemoryBuffer *Buffer, in ComputePreamble()
517 Lexer TheLexer(StartLoc, LangOpts, Buffer->getBufferStart(), in ComputePreamble()
658 SourceLocation Lexer::AdvanceToTokenCharacter(SourceLocation TokStart, in AdvanceToTokenCharacter()
669 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in AdvanceToTokenCharacter()
677 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in AdvanceToTokenCharacter()
687 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in AdvanceToTokenCharacter()
696 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in AdvanceToTokenCharacter()
697 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in AdvanceToTokenCharacter()
717 SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset, in getLocForEndOfToken()
728 unsigned Len = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getLocForEndOfToken()
739 bool Lexer::isAtStartOfMacroExpansion(SourceLocation loc, in isAtStartOfMacroExpansion()
765 bool Lexer::isAtEndOfMacroExpansion(SourceLocation loc, in isAtEndOfMacroExpansion()
803 End = Lexer::getLocForEndOfToken(End, 0, SM,LangOpts); in makeRangeFromFileLocs()
827 CharSourceRange Lexer::makeFileCharRange(CharSourceRange Range, in makeFileCharRange()
891 StringRef Lexer::getSourceText(CharSourceRange Range, in getSourceText()
927 StringRef Lexer::getImmediateMacroName(SourceLocation Loc, in getImmediateMacroName()
969 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName()
1163 SourceLocation Lexer::getSourceLocation(const char *Loc, in getSourceLocation()
1182 DiagnosticBuilder Lexer::Diag(const char *Loc, unsigned DiagID) const { in Diag()
1211 static char DecodeTrigraphChar(const char *CP, Lexer *L) { in DecodeTrigraphChar()
1229 unsigned Lexer::getEscapedNewLineSize(const char *Ptr) { in getEscapedNewLineSize()
1252 const char *Lexer::SkipEscapedNewLines(const char *P) { in SkipEscapedNewLines()
1266 unsigned NewLineSize = Lexer::getEscapedNewLineSize(AfterEscape); in SkipEscapedNewLines()
1276 SourceLocation Lexer::findLocationAfterToken(SourceLocation Loc, in findLocationAfterToken()
1282 if (!Lexer::isAtEndOfMacroExpansion(Loc, SM, LangOpts, &Loc)) in findLocationAfterToken()
1285 Loc = Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts); in findLocationAfterToken()
1299 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(), in findLocationAfterToken()
1342 char Lexer::getCharAndSizeSlow(const char *Ptr, unsigned &Size, in getCharAndSizeSlow()
1407 char Lexer::getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeSlowNoWarn()
1459 void Lexer::SkipBytes(unsigned Bytes, bool StartOfLine) { in SkipBytes()
1466 void Lexer::LexIdentifier(Token &Result, const char *CurPtr) { in LexIdentifier()
1538 char C1 = Lexer::getCharAndSizeNoWarn(Start, Size, LangOpts); in isHexaLiteral()
1541 char C2 = Lexer::getCharAndSizeNoWarn(Start + Size, Size, LangOpts); in isHexaLiteral()
1548 void Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { in LexNumericConstant()
1578 const char *Lexer::LexUDSuffix(Token &Result, const char *CurPtr) { in LexUDSuffix()
1618 void Lexer::LexStringLiteral(Token &Result, const char *CurPtr, in LexStringLiteral()
1671 void Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr, in LexRawStringLiteral()
1750 void Lexer::LexAngledStringLiteral(Token &Result, const char *CurPtr) { in LexAngledStringLiteral()
1785 void Lexer::LexCharConstant(Token &Result, const char *CurPtr, in LexCharConstant()
1844 bool Lexer::SkipWhitespace(Token &Result, const char *CurPtr) { in SkipWhitespace()
1891 bool Lexer::SkipBCPLComment(Token &Result, const char *CurPtr) { in SkipBCPLComment()
2020 bool Lexer::SaveBCPLComment(Token &Result, const char *CurPtr) { in SaveBCPLComment()
2049 Lexer *L) { in isEndOfBlockCommentWithEscapedNewLine()
2122 bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr) { in SkipBlockComment()
2289 std::string Lexer::ReadToEndOfLine() { in ReadToEndOfLine()
2342 bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { in LexEndOfFile()
2393 unsigned Lexer::isNextPPTokenLParen() { in isNextPPTokenLParen()
2445 bool Lexer::IsStartOfConflictMarker(const char *CurPtr) { in IsStartOfConflictMarker()
2490 bool Lexer::HandleEndOfConflictMarker(const char *CurPtr) { in HandleEndOfConflictMarker()
2527 bool Lexer::isCodeCompletionPoint(const char *CurPtr) const { in isCodeCompletionPoint()
2542 void Lexer::LexTokenInternal(Token &Result) { in LexTokenInternal()