• 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()
657 SourceLocation Lexer::AdvanceToTokenCharacter(SourceLocation TokStart, in AdvanceToTokenCharacter()
668 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in AdvanceToTokenCharacter()
676 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in AdvanceToTokenCharacter()
686 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in AdvanceToTokenCharacter()
695 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in AdvanceToTokenCharacter()
696 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in AdvanceToTokenCharacter()
716 SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset, in getLocForEndOfToken()
727 unsigned Len = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getLocForEndOfToken()
738 bool Lexer::isAtStartOfMacroExpansion(SourceLocation loc, in isAtStartOfMacroExpansion()
764 bool Lexer::isAtEndOfMacroExpansion(SourceLocation loc, in isAtEndOfMacroExpansion()
802 End = Lexer::getLocForEndOfToken(End, 0, SM,LangOpts); in makeRangeFromFileLocs()
822 CharSourceRange Lexer::makeFileCharRange(CharSourceRange Range, in makeFileCharRange()
886 StringRef Lexer::getSourceText(CharSourceRange Range, in getSourceText()
922 StringRef Lexer::getImmediateMacroName(SourceLocation Loc, in getImmediateMacroName()
964 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName()
1124 bool Lexer::isIdentifierBodyChar(char c, const LangOptions &LangOpts) { in isIdentifierBodyChar()
1164 SourceLocation Lexer::getSourceLocation(const char *Loc, in getSourceLocation()
1183 DiagnosticBuilder Lexer::Diag(const char *Loc, unsigned DiagID) const { in Diag()
1212 static char DecodeTrigraphChar(const char *CP, Lexer *L) { in DecodeTrigraphChar()
1230 unsigned Lexer::getEscapedNewLineSize(const char *Ptr) { in getEscapedNewLineSize()
1253 const char *Lexer::SkipEscapedNewLines(const char *P) { in SkipEscapedNewLines()
1267 unsigned NewLineSize = Lexer::getEscapedNewLineSize(AfterEscape); in SkipEscapedNewLines()
1277 SourceLocation Lexer::findLocationAfterToken(SourceLocation Loc, in findLocationAfterToken()
1283 if (!Lexer::isAtEndOfMacroExpansion(Loc, SM, LangOpts, &Loc)) in findLocationAfterToken()
1286 Loc = Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts); in findLocationAfterToken()
1300 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(), in findLocationAfterToken()
1343 char Lexer::getCharAndSizeSlow(const char *Ptr, unsigned &Size, in getCharAndSizeSlow()
1408 char Lexer::getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeSlowNoWarn()
1460 void Lexer::SkipBytes(unsigned Bytes, bool StartOfLine) { in SkipBytes()
1467 void Lexer::LexIdentifier(Token &Result, const char *CurPtr) { in LexIdentifier()
1537 bool Lexer::isHexaLiteral(const char *Start, const LangOptions &LangOpts) { in isHexaLiteral()
1539 char C1 = Lexer::getCharAndSizeNoWarn(Start, Size, LangOpts); in isHexaLiteral()
1542 char C2 = Lexer::getCharAndSizeNoWarn(Start + Size, Size, LangOpts); in isHexaLiteral()
1549 void Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { in LexNumericConstant()
1591 const char *Lexer::LexUDSuffix(Token &Result, const char *CurPtr) { in LexUDSuffix()
1631 void Lexer::LexStringLiteral(Token &Result, const char *CurPtr, in LexStringLiteral()
1684 void Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr, in LexRawStringLiteral()
1763 void Lexer::LexAngledStringLiteral(Token &Result, const char *CurPtr) { in LexAngledStringLiteral()
1798 void Lexer::LexCharConstant(Token &Result, const char *CurPtr, in LexCharConstant()
1857 bool Lexer::SkipWhitespace(Token &Result, const char *CurPtr) { in SkipWhitespace()
1904 bool Lexer::SkipBCPLComment(Token &Result, const char *CurPtr) { in SkipBCPLComment()
2031 bool Lexer::SaveBCPLComment(Token &Result, const char *CurPtr) { in SaveBCPLComment()
2060 Lexer *L) { in isEndOfBlockCommentWithEscapedNewLine()
2133 bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr) { in SkipBlockComment()
2301 void Lexer::ReadToEndOfLine(SmallVectorImpl<char> *Result) { in ReadToEndOfLine()
2355 bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { in LexEndOfFile()
2406 unsigned Lexer::isNextPPTokenLParen() { in isNextPPTokenLParen()
2458 bool Lexer::IsStartOfConflictMarker(const char *CurPtr) { in IsStartOfConflictMarker()
2503 bool Lexer::HandleEndOfConflictMarker(const char *CurPtr) { in HandleEndOfConflictMarker()
2540 bool Lexer::isCodeCompletionPoint(const char *CurPtr) const { in isCodeCompletionPoint()
2555 void Lexer::LexTokenInternal(Token &Result) { in LexTokenInternal()