Searched refs:Lex (Results 1 - 25 of 76) sorted by relevance

1234

/freebsd-13-stable/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp65 Lex.Lex();
69 Lex.getLoc(),
87 Lex.Lex();
92 if (Lex.getKind() != lltok::Eof)
93 return Error(Lex.getLoc(), "expected end of string");
100 Lex.Lex();
103 SMLoc Start = Lex
[all...]
H A DLLParser.h89 LLLexer Lex; member in class:llvm::LLParser
166 : Context(Context), Lex(F, SM, Err, Context), M(M), Index(Index),
182 return Lex.Error(L, Msg);
185 return Error(Lex.getLoc(), Msg);
206 if (Lex.getKind() != T) return false;
207 Lex.Lex();
214 switch (Lex.getKind()) {
215 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continu
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp492 if (Lex.getCode() == K) {
493 Lex.Lex();
506 switch (Lex.getCode()) {
544 if (Lex.getCode() != tgtok::Id) {
549 Record *Result = Records.getClass(Lex.getCurStrVal());
551 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'");
552 if (MultiClasses[Lex.getCurStrVal()].get())
554 Lex.getCurStrVal() + "'");
559 Lex
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp12 #include "clang/Lex/Lexer.h"
45 Lexer Lex(SM.getMainFileID(), SM.getBuffer(SM.getMainFileID()), SM,
49 Lex.LexFromRawLexer(Tok);
50 return GetOffsetAfterSequence(SM, Lex, Tok);
58 Lexer &Lex, StringRef Name, Token &Tok,
60 bool Matched = Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) &&
62 Tok.getRawIdentifier() == Name && !Lex.LexFromRawLexer(Tok) &&
66 Lex.LexFromRawLexer(Tok);
70 void skipComments(Lexer &Lex, Token &Tok) { argument
72 if (Lex
57 checkAndConsumeDirectiveWithName( Lexer &Lex, StringRef Name, Token &Tok, llvm::Optional<StringRef> RawIDName = llvm::None) argument
122 checkAndConsumeInclusiveDirective(Lexer &Lex, Token &Tok) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessorLexer.cpp13 #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 DPragma.cpp14 #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 DPPCaching.cpp14 #include "clang/Lex/Preprocessor.h"
63 Lex(Result);
110 Lex(CachedTokens.back());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMCAsmParser.cpp50 Lex();
59 Lex();
67 Lex();
104 getLexer().Lex();
111 Lex();
H A DCOFFAsmParser.cpp296 Lex();
300 Lex();
321 Lex();
334 Lex();
364 Lex();
370 Lex();
380 Lex();
393 Lex();
422 Lex();
434 Lex();
[all...]
H A DELFAsmParser.cpp194 Lex();
198 Lex();
209 Lex();
225 Lex();
233 Lex();
247 Lex();
260 Lex();
263 Lex();
266 Lex();
343 Lex(); // Ea
[all...]
H A DDarwinAsmParser.cpp478 Lex();
516 Lex();
532 Lex();
541 Lex();
578 Lex();
591 Lex();
596 Lex();
625 Lex();
644 Lex();
653 Lex();
[all...]
H A DMCAsmParserExtension.cpp33 Lex();
42 Lex();
H A DWasmAsmParser.cpp77 Lex();
145 Lex();
185 Lex();
198 Lex();
209 Lex();
212 Lex();
240 Lex();
243 Lex();
H A DCOFFMasmParser.cpp58 Lex();
267 Lex();
280 Lex();
311 Lex();
348 Lex();
351 Lex();
H A DAsmParser.cpp227 const AsmToken &Lex() override;
325 /// current token is not set; clients should ensure Lex() is called
826 const AsmToken &AsmParser::Lex() { function in class:AsmParser
838 const AsmToken *tok = &Lexer.Lex();
844 tok = &Lexer.Lex();
853 return Lex();
890 Lex();
918 // for printing ErrMsg via Lex() only if no (presumably better) parser error
921 Lex();
1008 Lexer.Lex();
[all...]
H A DMasmParser.cpp481 const AsmToken &Lex() override;
578 /// current token is not set; clients should ensure Lex() is called
1060 const AsmToken &MasmParser::Lex() { function in class:MasmParser
1072 const AsmToken *tok = &Lexer.Lex();
1086 tok = &Lexer.Lex();
1096 tok = &Lexer.Lex();
1105 return Lex();
1142 Lex();
1170 // for printing ErrMsg via Lex() only if no (presumably better) parser error
1173 Lex();
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/
H A DTokenAnalyzer.cpp69 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(),
73 ArrayRef<FormatToken *> Toks(Lex.lex());
75 UnwrappedLineParser Parser(Style, Lex.getKeywords(),
84 TokenAnnotator Annotator(Style, Lex.getKeywords());
91 analyze(Annotator, AnnotatedLines, Lex);
H A DFormatTokenLexer.cpp1 //===--- FormatTokenLexer.cpp - Lex FormatTokens -------------*- C++ ----*-===//
36 Lex.reset(new Lexer(ID, SourceMgr.getBuffer(ID), SourceMgr,
38 Lex->SetKeepWhitespaceMode(true);
523 const char *Offset = Lex->getBufferLocation();
525 StringRef Buffer = Lex->getBuffer();
556 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset)));
571 Lex->getBufferLocation() - CSharpStringLiteral->TokenText.size();
580 for (; Offset != Lex->getBuffer().end(); ++Offset) {
583 if (Offset + 1 < Lex->getBuffer().end() && Offset[1] == '"')
592 if (Offset == Lex
[all...]
H A DFormatTokenLexer.h104 std::unique_ptr<Lexer> Lex; member in class:clang::format::FormatTokenLexer
/freebsd-13-stable/contrib/llvm-project/clang/lib/Parse/
H A DParsePragma.cpp16 #include "clang/Lex/Preprocessor.h"
804 PP.Lex(Tok); // pragma kind
821 PP.Lex(Tok);
822 PP.Lex(Tok);
832 PP.Lex(Tok); // (
851 PP.Lex(Tok); // ,
856 PP.Lex(Tok); // long/short
886 PP.Lex(Tok); // Identifier
896 PP.Lex(Tok); // )
902 PP.Lex(To
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp16 #include "clang/Lex/Preprocessor.h"
105 PP.Lex(PPTok);
118 PP.Lex(PPTok);
159 PP.Lex(PPTok);
198 PP.Lex(PPTok);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCAsmParserExtension.h86 const AsmToken &Lex() { return getParser().Lex(); } function in class:llvm::MCAsmParserExtension
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp320 getLexer().Lex(); // eat register token
365 getLexer().Lex(); // Eat '$'
386 getParser().Lex(); // Consume the EndOfStatement.
413 getLexer().Lex(); // Eat ','
424 getParser().Lex(); // Consume the EndOfStatement.
476 getLexer().Lex(); // Eat '('
483 getLexer().Lex(); // Eat ')'
494 getLexer().Lex(); // Eat '&'
507 getLexer().Lex(); // Eat '@'
514 getLexer().Lex(); // Ea
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp371 Parser.Lex();
373 Parser.Lex(); // Eat high (odd) register and colon
398 Parser.Lex(); // Eat register token.
454 Parser.Lex();
468 Parser.Lex();
469 Parser.Lex(); // Eat modifier name and parenthesis
475 Parser.Lex(); // Eat gs modifier name
483 Parser.Lex();
485 Parser.Lex(); // Eat the sign and parenthesis
495 Parser.Lex(); // Ea
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp342 getParser().Lex(); // Eat identifier token.
357 getLexer().Lex();
387 getLexer().Lex();
403 getLexer().Lex();
429 getLexer().Lex();
500 getParser().Lex();

Completed in 205 milliseconds

1234