/freebsd-11-stable/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | TGParser.cpp | 497 switch (Lex.getCode()) { 535 if (Lex.getCode() != tgtok::Id) { 540 Record *Result = Records.getClass(Lex.getCurStrVal()); 542 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'"); 543 if (MultiClasses[Lex.getCurStrVal()].get()) 545 Lex.getCurStrVal() + "'"); 550 Lex.Lex(); 560 if (Lex.getCode() != tgtok::Id) { 565 MultiClass *Result = MultiClasses[Lex [all...] |
H A D | TGParser.h | 132 TGLexer Lex; member in class:llvm::TGParser 167 : Lex(SM, Macros), CurMultiClass(nullptr), Records(records) {} 178 return Error(Lex.getLoc(), Msg); 181 return Lex.getDependencies();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 66 Lex.Lex(); 70 Lex.getLoc(), 80 Lex.Lex(); 85 if (Lex.getKind() != lltok::Eof) 86 return Error(Lex.getLoc(), "expected end of string"); 93 Lex.Lex(); 96 SMLoc Start = Lex [all...] |
H A D | LLParser.h | 92 LLLexer Lex; member in class:llvm::LLParser 173 : Context(Context), Lex(F, SM, Err, Context), M(M), Index(Index), 191 return Lex.Error(L, Msg); 194 return Error(Lex.getLoc(), Msg); 215 if (Lex.getKind() != T) return false; 216 Lex.Lex(); 223 switch (Lex.getKind()) { 224 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continu [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
H A D | HeaderIncludes.cpp | 11 #include "clang/Lex/Lexer.h" 44 Lexer Lex(SM.getMainFileID(), SM.getBuffer(SM.getMainFileID()), SM, 48 Lex.LexFromRawLexer(Tok); 49 return GetOffsetAfterSequence(SM, Lex, Tok); 57 Lexer &Lex, StringRef Name, Token &Tok, 59 bool Matched = Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) && 61 Tok.getRawIdentifier() == Name && !Lex.LexFromRawLexer(Tok) && 65 Lex.LexFromRawLexer(Tok); 69 void skipComments(Lexer &Lex, Token &Tok) { argument 71 if (Lex 56 checkAndConsumeDirectiveWithName( Lexer &Lex, StringRef Name, Token &Tok, llvm::Optional<StringRef> RawIDName = llvm::None) argument 121 checkAndConsumeInclusiveDirective(Lexer &Lex, Token &Tok) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | PreprocessorLexer.cpp | 13 #include "clang/Lex/PreprocessorLexer.h" 15 #include "clang/Lex/LexDiagnostic.h" 16 #include "clang/Lex/Preprocessor.h" 17 #include "clang/Lex/Token.h" 38 // Lex the filename. 42 PP->Lex(FilenameTok);
|
H A D | Pragma.cpp | 14 #include "clang/Lex/Pragma.h" 24 #include "clang/Lex/HeaderSearch.h" 25 #include "clang/Lex/LexDiagnostic.h" 26 #include "clang/Lex/Lexer.h" 27 #include "clang/Lex/LiteralSupport.h" 28 #include "clang/Lex/MacroInfo.h" 29 #include "clang/Lex/ModuleLoader.h" 30 #include "clang/Lex/PPCallbacks.h" 31 #include "clang/Lex/Preprocessor.h" 32 #include "clang/Lex/PreprocessorLexe [all...] |
H A D | PPCaching.cpp | 14 #include "clang/Lex/Preprocessor.h" 63 Lex(Result); 110 Lex(CachedTokens.back());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | MCAsmParser.cpp | 45 Lex(); 54 Lex(); 62 Lex(); 99 getLexer().Lex(); 106 Lex();
|
H A D | COFFAsmParser.cpp | 294 Lex(); 298 Lex(); 315 Lex(); 328 Lex(); 358 Lex(); 364 Lex(); 374 Lex(); 387 Lex(); 416 Lex(); 428 Lex(); [all...] |
H A D | ELFAsmParser.cpp | 194 Lex(); 198 Lex(); 209 Lex(); 225 Lex(); 233 Lex(); 247 Lex(); 260 Lex(); 263 Lex(); 266 Lex(); 343 Lex(); // Ea [all...] |
H A D | DarwinAsmParser.cpp | 478 Lex(); 516 Lex(); 532 Lex(); 541 Lex(); 578 Lex(); 591 Lex(); 596 Lex(); 625 Lex(); 644 Lex(); 653 Lex(); [all...] |
H A D | WasmAsmParser.cpp | 77 Lex(); 145 Lex(); 185 Lex(); 198 Lex(); 209 Lex(); 212 Lex(); 240 Lex(); 243 Lex();
|
H A D | AsmParser.cpp | 229 const AsmToken &Lex() override; 327 /// current token is not set; clients should ensure Lex() is called 827 const AsmToken &AsmParser::Lex() { function in class:AsmParser 839 const AsmToken *tok = &Lexer.Lex(); 845 tok = &Lexer.Lex(); 854 return Lex(); 891 Lex(); 919 // for printing ErrMsg via Lex() only if no (presumably better) parser error 922 Lex(); 1009 Lexer.Lex(); [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParsePragma.cpp | 16 #include "clang/Lex/Preprocessor.h" 752 PP.Lex(Tok); // pragma kind 769 PP.Lex(Tok); 770 PP.Lex(Tok); 780 PP.Lex(Tok); // ( 799 PP.Lex(Tok); // , 804 PP.Lex(Tok); // long/short 834 PP.Lex(Tok); // Identifier 844 PP.Lex(Tok); // ) 850 PP.Lex(To [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteMacros.cpp | 16 #include "clang/Lex/Preprocessor.h" 105 PP.Lex(PPTok); 118 PP.Lex(PPTok); 159 PP.Lex(PPTok); 198 PP.Lex(PPTok);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/ |
H A D | FormatTokenLexer.cpp | 1 //===--- FormatTokenLexer.cpp - Lex FormatTokens -------------*- C++ ----*-===// 34 Lex.reset(new Lexer(ID, SourceMgr.getBuffer(ID), SourceMgr, 36 Lex->SetKeepWhitespaceMode(true); 394 const char *Offset = Lex->getBufferLocation(); 396 StringRef Buffer = Lex->getBuffer(); 427 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); 452 const char *Offset = Lex->getBufferLocation(); 454 for (; Offset != Lex->getBuffer().end(); ++Offset) { 461 } else if (Offset + 1 < Lex->getBuffer().end() && Offset[0] == '$' && 491 SourceLocation loc = Offset < Lex [all...] |
H A D | FormatTokenLexer.h | 97 std::unique_ptr<Lexer> Lex; member in class:clang::format::FormatTokenLexer
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmParserExtension.h | 86 const AsmToken &Lex() { return getParser().Lex(); } function in class:llvm::MCAsmParserExtension
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/ |
H A D | MSP430AsmParser.cpp | 303 getLexer().Lex(); // eat register token 348 getLexer().Lex(); // Eat '$' 369 getParser().Lex(); // Consume the EndOfStatement. 396 getLexer().Lex(); // Eat ',' 407 getParser().Lex(); // Consume the EndOfStatement. 459 getLexer().Lex(); // Eat '(' 466 getLexer().Lex(); // Eat ')' 477 getLexer().Lex(); // Eat '&' 490 getLexer().Lex(); // Eat '@' 497 getLexer().Lex(); // Ea [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
H A D | AVRAsmParser.cpp | 368 Parser.Lex(); 369 Parser.Lex(); // Eat high (odd) register and colon 390 Parser.Lex(); // Eat register token. 446 Parser.Lex(); 460 Parser.Lex(); 461 Parser.Lex(); // Eat modifier name and parenthesis 467 Parser.Lex(); // Eat gs modifier name 475 Parser.Lex(); 477 Parser.Lex(); // Eat the sign and parenthesis 487 Parser.Lex(); // Ea [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
H A D | SparcAsmParser.cpp | 639 Parser.Lex(); 642 Parser.Lex(); 681 Parser.Lex(); // Eat the comma or plus. 693 Parser.Lex(); // Consume the EndOfStatement. 737 Parser.Lex(); // Eat the '+' 771 Parser.Lex(); // Eat the '#'. 782 Parser.Lex(); // Eat the identifier token. 792 Parser.Lex(); // Eat the '|'. 816 Parser.Lex(); // Eat the [ 822 Parser.Lex(); // ea [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
H A D | BPFAsmParser.cpp | 332 getParser().Lex(); // Eat identifier token. 347 getLexer().Lex(); 377 getLexer().Lex(); 393 getLexer().Lex(); 419 getLexer().Lex(); 490 getParser().Lex();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
H A D | X86AsmParser.cpp | 88 Parser.Lex(); 1142 Parser.Lex(); // Eat percent token. 1176 Parser.Lex(); // Eat register name. 1185 Parser.Lex(); // Eat 'st' 1190 // Lex the paren. 1191 getParser().Lex(); 1208 if (getParser().Lex().isNot(AsmToken::RParen)) 1212 Parser.Lex(); // Eat ')' 1247 Parser.Lex(); // Eat it. 1258 Parser.Lex(); // Ea [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | TokenLexer.h | 1 //===- TokenLexer.h - Lex from a token buffer -------------------*- C++ -*-===// 56 /// This is the index of the next token that Lex will return. 147 /// Lex and return a token from this macro stream. 148 bool Lex(Token &Tok);
|