Lines Matching refs:Lexer
53 void Lexer::anchor() { } in anchor()
55 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer()
109 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP) in Lexer() function in Lexer
120 void Lexer::resetExtendedTokenMode() { in resetExtendedTokenMode()
131 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts, in Lexer() function in Lexer
144 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, in Lexer() function in Lexer
146 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile->getBufferStart(), in Lexer()
164 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer()
173 Lexer *L = new Lexer(SpellingFID, InputFile, PP); in Create_PragmaLexer()
202 std::string Lexer::Stringify(StringRef Str, bool Charify) { in Stringify()
216 void Lexer::Stringify(SmallVectorImpl<char> &Str) { in Stringify()
242 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
271 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
285 StringRef Lexer::getSpelling(SourceLocation loc, in getSpelling()
304 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), options, in getSpelling()
326 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr, in getSpelling()
358 unsigned Lexer::getSpelling(const Token &Tok, const char *&Buffer, in getSpelling()
406 unsigned Lexer::MeasureTokenLength(SourceLocation Loc, in MeasureTokenLength()
417 bool Lexer::getRawToken(SourceLocation Loc, Token &Result, in getRawToken()
442 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, in getRawToken()
484 Lexer TheLexer(LexerStartLoc, LangOpts, BufStart, LexStart, Buffer.end()); in getBeginningOfFileToken()
509 SourceLocation Lexer::GetBeginningOfToken(SourceLocation Loc, in GetBeginningOfToken()
537 std::pair<unsigned, bool> Lexer::ComputePreamble(StringRef Buffer, in ComputePreamble()
545 Lexer TheLexer(FileLoc, LangOpts, Buffer.begin(), Buffer.begin(), in ComputePreamble()
700 SourceLocation Lexer::AdvanceToTokenCharacter(SourceLocation TokStart, in AdvanceToTokenCharacter()
711 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in AdvanceToTokenCharacter()
719 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in AdvanceToTokenCharacter()
729 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in AdvanceToTokenCharacter()
738 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in AdvanceToTokenCharacter()
739 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in AdvanceToTokenCharacter()
759 SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset, in getLocForEndOfToken()
770 unsigned Len = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getLocForEndOfToken()
781 bool Lexer::isAtStartOfMacroExpansion(SourceLocation loc, in isAtStartOfMacroExpansion()
803 bool Lexer::isAtEndOfMacroExpansion(SourceLocation loc, in isAtEndOfMacroExpansion()
836 End = Lexer::getLocForEndOfToken(End, 0, SM,LangOpts); in makeRangeFromFileLocs()
856 CharSourceRange Lexer::makeFileCharRange(CharSourceRange Range, in makeFileCharRange()
920 StringRef Lexer::getSourceText(CharSourceRange Range, in getSourceText()
956 StringRef Lexer::getImmediateMacroName(SourceLocation Loc, in getImmediateMacroName()
998 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName()
1003 bool Lexer::isIdentifierBodyChar(char c, const LangOptions &LangOpts) { in isIdentifierBodyChar()
1043 SourceLocation Lexer::getSourceLocation(const char *Loc, in getSourceLocation()
1062 DiagnosticBuilder Lexer::Diag(const char *Loc, unsigned DiagID) const { in Diag()
1091 static char DecodeTrigraphChar(const char *CP, Lexer *L) { in DecodeTrigraphChar()
1109 unsigned Lexer::getEscapedNewLineSize(const char *Ptr) { in getEscapedNewLineSize()
1132 const char *Lexer::SkipEscapedNewLines(const char *P) { in SkipEscapedNewLines()
1146 unsigned NewLineSize = Lexer::getEscapedNewLineSize(AfterEscape); in SkipEscapedNewLines()
1156 SourceLocation Lexer::findLocationAfterToken(SourceLocation Loc, in findLocationAfterToken()
1162 if (!Lexer::isAtEndOfMacroExpansion(Loc, SM, LangOpts, &Loc)) in findLocationAfterToken()
1165 Loc = Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts); in findLocationAfterToken()
1179 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(), in findLocationAfterToken()
1228 char Lexer::getCharAndSizeSlow(const char *Ptr, unsigned &Size, in getCharAndSizeSlow()
1293 char Lexer::getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeSlowNoWarn()
1345 void Lexer::SkipBytes(unsigned Bytes, bool StartOfLine) { in SkipBytes()
1391 static inline CharSourceRange makeCharRange(Lexer &L, const char *Begin, in makeCharRange()
1432 bool Lexer::tryConsumeIdentifierUCN(const char *&CurPtr, unsigned Size, in tryConsumeIdentifierUCN()
1454 bool Lexer::tryConsumeIdentifierUTF8Char(const char *&CurPtr) { in tryConsumeIdentifierUTF8Char()
1475 bool Lexer::LexIdentifier(Token &Result, const char *CurPtr) { in LexIdentifier()
1551 bool Lexer::isHexaLiteral(const char *Start, const LangOptions &LangOpts) { in isHexaLiteral()
1553 char C1 = Lexer::getCharAndSizeNoWarn(Start, Size, LangOpts); in isHexaLiteral()
1556 char C2 = Lexer::getCharAndSizeNoWarn(Start + Size, Size, LangOpts); in isHexaLiteral()
1563 bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { in LexNumericConstant()
1625 const char *Lexer::LexUDSuffix(Token &Result, const char *CurPtr, in LexUDSuffix()
1716 bool Lexer::LexStringLiteral(Token &Result, const char *CurPtr, in LexStringLiteral()
1774 bool Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr, in LexRawStringLiteral()
1854 bool Lexer::LexAngledStringLiteral(Token &Result, const char *CurPtr) { in LexAngledStringLiteral()
1891 bool Lexer::LexCharConstant(Token &Result, const char *CurPtr, in LexCharConstant()
1959 bool Lexer::SkipWhitespace(Token &Result, const char *CurPtr, in SkipWhitespace()
2018 bool Lexer::SkipLineComment(Token &Result, const char *CurPtr, in SkipLineComment()
2154 bool Lexer::SaveLineComment(Token &Result, const char *CurPtr) { in SaveLineComment()
2183 Lexer *L) { in isEndOfBlockCommentWithEscapedNewLine()
2256 bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr, in SkipBlockComment()
2424 void Lexer::ReadToEndOfLine(SmallVectorImpl<char> *Result) { in ReadToEndOfLine()
2478 bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { in LexEndOfFile()
2547 unsigned Lexer::isNextPPTokenLParen() { in isNextPPTokenLParen()
2604 bool Lexer::IsStartOfConflictMarker(const char *CurPtr) { in IsStartOfConflictMarker()
2649 bool Lexer::HandleEndOfConflictMarker(const char *CurPtr) { in HandleEndOfConflictMarker()
2686 bool Lexer::isCodeCompletionPoint(const char *CurPtr) const { in isCodeCompletionPoint()
2695 uint32_t Lexer::tryReadUCN(const char *&StartPtr, const char *SlashLoc, in tryReadUCN()
2807 bool Lexer::CheckUnicodeWhitespace(Token &Result, uint32_t C, in CheckUnicodeWhitespace()
2822 bool Lexer::LexUnicode(Token &Result, uint32_t C, const char *CurPtr) { in LexUnicode()
2861 void Lexer::PropagateLineStartLeadingSpaceInfo(Token &Result) { in PropagateLineStartLeadingSpaceInfo()
2868 bool Lexer::Lex(Token &Result) { in Lex()
2903 bool Lexer::LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine) { in LexTokenInternal()