Home
last modified time | relevance | path

Searched refs:Lexer (Results 1 – 25 of 107) sorted by relevance

12345

/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DWasmAsmParser.cpp36 MCAsmLexer *Lexer = nullptr; member in __anonda87bf150111::WasmAsmParser
51 Lexer = &Parser->getLexer(); in Initialize()
75 auto Ok = Lexer->is(Kind); in isNext()
84 Lexer->getTok()); in expect()
117 if (Lexer->isNot(AsmToken::Comma)) in parseGroup()
120 if (Lexer->is(AsmToken::Integer)) { in parseGroup()
126 if (Lexer->is(AsmToken::Comma)) { in parseGroup()
145 if (Lexer->isNot(AsmToken::String)) in parseSectionDirective()
224 if (!Lexer->is(AsmToken::Identifier)) in parseDirectiveType()
226 Lexer->getTok()); in parseDirectiveType()
[all …]
H A DAsmParser.cpp122 AsmLexer Lexer; member in __anonf7e4d03d0111::AsmParser
892 Error(Lexer.getErrLoc(), Lexer.getErr()); in Lex()
1076 Lexer.Lex(); in eatToEndOfStatement()
1080 Lexer.Lex(); in eatToEndOfStatement()
1087 Lexer.Lex(); in parseStringToEndOfStatement()
1098 Lexer.Lex(); in parseStringToComma()
2659 AsmLexerSkipSpaceRAII(AsmLexer &Lexer, bool SkipSpace) : Lexer(Lexer) { in AsmLexerSkipSpaceRAII() argument
2692 if (Lexer.is(AsmToken::Eof) || Lexer.is(AsmToken::Equal)) in parseMacroArgument()
2737 Lexer.Lex(); in parseMacroArgument()
2958 if (Lexer.is(AsmToken::Dollar) || Lexer.is(AsmToken::At)) { in parseIdentifier()
[all …]
H A DMasmParser.cpp366 AsmLexer Lexer; member in __anon96dc1d8a0111::MasmParser
1174 Lexer.Lex(); in expandMacros()
1205 Lexer.Lex(); in expandMacros()
1211 Error(Lexer.getErrLoc(), Lexer.getErr()); in Lex()
1252 Lexer.Lex(); in Lex()
1460 Lexer.Lex(); in eatToEndOfStatement()
1465 Lexer.Lex(); in eatToEndOfStatement()
1505 Lexer.Lex(); in parseStringToEndOfStatement()
3037 AsmLexerSkipSpaceRAII(AsmLexer &Lexer, bool SkipSpace) : Lexer(Lexer) { in AsmLexerSkipSpaceRAII() argument
3084 if (Lexer.is(AsmToken::Eof) || Lexer.is(AsmToken::Equal)) in parseMacroArgument()
[all …]
H A DXCOFFAsmParser.cpp27 MCAsmLexer *Lexer = nullptr; member in __anon646cbdd30111::XCOFFAsmParser
42 Lexer = &Parser->getLexer(); in Initialize()
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp77 void Lexer::anchor() {} in anchor()
135 Lexer::Lexer(FileID FID, const llvm::MemoryBufferRef &InputFile, in Lexer() function in Lexer
149 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts, in Lexer() function in Lexer
161 Lexer::Lexer(FileID FID, const llvm::MemoryBufferRef &FromFile, in Lexer() function in Lexer
166 void Lexer::resetExtendedTokenMode() { in resetExtendedTokenMode()
189 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer()
198 Lexer *L = new Lexer(SpellingFID, InputFile, PP); in Create_PragmaLexer()
224 bool Lexer::skipOver(unsigned NumBytes) { in skipOver()
1288 SourceLocation Lexer::findLocationAfterToken( in findLocationAfterToken()
2848 unsigned Lexer::isNextPPTokenLParen() { in isNextPPTokenLParen()
[all …]
H A DLiteralSupport.cpp65 Lexer::AdvanceToTokenCharacter(TokLoc, TokRangeBegin - TokBegin, in MakeCharSourceRange()
68 Lexer::AdvanceToTokenCharacter(Begin, TokRangeEnd - TokRangeBegin, in MakeCharSourceRange()
83 Lexer::AdvanceToTokenCharacter(TokLoc, TokRangeBegin - TokBegin, in Diag()
766 Diags.Report(Lexer::AdvanceToTokenCharacter( in NumericLiteralParser()
791 Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, LangOpts), in ParseDecimalOrOctalCommon()
819 Diags.Report(Lexer::AdvanceToTokenCharacter( in ParseDecimalOrOctalCommon()
867 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin, SM, in checkSeparator()
908 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, in ParseNumberStartingWithZero()
927 Diags.Report(Lexer::AdvanceToTokenCharacter( in ParseNumberStartingWithZero()
1587 Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features, in init()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp198 MCAsmLexer &Lexer; member in __anoncf9387500111::WebAssemblyAsmParser
249 Lexer(Parser.getLexer()), in WebAssemblyAsmParser()
349 auto Ok = Lexer.is(Kind); in isNext()
386 auto &Int = Lexer.getTok(); in parseSingleInteger()
397 auto &Flt = Lexer.getTok(); in parseSingleFloat()
413 auto &Flt = Lexer.getTok(); in parseSpecialFloatMaybe()
482 auto Tok = Lexer.getTok(); in parseLimits()
492 auto Tok = Lexer.getTok(); in parseLimits()
509 auto &Tok = Lexer.getTok(); in parseFunctionTableOperand()
549 auto &Sep = Lexer.getTok(); in ParseInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp33 return Lexer::getSourceText(Range, Context.getSourceManager(), in getText()
40 CharSourceRange R = Lexer::getAsCharRange(Range, Context.getSourceManager(), in maybeExtendRange()
46 Lexer::getRawToken(R.getEnd(), Tok, Context.getSourceManager(), in maybeExtendRange()
135 std::unique_ptr<Lexer> Lexer = [&]() { in getEntityEndLoc() local
140 return std::make_unique<clang::Lexer>( in getEntityEndLoc()
146 Lexer->SetKeepWhitespaceMode(true); in getEntityEndLoc()
178 Lexer->LexFromRawLexer(Tok); in getEntityEndLoc()
191 Lexer->LexFromRawLexer(Tok); in getEntityEndLoc()
216 Lexer->LexFromRawLexer(Tok); in getEntityEndLoc()
302 bool Failed = Lexer::getRawToken(Loc, Tok, SM, LangOpts, in atOrBeforeSeparation()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DCommentLexer.cpp90 void Lexer::skipLineStartingDecorations() { in skipLineStartingDecorations()
292 void Lexer::lexCommentText(Token &T) { in lexCommentText()
463 void Lexer::setupAndLexVerbatimBlock(Token &T, in setupAndLexVerbatimBlock()
533 void Lexer::lexVerbatimBlockBody(Token &T) { in lexVerbatimBlockBody()
557 void Lexer::lexVerbatimLineText(Token &T) { in lexVerbatimLineText()
652 void Lexer::lexHTMLStartTag(Token &T) { in lexHTMLStartTag()
714 void Lexer::setupAndLexHTMLEndTag(Token &T) { in setupAndLexHTMLEndTag()
734 void Lexer::lexHTMLEndTag(Token &T) { in lexHTMLEndTag()
741 Lexer::Lexer(llvm::BumpPtrAllocator &Allocator, DiagnosticsEngine &Diags, in Lexer() function in clang::comments::Lexer
749 void Lexer::lex(Token &T) { in lex()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp98 MCAsmLexer &Lexer; member in __anon3e493c9e0111::LanaiAsmParser
715 Lexer.UnLex(PercentTok.getValue()); in parseRegister()
769 Lexer.Lex(); // lex '(' in parseIdentifier()
786 Lexer.Lex(); // lex ')' in parseIdentifier()
806 switch (Lexer.getKind()) { in parseImmediate()
846 if (Lexer.getKind() == Lexer.peekTok(true).getKind()) { in parsePrePost()
848 if (Lexer.is(AsmToken::Minus)) in parsePrePost()
850 else if (Lexer.is(AsmToken::Plus)) in parsePrePost()
919 if (Lexer.isNot(AsmToken::LBrac)) { in parseMemoryOperand()
973 if (Lexer.is(AsmToken::RBrac)) { in parseMemoryOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DCommentLexer.h26 class Lexer; variable
56 friend class Lexer; variable
216 void dump(const Lexer &L, const SourceManager &SM) const;
220 class Lexer {
222 Lexer(const Lexer &) = delete;
223 void operator=(const Lexer &) = delete;
349 Lexer(llvm::BumpPtrAllocator &Allocator, DiagnosticsEngine &Diags,
H A DCommentBriefParser.h30 Lexer &L;
44 BriefParser(Lexer &L, const CommandTraits &Traits);
H A DCommentParser.h35 Lexer &L;
88 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h76 class Lexer : public PreprocessorLexer {
145 Lexer(FileID FID, const llvm::MemoryBufferRef &InputFile, Preprocessor &PP);
150 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
156 Lexer(FileID FID, const llvm::MemoryBufferRef &FromFile,
159 Lexer(const Lexer &) = delete;
160 Lexer &operator=(const Lexer &) = delete;
165 static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
H A DPreprocessor.h504 std::unique_ptr<Lexer> CurLexer;
542 std::unique_ptr<Lexer> TheLexer;
550 std::unique_ptr<Lexer> &&TheLexer, in IncludeStackInfo()
1725 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
1737 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
1754 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
1799 return Lexer::getImmediateMacroName(Loc, SourceMgr, getLangOpts()); in getImmediateMacroName()
1832 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts);
1842 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts,
2189 void EnterSourceFileWithLexer(Lexer *TheLexer, const DirectoryLookup *Dir);
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp42 llvm::function_ref<unsigned(const SourceManager &, Lexer &, Token &)> in getOffsetAfterTokenSequence() argument
46 Lexer Lex(SM.getMainFileID(), SM.getBufferOrFake(SM.getMainFileID()), SM, in getOffsetAfterTokenSequence()
59 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName()
71 void skipComments(Lexer &Lex, Token &Tok) { in skipComments()
87 [&](std::function<unsigned(const SourceManager &SM, Lexer &Lex, in getOffsetAfterHeaderGuardsAndComments()
92 [&Consume](const SourceManager &SM, Lexer &Lex, Token Tok) { in getOffsetAfterHeaderGuardsAndComments()
101 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
112 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
124 bool checkAndConsumeInclusiveDirective(Lexer &Lex, Token &Tok) { in checkAndConsumeInclusiveDirective()
162 [](const SourceManager &SM, Lexer &Lex, Token Tok) { in getMaxHeaderInsertionOffset()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp606 MCAsmLexer &Lexer = getLexer(); in eatToEndOfPacket() local
608 Lexer.Lex(); in eatToEndOfPacket()
609 Lexer.Lex(); in eatToEndOfPacket()
988 Lexer.Lex(); in tryParseRegister()
992 bool Type = Lexer.is(AsmToken::Identifier) || Lexer.is(AsmToken::Dot) || in tryParseRegister()
993 Lexer.is(AsmToken::Integer) || Lexer.is(AsmToken::Real) || in tryParseRegister()
1008 EndLoc = Lexer.getLoc(); in tryParseRegister()
1017 EndLoc = Lexer.getLoc(); in tryParseRegister()
1030 EndLoc = Lexer.getLoc(); in tryParseRegister()
1082 Lexer.UnLex(Tokens.back()); in parseExpression()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h54 Lexer::getLocForEndOfToken(Initializer->getSourceLocation(), in VisitCXXConstructorDecl()
89 Lexer::getLocForEndOfToken(TypeBeginLoc, 0, SM, LangOpts); in VisitTypeLoc()
110 Lexer::getLocForEndOfToken(TL.getBeginLoc(), 0, SM, LangOpts); in VisitTypedefTypeLoc()
146 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts)); in visit()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-mca/
H A DCodeRegionGenerator.cpp128 MCAsmLexer &Lexer = Parser->getLexer(); in parseCodeRegions() local
130 Lexer.setCommentConsumer(&CC); in parseCodeRegions()
132 Lexer.setLexMasmIntegers(true); in parseCodeRegions()
/freebsd-13.1/contrib/llvm-project/clang/lib/Edit/
H A DCommit.cpp256 unsigned tokLen = Lexer::MeasureTokenLength(spellLoc, SourceMgr, LangOpts); in canInsertAfterToken()
272 loc = Lexer::getLocForEndOfToken(loc, 0, SourceMgr, LangOpts); in canInsertAfterToken()
299 range = Lexer::makeFileCharRange(range, SM, LangOpts); in canRemoveRange()
342 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts, MacroBegin); in isAtStartOfMacroExpansion()
347 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd); in isAtEndOfMacroExpansion()
H A DEditedSource.cpp47 StringRef ArgName = Lexer::getSpelling(SourceMgr.getSpellingLoc(DefArgLoc), in deconstructMacroArgLoc()
317 return !(Lexer::isIdentifierBodyChar(left, LangOpts) && in canBeJoined()
318 Lexer::isIdentifierBodyChar(right, LangOpts)); in canBeJoined()
341 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); in adjustRemoval()
463 return Lexer::getSourceText(CharSourceRange::getCharRange(BLoc, ELoc), in getSourceText()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp157 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine() local
162 while (!Lexer.LexFromRawLexer(Token) && NextStart < 2) { in NormalizeLine()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp23 return Lexer::getSourceText( in isSemicolonAtLocation()
103 Optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts); in compute()
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransforms.cpp135 if (!Lexer::isAtEndOfMacroExpansion(loc, SM, Ctx.getLangOpts(), &loc)) in findSemiAfterLocation()
138 loc = Lexer::getLocForEndOfToken(loc, /*Offset=*/0, SM, Ctx.getLangOpts()); in findSemiAfterLocation()
152 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in findSemiAfterLocation()
400 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in rewritePropertyAttribute()
481 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in addPropertyAttribute()
543 str += Lexer::getSourceText( in GCRewriteFinalize()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp98 return Lexer::getImmediateMacroName(Loc, getSourceManager(), in getMacroNameOrSpelling()
101 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts()); in getMacroNameOrSpelling()

12345