/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | TGParser.cpp | 657 if (Lex.getCode() == K) { in consume() 658 Lex.Lex(); in consume() 671 switch (Lex.getCode()) { in ParseObjectName() 709 if (Lex.getCode() != tgtok::Id) { in ParseClassID() 714 Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID() 716 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID() 717 if (MultiClasses[Lex.getCurStrVal()].get()) in ParseClassID() 719 Lex.getCurStrVal() + "'"); in ParseClassID() 723 Result->appendReferenceLoc(Lex.getLocRange()); in ParseClassID() 726 Lex.Lex(); in ParseClassID() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 82 Lex.Lex(); in Run() 86 Lex.getLoc(), in Run() 101 Lex.Lex(); in parseStandaloneConstantValue() 106 if (Lex.getKind() != lltok::Eof) in parseStandaloneConstantValue() 107 return error(Lex.getLoc(), "expected end of string"); in parseStandaloneConstantValue() 114 Lex.Lex(); in parseTypeAtBeginning() 117 SMLoc Start = Lex.getLoc(); in parseTypeAtBeginning() 121 SMLoc End = Lex.getLoc(); in parseTypeAtBeginning() 130 Lex.Lex(); in parseDIExpressionBodyAtBeginning() 133 SMLoc Start = Lex.getLoc(); in parseDIExpressionBodyAtBeginning() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
H A D | HeaderIncludes.cpp | 47 Lexer Lex(SM.getMainFileID(), SM.getBufferOrFake(SM.getMainFileID()), SM, in getOffsetAfterTokenSequence() local 51 Lex.LexFromRawLexer(Tok); in getOffsetAfterTokenSequence() 52 return GetOffsetAfterSequence(SM, Lex, Tok); in getOffsetAfterTokenSequence() 60 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName() argument 62 bool Matched = Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeDirectiveWithName() 64 Tok.getRawIdentifier() == Name && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeDirectiveWithName() 68 Lex.LexFromRawLexer(Tok); in checkAndConsumeDirectiveWithName() 72 void skipComments(Lexer &Lex, Token &Tok) { in skipComments() argument 74 if (Lex.LexFromRawLexer(Tok)) in skipComments() 88 [&](std::function<unsigned(const SourceManager &SM, Lexer &Lex, in getOffsetAfterHeaderGuardsAndComments() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | COFFAsmParser.cpp | 294 Lex(); in ParseDirectiveSymbolAttribute() 298 Lex(); in ParseDirectiveSymbolAttribute() 317 Lex(); in ParseSectionSwitch() 330 Lex(); in ParseSectionName() 365 Lex(); in parseSectionArguments() 371 Lex(); in parseSectionArguments() 381 Lex(); in parseSectionArguments() 394 Lex(); in parseSectionArguments() 439 Lex(); in ParseDirectiveDef() 451 Lex(); in ParseDirectiveScl() [all …]
|
H A D | ELFAsmParser.cpp | 199 Lex(); in ParseDirectiveSymbolAttribute() 203 Lex(); in ParseDirectiveSymbolAttribute() 214 Lex(); in ParseSectionSwitch() 230 Lex(); in ParseDirectiveSize() 238 Lex(); in ParseDirectiveSize() 252 Lex(); in ParseSectionName() 265 Lex(); in ParseSectionName() 268 Lex(); in ParseSectionName() 271 Lex(); in ParseSectionName() 368 Lex(); // Eat the #. in parseSunStyleSectionFlags() [all …]
|
H A D | MCAsmParser.cpp | 52 Lex(); in parseEOL() 59 Lex(); in parseEOL() 68 Lex(); in parseToken() 76 Lex(); in parseIntToken() 112 getLexer().Lex(); in Error() 119 Lex(); in addErrorSuffix() 154 Lex(); // Eat the Tag in parseGNUAttribute() 155 Lex(); // Eat the comma in parseGNUAttribute() 159 Lex(); // Eat the IntegerValue in parseGNUAttribute()
|
H A D | DarwinAsmParser.cpp | 479 Lex(); in parseSectionSwitch() 517 Lex(); in parseDirectiveAltEntry() 533 Lex(); in parseDirectiveDesc() 542 Lex(); in parseDirectiveDesc() 579 Lex(); in parseDirectiveIndirectSymbol() 592 Lex(); in parseDirectiveDumpOrLoad() 597 Lex(); in parseDirectiveDumpOrLoad() 626 Lex(); in parseDirectiveLinkerOption() 645 Lex(); in parseDirectiveLsym() 654 Lex(); in parseDirectiveLsym() [all …]
|
H A D | WasmAsmParser.cpp | 80 Lex(); in isNext() 131 Lex(); in parseGroup() 134 Lex(); in parseGroup() 139 Lex(); in parseGroup() 182 Lex(); in parseSectionDirective() 247 Lex(); in parseDirectiveType() 264 Lex(); in parseDirectiveType() 275 Lex(); in ParseDirectiveIdent() 278 Lex(); in ParseDirectiveIdent() 306 Lex(); in ParseDirectiveSymbolAttribute() [all …]
|
H A D | AsmParser.cpp | 248 const AsmToken &Lex() override; 733 Lexer.Lex(); in lexLeadingSpaces() 909 const AsmToken &AsmParser::Lex() { in Lex() function in AsmParser 921 const AsmToken *tok = &Lexer.Lex(); in Lex() 927 tok = &Lexer.Lex(); in Lex() 936 return Lex(); in Lex() 974 Lex(); in Run() 1007 Lex(); in Run() 1098 Lexer.Lex(); in eatToEndOfStatement() 1102 Lexer.Lex(); in eatToEndOfStatement() [all …]
|
H A D | MasmParser.cpp | 518 const AsmToken &Lex(ExpandKind ExpandNextToken); 519 const AsmToken &Lex() override { return Lex(ExpandMacros); } in Lex() function in __anon60b61cd60111::MasmParser 1194 Lexer.Lex(); in expandMacros() 1197 Lexer.Lex(); in expandMacros() 1225 Lexer.Lex(); in expandMacros() 1229 const AsmToken &MasmParser::Lex(ExpandKind ExpandNextToken) { in Lex() function in MasmParser 1241 const AsmToken *tok = &Lexer.Lex(); in Lex() 1265 tok = &Lexer.Lex(); in Lex() 1272 Lexer.Lex(); in Lex() 1273 tok = &Lexer.Lex(); in Lex() [all …]
|
H A D | COFFMasmParser.cpp | 58 Lex(); in IgnoreDirective() 226 Lex(); in ParseSectionSwitch() 241 Lex(); in ParseDirectiveSegment() 272 Lex(); in ParseDirectiveSegment() 310 Lex(); in ParseDirectiveSegment() 379 Lex(); in ParseDirectiveSegmentEnd() 452 Lex(); in ParseDirectiveProc() 455 Lex(); in ParseDirectiveProc() 469 Lex(); in ParseDirectiveProc()
|
H A D | MCAsmParserExtension.cpp | 35 Lex(); in ParseDirectiveCGProfile() 44 Lex(); in ParseDirectiveCGProfile()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
H A D | LLParser.h | 111 LLLexer Lex; variable 191 Lex(F, SM, Err, Context), M(M), Index(Index), Slots(Slots), in Context() 210 bool error(LocTy L, const Twine &Msg) const { return Lex.Error(L, Msg); } in error() 211 bool tokError(const Twine &Msg) const { return error(Lex.getLoc(), Msg); } in tokError() 233 if (Lex.getKind() != T) return false; in EatIfPresent() 234 Lex.Lex(); in EatIfPresent() 241 switch (Lex.getKind()) { in EatFastMathFlagsIfPresent() 242 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 243 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 244 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParsePragma.cpp | 322 PP.Lex(Tok); in HandlePragma() 328 PP.Lex(Tok); // Consume the l_paren. in HandlePragma() 337 PP.Lex(Tok); in HandlePragma() 340 PP.Lex(Tok); in HandlePragma() 350 PP.Lex(Tok); // Consume the r_paren. in HandlePragma() 1039 PP.Lex(Tok); // pragma kind in HandlePragmaMSPragma() 1061 PP.Lex(Tok); in HandlePragmaMSPragma() 1062 PP.Lex(Tok); in HandlePragmaMSPragma() 1072 PP.Lex(Tok); // ( in HandlePragmaMSSection() 1091 PP.Lex(Tok); // , in HandlePragmaMSSection() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | Pragma.cpp | 144 Self.Lex(Tok); in lex() 228 Lex(Tok); in Handle_Pragma() 232 Lex(Tok); in Handle_Pragma() 234 Lex(Tok); in Handle_Pragma() 241 Lex(Tok); in Handle_Pragma() 243 Lex(Tok); in Handle_Pragma() 303 return Lex(Tok); in Handle_Pragma() 413 return Lex(Tok); in HandleMicrosoft__pragma() 557 Lex(DependencyTok); in HandlePragmaDependency() 560 Lex(DependencyTok); in HandlePragmaDependency() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | FormatTokenLexer.cpp | 37 Lex.reset(new Lexer(ID, SourceMgr.getBufferOrFake(ID), SourceMgr, LangOpts)); 38 Lex->SetKeepWhitespaceMode(true); 659 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral() 661 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral() 692 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral() 777 const char *StrBegin = Lex->getBufferLocation() - TokenText.size(); in handleCSharpVerbatimAndInterpolatedStrings() 784 const auto End = Lex->getBuffer().end(); in handleCSharpVerbatimAndInterpolatedStrings() 813 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset + 1))); in handleCSharpVerbatimAndInterpolatedStrings() 821 auto OpenOffset = Lex->getCurrentBufferOffset() - 2 /* "[{" */; in handleTableGenMultilineString() 823 auto CloseOffset = Lex->getBuffer().find("}]", OpenOffset); in handleTableGenMultilineString() [all …]
|
H A D | TokenAnalyzer.cpp | 105 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process() local 108 ArrayRef<FormatToken *> Toks(Lex.lex()); in process() 110 UnwrappedLineParser Parser(Env.getSourceManager(), Style, Lex.getKeywords(), in process() 122 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process() 130 analyze(Annotator, AnnotatedLines, Lex); in process()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
H A D | AVRAsmParser.cpp | 384 Parser.Lex(); in parseRegister() 386 Parser.Lex(); // Eat high (odd) register and colon in parseRegister() 416 Parser.Lex(); // Eat register token. in tryParseRegisterOperand() 479 Parser.Lex(); in tryParseRelocExpression() 480 Parser.Lex(); // Eat modifier name and parenthesis in tryParseRelocExpression() 486 Parser.Lex(); // Eat gs modifier name in tryParseRelocExpression() 494 Parser.Lex(); in tryParseRelocExpression() 496 Parser.Lex(); // Eat the sign and parenthesis in tryParseRelocExpression() 506 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression() 511 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
H A D | SparcAsmParser.cpp | 862 Parser.Lex(); in tryParseRegister() 866 Parser.Lex(); in tryParseRegister() 925 Parser.Lex(); // Eat the comma or plus. in ParseInstruction() 937 Parser.Lex(); // Consume the EndOfStatement. in ParseInstruction() 1077 getParser().Lex(); // Eat '%' in parseTailRelocSym() 1093 Parser.Lex(); // Eat the identifier. in parseTailRelocSym() 1097 getParser().Lex(); // Eat '(' in parseTailRelocSym() 1121 Parser.Lex(); // Eat the '#'. in parseMembarTag() 1132 Parser.Lex(); // Eat the identifier token. in parseMembarTag() 1140 Parser.Lex(); // Eat the '|'. in parseMembarTag() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
H A D | X86AsmParser.cpp | 124 Parser.Lex(); in consumeToken() 1517 Parser.Lex(); // Eat percent token. in ParseRegister() 1538 Parser.Lex(); // Eat 'st' in ParseRegister() 1545 Parser.Lex(); in ParseRegister() 1568 Parser.Lex(); in ParseRegister() 1575 Parser.Lex(); // Eat ')' in ParseRegister() 1588 Parser.Lex(); // Eat identifier token. in ParseRegister() 1920 Lex(); in ParseIntelExpression() 2078 Lex(); // eat type in ParseIntelExpression() 2239 getLexer().Lex(); in ParseIntelInlineAsmIdentifier() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteMacros.cpp | 105 PP.Lex(PPTok); in RewriteMacrosInInput() 118 PP.Lex(PPTok); in RewriteMacrosInInput() 159 PP.Lex(PPTok); in RewriteMacrosInInput() 198 PP.Lex(PPTok); in RewriteMacrosInInput()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
H A D | WebAssemblyAsmParser.cpp | 351 Parser.Lex(); in isNext() 368 Parser.Lex(); in expectIdent() 378 Parser.Lex(); in parseRegTypeList() 393 Parser.Lex(); in parseSingleInteger() 406 Parser.Lex(); in parseSingleFloat() 428 Parser.Lex(); in parseSpecialFloatMaybe() 488 Parser.Lex(); in parseLimits() 498 Parser.Lex(); in parseLimits() 517 Parser.Lex(); in parseFunctionTableOperand() 555 Parser.Lex(); in ParseInstruction() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | PrintPreprocessedOutput.cpp | 868 PP.Lex(PragmaTok); in HandlePragma() 882 PP.Lex(PragmaTok); in HandlePragma() 916 PP.Lex(Tok); in PrintPreprocessedTokens() 919 PP.Lex(Tok); in PrintPreprocessedTokens() 925 PP.Lex(Tok); in PrintPreprocessedTokens() 933 PP.Lex(Tok); in PrintPreprocessedTokens() 945 PP.Lex(Tok); in PrintPreprocessedTokens() 951 PP.Lex(Tok); in PrintPreprocessedTokens() 987 PP.Lex(Tok); in PrintPreprocessedTokens() 1031 PP.Lex(Tok); in PrintPreprocessedTokens() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
H A D | BPFAsmParser.cpp | 369 getParser().Lex(); // Eat identifier token. in tryParseRegister() 383 getLexer().Lex(); in parseOperandAsOperator() 413 getLexer().Lex(); in parseOperandAsOperator() 429 getLexer().Lex(); in parseOperandAsOperator() 455 getLexer().Lex(); in parseRegister() 511 getLexer().Lex(); in ParseInstruction() 531 getParser().Lex(); in ParseInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/ |
H A D | MipsAsmParser.cpp | 6518 Parser.Lex(); in parseMemOperand() 6555 Parser.Lex(); in parseMemOperand() 6559 Parser.Lex(); in parseMemOperand() 6563 Parser.Lex(); in parseMemOperand() 6567 Parser.Lex(); in parseMemOperand() 6571 Parser.Lex(); in parseMemOperand() 6575 Parser.Lex(); in parseMemOperand() 6579 Parser.Lex(); in parseMemOperand() 6583 Parser.Lex(); in parseMemOperand() 6587 Parser.Lex(); in parseMemOperand() [all …]
|