Lines Matching refs:Lexer

78 void Lexer::anchor() {}  in anchor()
80 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer()
134 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP) in Lexer() function in Lexer
147 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts, in Lexer() function in Lexer
159 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, in Lexer() function in Lexer
161 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile->getBufferStart(), in Lexer()
164 void Lexer::resetExtendedTokenMode() { in resetExtendedTokenMode()
187 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer()
196 Lexer *L = new Lexer(SpellingFID, InputFile, PP); in Create_PragmaLexer()
247 std::string Lexer::Stringify(StringRef Str, bool Charify) { in Stringify()
254 void Lexer::Stringify(SmallVectorImpl<char> &Str) { StringifyImpl(Str, '"'); } in Stringify()
273 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
302 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
316 StringRef Lexer::getSpelling(SourceLocation loc, in getSpelling()
335 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), options, in getSpelling()
357 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr, in getSpelling()
389 unsigned Lexer::getSpelling(const Token &Tok, const char *&Buffer, in getSpelling()
436 unsigned Lexer::MeasureTokenLength(SourceLocation Loc, in MeasureTokenLength()
447 bool Lexer::getRawToken(SourceLocation Loc, Token &Result, in getRawToken()
472 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, in getRawToken()
489 !Lexer::isNewLineEscaped(BufStart, LexStart)) { in findBeginningOfLine()
520 Lexer TheLexer(LexerStartLoc, LangOpts, Buffer.data(), LexStart, in getBeginningOfFileToken()
546 SourceLocation Lexer::GetBeginningOfToken(SourceLocation Loc, in GetBeginningOfToken()
574 PreambleBounds Lexer::ComputePreamble(StringRef Buffer, in ComputePreamble()
582 Lexer TheLexer(FileLoc, LangOpts, Buffer.begin(), Buffer.begin(), in ComputePreamble()
711 unsigned Lexer::getTokenPrefixLength(SourceLocation TokStart, unsigned CharNo, in getTokenPrefixLength()
721 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in getTokenPrefixLength()
729 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in getTokenPrefixLength()
741 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in getTokenPrefixLength()
750 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in getTokenPrefixLength()
751 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in getTokenPrefixLength()
771 SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset, in getLocForEndOfToken()
782 unsigned Len = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getLocForEndOfToken()
793 bool Lexer::isAtStartOfMacroExpansion(SourceLocation loc, in isAtStartOfMacroExpansion()
815 bool Lexer::isAtEndOfMacroExpansion(SourceLocation loc, in isAtEndOfMacroExpansion()
848 End = Lexer::getLocForEndOfToken(End, 0, SM,LangOpts); in makeRangeFromFileLocs()
868 CharSourceRange Lexer::makeFileCharRange(CharSourceRange Range, in makeFileCharRange()
932 StringRef Lexer::getSourceText(CharSourceRange Range, in getSourceText()
968 StringRef Lexer::getImmediateMacroName(SourceLocation Loc, in getImmediateMacroName()
1010 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName()
1015 StringRef Lexer::getImmediateMacroNameForDiagnostics( in getImmediateMacroNameForDiagnostics()
1035 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroNameForDiagnostics()
1040 bool Lexer::isIdentifierBodyChar(char c, const LangOptions &LangOpts) { in isIdentifierBodyChar()
1044 bool Lexer::isNewLineEscaped(const char *BufferStart, const char *Str) { in isNewLineEscaped()
1064 StringRef Lexer::getIndentationForLine(SourceLocation Loc, in getIndentationForLine()
1119 SourceLocation Lexer::getSourceLocation(const char *Loc, in getSourceLocation()
1138 DiagnosticBuilder Lexer::Diag(const char *Loc, unsigned DiagID) const { in Diag()
1167 static char DecodeTrigraphChar(const char *CP, Lexer *L) { in DecodeTrigraphChar()
1185 unsigned Lexer::getEscapedNewLineSize(const char *Ptr) { in getEscapedNewLineSize()
1208 const char *Lexer::SkipEscapedNewLines(const char *P) { in SkipEscapedNewLines()
1224 unsigned NewLineSize = Lexer::getEscapedNewLineSize(AfterEscape); in SkipEscapedNewLines()
1230 Optional<Token> Lexer::findNextToken(SourceLocation Loc, in findNextToken()
1234 if (!Lexer::isAtEndOfMacroExpansion(Loc, SM, LangOpts, &Loc)) in findNextToken()
1237 Loc = Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts); in findNextToken()
1251 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(), in findNextToken()
1263 SourceLocation Lexer::findLocationAfterToken( in findLocationAfterToken()
1309 char Lexer::getCharAndSizeSlow(const char *Ptr, unsigned &Size, in getCharAndSizeSlow()
1367 char Lexer::getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeSlowNoWarn()
1413 void Lexer::SetByteOffset(unsigned Offset, bool StartOfLine) { in SetByteOffset()
1459 static inline CharSourceRange makeCharRange(Lexer &L, const char *Begin, in makeCharRange()
1584 bool Lexer::tryConsumeIdentifierUCN(const char *&CurPtr, unsigned Size, in tryConsumeIdentifierUCN()
1606 bool Lexer::tryConsumeIdentifierUTF8Char(const char *&CurPtr) { in tryConsumeIdentifierUTF8Char()
1630 bool Lexer::LexIdentifier(Token &Result, const char *CurPtr) { in LexIdentifier()
1731 bool Lexer::isHexaLiteral(const char *Start, const LangOptions &LangOpts) { in isHexaLiteral()
1733 char C1 = Lexer::getCharAndSizeNoWarn(Start, Size, LangOpts); in isHexaLiteral()
1736 char C2 = Lexer::getCharAndSizeNoWarn(Start + Size, Size, LangOpts); in isHexaLiteral()
1743 bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { in LexNumericConstant()
1806 const char *Lexer::LexUDSuffix(Token &Result, const char *CurPtr, in LexUDSuffix()
1897 bool Lexer::LexStringLiteral(Token &Result, const char *CurPtr, in LexStringLiteral()
1959 bool Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr, in LexRawStringLiteral()
2039 bool Lexer::LexAngledStringLiteral(Token &Result, const char *CurPtr) { in LexAngledStringLiteral()
2081 void Lexer::codeCompleteIncludedFile(const char *PathStart, in codeCompleteIncludedFile()
2111 bool Lexer::LexCharConstant(Token &Result, const char *CurPtr, in LexCharConstant()
2178 bool Lexer::SkipWhitespace(Token &Result, const char *CurPtr, in SkipWhitespace()
2237 bool Lexer::SkipLineComment(Token &Result, const char *CurPtr, in SkipLineComment()
2378 bool Lexer::SaveLineComment(Token &Result, const char *CurPtr) { in SaveLineComment()
2407 Lexer *L) { in isEndOfBlockCommentWithEscapedNewLine()
2480 bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr, in SkipBlockComment()
2648 void Lexer::ReadToEndOfLine(SmallVectorImpl<char> *Result) { in ReadToEndOfLine()
2703 bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { in LexEndOfFile()
2777 unsigned Lexer::isNextPPTokenLParen() { in isNextPPTokenLParen()
2834 bool Lexer::IsStartOfConflictMarker(const char *CurPtr) { in IsStartOfConflictMarker()
2878 bool Lexer::HandleEndOfConflictMarker(const char *CurPtr) { in HandleEndOfConflictMarker()
2927 bool Lexer::lexEditorPlaceholder(Token &Result, const char *CurPtr) { in lexEditorPlaceholder()
2946 bool Lexer::isCodeCompletionPoint(const char *CurPtr) const { in isCodeCompletionPoint()
2955 uint32_t Lexer::tryReadUCN(const char *&StartPtr, const char *SlashLoc, in tryReadUCN()
3066 bool Lexer::CheckUnicodeWhitespace(Token &Result, uint32_t C, in CheckUnicodeWhitespace()
3081 bool Lexer::LexUnicode(Token &Result, uint32_t C, const char *CurPtr) { in LexUnicode()
3122 void Lexer::PropagateLineStartLeadingSpaceInfo(Token &Result) { in PropagateLineStartLeadingSpaceInfo()
3129 bool Lexer::Lex(Token &Result) { in Lex()
3164 bool Lexer::LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine) { in LexTokenInternal()