Lines Matching refs:Lexer

77 void Lexer::anchor() {}  in anchor()
79 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer()
135 Lexer::Lexer(FileID FID, const llvm::MemoryBufferRef &InputFile, in Lexer() function in Lexer
150 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts, in Lexer() function in Lexer
164 Lexer::Lexer(FileID FID, const llvm::MemoryBufferRef &FromFile, in Lexer() function in Lexer
167 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile.getBufferStart(), in Lexer()
171 void Lexer::resetExtendedTokenMode() { in resetExtendedTokenMode()
194 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer()
203 Lexer *L = new Lexer(SpellingFID, InputFile, PP); in Create_PragmaLexer()
229 void Lexer::seek(unsigned Offset, bool IsAtStartOfLine) { in seek()
261 std::string Lexer::Stringify(StringRef Str, bool Charify) { in Stringify()
268 void Lexer::Stringify(SmallVectorImpl<char> &Str) { StringifyImpl(Str, '"'); } in Stringify()
287 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
316 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
330 StringRef Lexer::getSpelling(SourceLocation loc, in getSpelling()
349 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), options, in getSpelling()
371 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr, in getSpelling()
403 unsigned Lexer::getSpelling(const Token &Tok, const char *&Buffer, in getSpelling()
450 unsigned Lexer::MeasureTokenLength(SourceLocation Loc, in MeasureTokenLength()
461 bool Lexer::getRawToken(SourceLocation Loc, Token &Result, in getRawToken()
486 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, in getRawToken()
503 !Lexer::isNewLineEscaped(BufStart, LexStart)) { in findBeginningOfLine()
534 Lexer TheLexer(LexerStartLoc, LangOpts, Buffer.data(), LexStart, in getBeginningOfFileToken()
560 SourceLocation Lexer::GetBeginningOfToken(SourceLocation Loc, in GetBeginningOfToken()
588 PreambleBounds Lexer::ComputePreamble(StringRef Buffer, in ComputePreamble()
596 Lexer TheLexer(FileLoc, LangOpts, Buffer.begin(), Buffer.begin(), in ComputePreamble()
726 unsigned Lexer::getTokenPrefixLength(SourceLocation TokStart, unsigned CharNo, in getTokenPrefixLength()
736 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in getTokenPrefixLength()
744 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in getTokenPrefixLength()
756 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in getTokenPrefixLength()
765 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in getTokenPrefixLength()
766 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in getTokenPrefixLength()
786 SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset, in getLocForEndOfToken()
797 unsigned Len = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getLocForEndOfToken()
808 bool Lexer::isAtStartOfMacroExpansion(SourceLocation loc, in isAtStartOfMacroExpansion()
830 bool Lexer::isAtEndOfMacroExpansion(SourceLocation loc, in isAtEndOfMacroExpansion()
863 End = Lexer::getLocForEndOfToken(End, 0, SM,LangOpts); in makeRangeFromFileLocs()
891 CharSourceRange Lexer::makeFileCharRange(CharSourceRange Range, in makeFileCharRange()
960 StringRef Lexer::getSourceText(CharSourceRange Range, in getSourceText()
996 StringRef Lexer::getImmediateMacroName(SourceLocation Loc, in getImmediateMacroName()
1038 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName()
1043 StringRef Lexer::getImmediateMacroNameForDiagnostics( in getImmediateMacroNameForDiagnostics()
1065 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroNameForDiagnostics()
1070 bool Lexer::isAsciiIdentifierContinueChar(char c, const LangOptions &LangOpts) { in isAsciiIdentifierContinueChar()
1074 bool Lexer::isNewLineEscaped(const char *BufferStart, const char *Str) { in isNewLineEscaped()
1094 StringRef Lexer::getIndentationForLine(SourceLocation Loc, in getIndentationForLine()
1149 SourceLocation Lexer::getSourceLocation(const char *Loc, in getSourceLocation()
1168 DiagnosticBuilder Lexer::Diag(const char *Loc, unsigned DiagID) const { in Diag()
1197 static char DecodeTrigraphChar(const char *CP, Lexer *L, bool Trigraphs) { in DecodeTrigraphChar()
1216 unsigned Lexer::getEscapedNewLineSize(const char *Ptr) { in getEscapedNewLineSize()
1239 const char *Lexer::SkipEscapedNewLines(const char *P) { in SkipEscapedNewLines()
1255 unsigned NewLineSize = Lexer::getEscapedNewLineSize(AfterEscape); in SkipEscapedNewLines()
1261 std::optional<Token> Lexer::findNextToken(SourceLocation Loc, in findNextToken()
1265 if (!Lexer::isAtEndOfMacroExpansion(Loc, SM, LangOpts, &Loc)) in findNextToken()
1268 Loc = Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts); in findNextToken()
1282 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(), in findNextToken()
1294 SourceLocation Lexer::findLocationAfterToken( in findLocationAfterToken()
1340 char Lexer::getCharAndSizeSlow(const char *Ptr, unsigned &Size, in getCharAndSizeSlow()
1399 char Lexer::getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeSlowNoWarn()
1445 void Lexer::SetByteOffset(unsigned Offset, bool StartOfLine) { in SetByteOffset()
1559 static inline CharSourceRange makeCharRange(Lexer &L, const char *Begin, in makeCharRange()
1696 bool Lexer::tryConsumeIdentifierUCN(const char *&CurPtr, unsigned Size, in tryConsumeIdentifierUCN()
1737 bool Lexer::tryConsumeIdentifierUTF8Char(const char *&CurPtr) { in tryConsumeIdentifierUTF8Char()
1777 bool Lexer::LexUnicodeIdentifierStart(Token &Result, uint32_t C, in LexUnicodeIdentifierStart()
1823 bool Lexer::LexIdentifierContinue(Token &Result, const char *CurPtr) { in LexIdentifierContinue()
1907 bool Lexer::isHexaLiteral(const char *Start, const LangOptions &LangOpts) { in isHexaLiteral()
1909 char C1 = Lexer::getCharAndSizeNoWarn(Start, Size, LangOpts); in isHexaLiteral()
1912 char C2 = Lexer::getCharAndSizeNoWarn(Start + Size, Size, LangOpts); in isHexaLiteral()
1919 bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { in LexNumericConstant()
1984 const char *Lexer::LexUDSuffix(Token &Result, const char *CurPtr, in LexUDSuffix()
2076 bool Lexer::LexStringLiteral(Token &Result, const char *CurPtr, in LexStringLiteral()
2137 bool Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr, in LexRawStringLiteral()
2217 bool Lexer::LexAngledStringLiteral(Token &Result, const char *CurPtr) { in LexAngledStringLiteral()
2259 void Lexer::codeCompleteIncludedFile(const char *PathStart, in codeCompleteIncludedFile()
2294 bool Lexer::LexCharConstant(Token &Result, const char *CurPtr, in LexCharConstant()
2361 bool Lexer::SkipWhitespace(Token &Result, const char *CurPtr, in SkipWhitespace()
2437 bool Lexer::SkipLineComment(Token &Result, const char *CurPtr, in SkipLineComment()
2603 bool Lexer::SaveLineComment(Token &Result, const char *CurPtr) { in SaveLineComment()
2631 static bool isEndOfBlockCommentWithEscapedNewLine(const char *CurPtr, Lexer *L, in isEndOfBlockCommentWithEscapedNewLine()
2719 bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr, in SkipBlockComment()
2939 void Lexer::ReadToEndOfLine(SmallVectorImpl<char> *Result) { in ReadToEndOfLine()
2995 bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { in LexEndOfFile()
3074 unsigned Lexer::isNextPPTokenLParen() { in isNextPPTokenLParen()
3138 bool Lexer::IsStartOfConflictMarker(const char *CurPtr) { in IsStartOfConflictMarker()
3182 bool Lexer::HandleEndOfConflictMarker(const char *CurPtr) { in HandleEndOfConflictMarker()
3231 bool Lexer::lexEditorPlaceholder(Token &Result, const char *CurPtr) { in lexEditorPlaceholder()
3250 bool Lexer::isCodeCompletionPoint(const char *CurPtr) const { in isCodeCompletionPoint()
3259 std::optional<uint32_t> Lexer::tryReadNumericUCN(const char *&StartPtr, in tryReadNumericUCN()
3373 std::optional<uint32_t> Lexer::tryReadNamedUCN(const char *&StartPtr, in tryReadNamedUCN()
3467 uint32_t Lexer::tryReadUCN(const char *&StartPtr, const char *SlashLoc, in tryReadUCN()
3530 bool Lexer::CheckUnicodeWhitespace(Token &Result, uint32_t C, in CheckUnicodeWhitespace()
3543 void Lexer::PropagateLineStartLeadingSpaceInfo(Token &Result) { in PropagateLineStartLeadingSpaceInfo()
3550 bool Lexer::Lex(Token &Result) { in Lex()
3587 bool Lexer::LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine) { in LexTokenInternal()
4378 const char *Lexer::convertDependencyDirectiveToken( in convertDependencyDirectiveToken()
4390 bool Lexer::LexDependencyDirectiveToken(Token &Result) { in LexDependencyDirectiveToken()
4463 bool Lexer::LexDependencyDirectiveTokenWhileSkipping(Token &Result) { in LexDependencyDirectiveTokenWhileSkipping()