Home
last modified time | relevance | path

Searched refs:Lex (Results 1 – 25 of 188) sorted by relevance

12345678

/openbsd-src/gnu/llvm/llvm/lib/TableGen/
H A DTGParser.cpp523 if (Lex.getCode() == K) { in consume()
524 Lex.Lex(); in consume()
537 switch (Lex.getCode()) { in ParseObjectName()
575 if (Lex.getCode() != tgtok::Id) { in ParseClassID()
580 Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID()
582 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID()
583 if (MultiClasses[Lex.getCurStrVal()].get()) in ParseClassID()
585 Lex.getCurStrVal() + "'"); in ParseClassID()
589 Result->appendReferenceLoc(Lex.getLocRange()); in ParseClassID()
592 Lex.Lex(); in ParseClassID()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/AsmParser/
H A DLLParser.cpp68 Lex.Lex(); in Run()
72 Lex.getLoc(), in Run()
87 Lex.Lex(); in parseStandaloneConstantValue()
92 if (Lex.getKind() != lltok::Eof) in parseStandaloneConstantValue()
93 return error(Lex.getLoc(), "expected end of string"); in parseStandaloneConstantValue()
100 Lex.Lex(); in parseTypeAtBeginning()
103 SMLoc Start = Lex.getLoc(); in parseTypeAtBeginning()
107 SMLoc End = Lex.getLoc(); in parseTypeAtBeginning()
341 switch (Lex.getKind()) { in parseTargetDefinitions()
372 switch (Lex.getKind()) { in parseTopLevelEntities()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp47 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 …]
/openbsd-src/gnu/llvm/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp302 Lex(); in ParseDirectiveSymbolAttribute()
306 Lex(); in ParseDirectiveSymbolAttribute()
327 Lex(); in ParseSectionSwitch()
340 Lex(); in ParseSectionName()
370 Lex(); in ParseDirectiveSection()
376 Lex(); in ParseDirectiveSection()
386 Lex(); in ParseDirectiveSection()
399 Lex(); in ParseDirectiveSection()
428 Lex(); in ParseDirectiveDef()
440 Lex(); in ParseDirectiveScl()
[all …]
H A DELFAsmParser.cpp198 Lex(); in ParseDirectiveSymbolAttribute()
202 Lex(); in ParseDirectiveSymbolAttribute()
213 Lex(); in ParseSectionSwitch()
229 Lex(); in ParseDirectiveSize()
237 Lex(); in ParseDirectiveSize()
251 Lex(); in ParseSectionName()
264 Lex(); in ParseSectionName()
267 Lex(); in ParseSectionName()
270 Lex(); in ParseSectionName()
354 Lex(); // Eat the #. in parseSunStyleSectionFlags()
[all …]
H A DMCAsmParser.cpp52 Lex(); in parseEOL()
59 Lex(); in parseEOL()
68 Lex(); in parseToken()
76 Lex(); in parseIntToken()
113 getLexer().Lex(); in Error()
120 Lex(); in addErrorSuffix()
155 Lex(); // Eat the Tag in parseGNUAttribute()
156 Lex(); // Eat the comma in parseGNUAttribute()
160 Lex(); // Eat the IntegerValue in parseGNUAttribute()
H A DDarwinAsmParser.cpp479 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 DWasmAsmParser.cpp79 Lex(); in isNext()
127 Lex(); in parseGroup()
130 Lex(); in parseGroup()
135 Lex(); in parseGroup()
178 Lex(); in parseSectionDirective()
243 Lex(); in parseDirectiveType()
260 Lex(); in parseDirectiveType()
271 Lex(); in ParseDirectiveIdent()
274 Lex(); in ParseDirectiveIdent()
302 Lex(); in ParseDirectiveSymbolAttribute()
[all …]
H A DAsmParser.cpp246 const AsmToken &Lex() override;
730 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()
1011 Lex(); in Run()
1101 Lexer.Lex(); in eatToEndOfStatement()
1105 Lexer.Lex(); in eatToEndOfStatement()
[all …]
H A DMasmParser.cpp518 const AsmToken &Lex(ExpandKind ExpandNextToken);
519 const AsmToken &Lex() override { return Lex(ExpandMacros); } in Lex() function in __anoncc01912d0111::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 DCOFFMasmParser.cpp59 Lex(); in IgnoreDirective()
232 Lex(); in ParseSectionSwitch()
247 Lex(); in ParseDirectiveSegment()
278 Lex(); in ParseDirectiveSegment()
316 Lex(); in ParseDirectiveSegment()
385 Lex(); in ParseDirectiveSegmentEnd()
459 Lex(); in ParseDirectiveProc()
462 Lex(); in ParseDirectiveProc()
476 Lex(); in ParseDirectiveProc()
/openbsd-src/gnu/llvm/llvm/include/llvm/AsmParser/
H A DLLParser.h102 LLLexer Lex; variable
179 Lex(F, SM, Err, Context), M(M), Index(Index), Slots(Slots), in Context()
195 bool error(LocTy L, const Twine &Msg) const { return Lex.Error(L, Msg); } in error()
196 bool tokError(const Twine &Msg) const { return error(Lex.getLoc(), Msg); } in tokError()
215 if (Lex.getKind() != T) return false; in EatIfPresent()
216 Lex.Lex(); in EatIfPresent()
223 switch (Lex.getKind()) { in EatFastMathFlagsIfPresent()
224 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
225 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
226 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParsePragma.cpp272 PP.Lex(Tok); in HandlePragma()
278 PP.Lex(Tok); // Consume the l_paren. in HandlePragma()
287 PP.Lex(Tok); in HandlePragma()
290 PP.Lex(Tok); in HandlePragma()
300 PP.Lex(Tok); // Consume the r_paren. in HandlePragma()
932 PP.Lex(Tok); // pragma kind in HandlePragmaMSPragma()
954 PP.Lex(Tok); in HandlePragmaMSPragma()
955 PP.Lex(Tok); in HandlePragmaMSPragma()
965 PP.Lex(Tok); // ( in HandlePragmaMSSection()
984 PP.Lex(Tok); // , in HandlePragmaMSSection()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DPragma.cpp144 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()
342 return Lex(Tok); in Handle_Pragma()
402 return Lex(Tok); in HandleMicrosoft__pragma()
546 Lex(DependencyTok); in HandlePragmaDependency()
549 Lex(DependencyTok); in HandlePragmaDependency()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp385 Parser.Lex(); in parseRegister()
387 Parser.Lex(); // Eat high (odd) register and colon in parseRegister()
417 Parser.Lex(); // Eat register token. in tryParseRegisterOperand()
475 Parser.Lex(); in tryParseRelocExpression()
476 Parser.Lex(); // Eat modifier name and parenthesis in tryParseRelocExpression()
482 Parser.Lex(); // Eat gs modifier name in tryParseRelocExpression()
490 Parser.Lex(); in tryParseRelocExpression()
492 Parser.Lex(); // Eat the sign and parenthesis in tryParseRelocExpression()
502 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
507 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Format/
H A DFormatTokenLexer.cpp37 Lex.reset(new Lexer(ID, SourceMgr.getBufferOrFake(ID), SourceMgr, LangOpts));
38 Lex->SetKeepWhitespaceMode(true);
579 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral()
581 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral()
612 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral()
697 const char *StrBegin = Lex->getBufferLocation() - TokenText.size(); in handleCSharpVerbatimAndInterpolatedStrings()
704 const auto End = Lex->getBuffer().end(); in handleCSharpVerbatimAndInterpolatedStrings()
733 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset + 1))); in handleCSharpVerbatimAndInterpolatedStrings()
758 const char *Offset = Lex->getBufferLocation(); in handleTemplateStrings()
760 for (; Offset != Lex->getBuffer().end(); ++Offset) { in handleTemplateStrings()
[all …]
H A DTokenAnalyzer.cpp105 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process() local
109 ArrayRef<FormatToken *> Toks(Lex.lex()); in process()
111 UnwrappedLineParser Parser(Style, Lex.getKeywords(), in process()
122 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process()
130 analyze(Annotator, AnnotatedLines, Lex); in process()
/openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp322 getLexer().Lex(); // eat register token in tryParseRegister()
367 getLexer().Lex(); // Eat '$' in parseJccInstruction()
388 getParser().Lex(); // Consume the EndOfStatement. in parseJccInstruction()
415 getLexer().Lex(); // Eat ',' in ParseInstruction()
426 getParser().Lex(); // Consume the EndOfStatement. in ParseInstruction()
478 getLexer().Lex(); // Eat '(' in ParseOperand()
485 getLexer().Lex(); // Eat ')' in ParseOperand()
496 getLexer().Lex(); // Eat '&' in ParseOperand()
509 getLexer().Lex(); // Eat '@' in ParseOperand()
516 getLexer().Lex(); // Eat '+' in ParseOperand()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp1020 getParser().Lex(); // Eat identifier token. in parseRegister()
1041 getLexer().Lex(); in parseRegister()
1054 auto Tok = getParser().Lex(); // Eat '(' in parseBaseRegImm()
1064 getParser().Lex(); // Eat ')' in parseBaseRegImm()
1073 getParser().Lex(); // Eat ',' in parseBaseRegImm()
1083 getParser().Lex(); // Eat '<<' in parseBaseRegImm()
1102 getParser().Lex(); // Eat ')' in parseBaseRegImm()
1239 getLexer().Lex(); // eat + or - in parseCSKYSymbol()
1259 getLexer().Lex(); // Eat '['. in parseDataSymbol()
1273 getLexer().Lex(); // Eat ']'. in parseDataSymbol()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp105 PP.Lex(PPTok); in RewriteMacrosInInput()
118 PP.Lex(PPTok); in RewriteMacrosInInput()
159 PP.Lex(PPTok); in RewriteMacrosInInput()
198 PP.Lex(PPTok); in RewriteMacrosInInput()
/openbsd-src/gnu/llvm/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/
H A DBUILD.gn7 "//clang/lib/Lex",
17 "Lex.cpp",
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp354 Parser.Lex(); in isNext()
371 Parser.Lex(); in expectIdent()
381 Parser.Lex(); in parseRegTypeList()
396 Parser.Lex(); in parseSingleInteger()
409 Parser.Lex(); in parseSingleFloat()
431 Parser.Lex(); in parseSpecialFloatMaybe()
491 Parser.Lex(); in parseLimits()
501 Parser.Lex(); in parseLimits()
520 Parser.Lex(); in parseFunctionTableOperand()
558 Parser.Lex(); in ParseInstruction()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp635 PercentToken = Lex(); in parseRegister()
655 Parser.Lex(); in parseRegister()
696 Parser.Lex(); in parseImm()
724 Parser.Lex(); in parseMemOp()
745 Parser.Lex(); in parseMemOp()
762 Parser.Lex(); in parseMemOp()
778 Parser.Lex(); in parseMemOp()
801 Parser.Lex(); in parseMemOp()
805 Parser.Lex(); in parseMemOp()
856 getLexer().Lex(); in parseRegOrMoveMask()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp771 PP.Lex(PragmaTok); in HandlePragma()
785 PP.Lex(PragmaTok); in HandlePragma()
820 PP.Lex(Tok); in PrintPreprocessedTokens()
826 PP.Lex(Tok); in PrintPreprocessedTokens()
834 PP.Lex(Tok); in PrintPreprocessedTokens()
846 PP.Lex(Tok); in PrintPreprocessedTokens()
852 PP.Lex(Tok); in PrintPreprocessedTokens()
867 PP.Lex(Tok); in PrintPreprocessedTokens()
911 PP.Lex(Tok); in PrintPreprocessedTokens()
929 do PP.Lex(Tok); in DoPrintMacros()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp112 Parser.Lex(); in consumeToken()
1503 Parser.Lex(); // Eat percent token. in ParseRegister()
1524 Parser.Lex(); // Eat 'st' in ParseRegister()
1531 Parser.Lex(); in ParseRegister()
1554 Parser.Lex(); in ParseRegister()
1561 Parser.Lex(); // Eat ')' in ParseRegister()
1574 Parser.Lex(); // Eat identifier token. in ParseRegister()
1914 Lex(); in ParseIntelExpression()
2072 Lex(); // eat type in ParseIntelExpression()
2233 getLexer().Lex(); in ParseIntelInlineAsmIdentifier()
[all …]

12345678