Home
last modified time | relevance | path

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

1234

/freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp524 Lex.Lex(); in consume()
590 Lex.Lex(); in ParseClassID()
609 Lex.Lex(); in ParseMultiClassID()
728 Lex.Lex(); in ParseRangePiece()
2696 Lex.Lex(); in ParseDeclaration()
2749 Lex.Lex(); in ParseForeachDeclaration()
2938 Lex.Lex(); in ParseBody()
3105 Lex.Lex(); in ParseDefvar()
3321 Lex.Lex(); in ParseClass()
3403 Lex.Lex(); in ParseTopLevelLet()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp66 Lex.Lex(); in Run()
88 Lex.Lex(); in parseStandaloneConstantValue()
101 Lex.Lex(); in parseTypeAtBeginning()
409 Lex.Lex(); in parseModuleAsm()
450 Lex.Lex(); in parseSourceFileName()
515 Lex.Lex(); in parseDeclare()
538 Lex.Lex(); in parseDefine()
557 Lex.Lex(); in parseGlobalType()
625 Lex.Lex(); in parseNamedGlobal()
650 Lex.Lex(); in parseComdat()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp50 Lex.LexFromRawLexer(Tok); in getOffsetAfterTokenSequence()
51 return GetOffsetAfterSequence(SM, Lex, Tok); in getOffsetAfterTokenSequence()
59 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName() argument
67 Lex.LexFromRawLexer(Tok); in checkAndConsumeDirectiveWithName()
71 void skipComments(Lexer &Lex, Token &Tok) { in skipComments() argument
73 if (Lex.LexFromRawLexer(Tok)) in skipComments()
93 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
103 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
126 Lex.LexFromRawLexer(Tok); in checkAndConsumeInclusiveDirective()
131 if (Lex.LexFromRawLexer(Tok)) in checkAndConsumeInclusiveDirective()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp302 Lex(); in ParseDirectiveSymbolAttribute()
323 Lex(); in ParseSectionSwitch()
336 Lex(); in ParseSectionName()
424 Lex(); in ParseDirectiveDef()
436 Lex(); in ParseDirectiveScl()
449 Lex(); in ParseDirectiveType()
455 Lex(); in ParseDirectiveEndef()
484 Lex(); in ParseDirectiveSecRel32()
530 Lex(); in ParseDirectiveSafeSEH()
545 Lex(); in ParseDirectiveSecIdx()
[all …]
H A DELFAsmParser.cpp204 Lex(); in ParseDirectiveSymbolAttribute()
215 Lex(); in ParseSectionSwitch()
231 Lex(); in ParseDirectiveSize()
239 Lex(); in ParseDirectiveSize()
404 Lex(); in maybeParseSectionType()
425 Lex(); in parseMergeSize()
437 Lex(); in parseGroup()
462 Lex(); in parseLinkedToSym()
483 Lex(); in maybeParseUniqueID()
491 Lex(); in maybeParseUniqueID()
[all …]
H A DMCAsmParser.cpp50 Lex(); in parseEOL()
57 Lex(); in parseEOL()
66 Lex(); in parseToken()
74 Lex(); in parseIntToken()
111 getLexer().Lex(); in Error()
118 Lex(); in addErrorSuffix()
153 Lex(); // Eat the Tag in parseGNUAttribute()
154 Lex(); // Eat the comma in parseGNUAttribute()
158 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()
645 Lex(); in parseDirectiveLsym()
654 Lex(); in parseDirectiveLsym()
684 Lex(); in parseDirectiveSection()
[all …]
H A DWasmAsmParser.cpp77 Lex(); in isNext()
119 Lex(); in parseGroup()
122 Lex(); in parseGroup()
127 Lex(); in parseGroup()
170 Lex(); in parseSectionDirective()
230 Lex(); in parseDirectiveType()
247 Lex(); in parseDirectiveType()
258 Lex(); in ParseDirectiveIdent()
261 Lex(); in ParseDirectiveIdent()
289 Lex(); in ParseDirectiveSymbolAttribute()
[all …]
H A DAsmParser.cpp956 Lex(); in Run()
1115 Lex(); in parseParenExpr()
2408 Lex(); in parseCppHashLineFilenameComment()
2412 Lex(); in parseCppHashLineFilenameComment()
2908 Lex(); in handleMacroEntry()
2916 Lex(); in handleMacroExit()
3076 Lex(); in parseEscapedString()
3133 Lex(); in parseDirectiveReloc()
3259 Lex(); in parseRealValue()
3805 Lex(); in parseDirectiveCVInlineSiteId()
[all …]
H A DMasmParser.cpp1325 Lex(); in Run()
1522 Lex(); in parseParenExpr()
2803 Lex(); in parseCppHashLineFilenameComment()
2807 Lex(); in parseCppHashLineFilenameComment()
3307 Lex(); in handleMacroEntry()
3317 Lex(); in handleMacroExit()
3376 Lex(); in handleMacroInvocation()
3585 Lex(); in parseEscapedString()
3922 Lex(); in parseRealValue()
5179 Lex(); in parseDirectiveCVInlineSiteId()
[all …]
H A DCOFFMasmParser.cpp63 Lex(); in IgnoreDirective()
246 Lex(); in ParseSectionSwitch()
259 Lex(); in ParseDirectiveSegment()
290 Lex(); in ParseDirectiveSegmentEnd()
327 Lex(); in ParseDirectiveProc()
330 Lex(); in ParseDirectiveProc()
344 Lex(); in ParseDirectiveProc()
H A DMCAsmParserExtension.cpp33 Lex(); in ParseDirectiveCGProfile()
42 Lex(); in ParseDirectiveCGProfile()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h89 LLLexer Lex; variable
187 Lex.Lex(); in EatIfPresent()
195 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
196 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
197 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
198 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
199 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
202 Lex.Lex(); in EatFastMathFlagsIfPresent()
204 case lltok::kw_reassoc: FMF.setAllowReassoc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
205 case lltok::kw_afn: FMF.setApproxFunc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParsePragma.cpp1797 PP.Lex(Tok); in HandlePragma()
1807 PP.Lex(Tok); in HandlePragma()
1881 PP.Lex(Tok); in HandlePragma()
1912 PP.Lex(Tok); in HandlePragma()
2014 PP.Lex(Tok); in ParseAlignPragma()
2026 PP.Lex(Tok); in ParseAlignPragma()
2062 PP.Lex(Tok); in ParseAlignPragma()
2102 PP.Lex(Tok); in HandlePragma()
2144 PP.Lex(Tok); in HandlePragma()
2182 PP.Lex(Tok); in HandlePragma()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DPragma.cpp242 Lex(Tok); in Handle_Pragma()
551 Lex(Tok); in HandlePragmaIncludeInstead()
563 Lex(Tok); in HandlePragmaIncludeInstead()
608 Lex(Tok); in ParsePragmaPushOrPopMacro()
616 Lex(Tok); in ParsePragmaPushOrPopMacro()
632 Lex(Tok); in ParsePragmaPushOrPopMacro()
723 Lex(Tok); in HandlePragmaIncludeAlias()
745 Lex(Tok); in HandlePragmaIncludeAlias()
764 Lex(Tok); in HandlePragmaIncludeAlias()
913 Lex(Tok); in HandlePragmaHdrstop()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DFormatTokenLexer.cpp38 Lex->SetKeepWhitespaceMode(true);
522 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral()
524 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral()
579 for (; Offset != Lex->getBuffer().end(); ++Offset) { in handleCSharpVerbatimAndInterpolatedStrings()
591 if (Offset == Lex->getBuffer().end()) in handleCSharpVerbatimAndInterpolatedStrings()
614 SourceLocation loc = Offset < Lex->getBuffer().end() in handleCSharpVerbatimAndInterpolatedStrings()
642 const char *Offset = Lex->getBufferLocation(); in handleTemplateStrings()
697 To = Lex->getBuffer().size(); in tryParsePythonComment()
702 SourceLocation Loc = To < Lex->getBuffer().size() in tryParsePythonComment()
1039 Lex->LexFromRawLexer(Tok.Tok); in readRawToken()
[all …]
H A DTokenAnalyzer.cpp69 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process() local
73 ArrayRef<FormatToken *> Toks(Lex.lex()); in process()
75 UnwrappedLineParser Parser(Style, Lex.getKeywords(), in process()
84 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process()
91 analyze(Annotator, AnnotatedLines, Lex); in process()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp370 Parser.Lex(); in parseRegister()
397 Parser.Lex(); // Eat register token. in tryParseRegisterOperand()
453 Parser.Lex(); in tryParseRelocExpression()
467 Parser.Lex(); in tryParseRelocExpression()
482 Parser.Lex(); in tryParseRelocExpression()
494 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
499 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
546 Parser.Lex(); // Eat the token. in parseOperand()
571 Parser.Lex(); // Eat register token. in parseMemriOperand()
610 Parser.Lex(); in eatComma()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp319 getLexer().Lex(); // eat register token in tryParseRegister()
364 getLexer().Lex(); // Eat '$' in parseJccInstruction()
385 getParser().Lex(); // Consume the EndOfStatement. in parseJccInstruction()
412 getLexer().Lex(); // Eat ',' in ParseInstruction()
423 getParser().Lex(); // Consume the EndOfStatement. in ParseInstruction()
475 getLexer().Lex(); // Eat '(' in ParseOperand()
482 getLexer().Lex(); // Eat ')' in ParseOperand()
493 getLexer().Lex(); // Eat '&' in ParseOperand()
506 getLexer().Lex(); // Eat '@' in ParseOperand()
513 getLexer().Lex(); // Eat '+' in ParseOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp403 getParser().Lex(); // Eat identifier token. in ParseRegister()
424 getLexer().Lex(); in parseRegister()
437 auto Tok = getParser().Lex(); // Eat '(' in parseBaseRegImm()
450 getParser().Lex(); // Eat ',' in parseBaseRegImm()
460 getParser().Lex(); // Eat '<<' in parseBaseRegImm()
479 getParser().Lex(); // Eat ')' in parseBaseRegImm()
578 getLexer().Lex(); // Eat '['. in parseConstpoolSymbol()
590 getLexer().Lex(); // Eat ']'. in parseConstpoolSymbol()
615 getLexer().Lex(); in ParseInstruction()
628 getParser().Lex(); // Consume the EndOfStatement. in ParseInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp351 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()
555 Parser.Lex(); in ParseInstruction()
562 Parser.Lex(); in ParseInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp540 PercentToken = Lex(); in parseRegister()
560 Parser.Lex(); in parseRegister()
601 Parser.Lex(); in parseImm()
636 Parser.Lex(); in parseMemOp()
657 Parser.Lex(); in parseMemOp()
674 Parser.Lex(); in parseMemOp()
690 Parser.Lex(); in parseMemOp()
713 Parser.Lex(); in parseMemOp()
717 Parser.Lex(); in parseMemOp()
748 Parser.Lex(); in eatComma()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp111 Parser.Lex(); in consumeToken()
1513 Parser.Lex(); in ParseRegister()
1536 Parser.Lex(); in ParseRegister()
1881 Lex(); in ParseIntelExpression()
2312 Lex(); in ParseIntelDotOperator()
2623 Parser.Lex(); in ParseATTOperand()
3397 Parser.Lex(); in ParseInstruction()
4736 Parser.Lex(); in ParseDirectiveCode()
4743 Parser.Lex(); in ParseDirectiveCode()
4750 Parser.Lex(); in ParseDirectiveCode()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp683 PP.Lex(PragmaTok); in HandlePragma()
702 PP.Lex(PragmaTok); in HandlePragma()
750 PP.Lex(Tok); in PrintPreprocessedTokens()
755 PP.Lex(Tok); in PrintPreprocessedTokens()
766 PP.Lex(Tok); in PrintPreprocessedTokens()
771 PP.Lex(Tok); in PrintPreprocessedTokens()
785 PP.Lex(Tok); in PrintPreprocessedTokens()
816 PP.Lex(Tok); in PrintPreprocessedTokens()
834 do PP.Lex(Tok); in DoPrintMacros()
916 PP.Lex(Tok); in DoPrintPreprocessedInput()

1234