Home
last modified time | relevance | path

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

12345678

/llvm-project-15.0.7/llvm/lib/TableGen/
H A DTGParser.cpp525 Lex.Lex(); in consume()
591 Lex.Lex(); in ParseClassID()
610 Lex.Lex(); in ParseMultiClassID()
729 Lex.Lex(); in ParseRangePiece()
818 Lex.Lex(); in ParseType()
821 Lex.Lex(); in ParseType()
824 Lex.Lex(); in ParseType()
827 Lex.Lex(); in ParseType()
2755 Lex.Lex(); in ParseDeclaration()
2808 Lex.Lex(); in ParseForeachDeclaration()
[all …]
/llvm-project-15.0.7/llvm/lib/AsmParser/
H A DLLParser.cpp88 Lex.Lex(); in Run()
110 Lex.Lex(); in parseStandaloneConstantValue()
123 Lex.Lex(); in parseTypeAtBeginning()
430 Lex.Lex(); in parseModuleAsm()
476 Lex.Lex(); in parseSourceFileName()
541 Lex.Lex(); in parseDeclare()
564 Lex.Lex(); in parseDefine()
583 Lex.Lex(); in parseGlobalType()
654 Lex.Lex(); in parseNamedGlobal()
682 Lex.Lex(); in parseComdat()
[all …]
/llvm-project-15.0.7/clang/unittests/Format/
H A DMacroCallReconstructorTest.cpp28 Expansion(TestLexer &Lex, MacroExpander &Macros) : Lex(Lex), Macros(Macros) {} in Expansion() argument
81 TestLexer &Lex; member in clang::format::__anon35b0f3090111::Expansion
100 : Tokens(Tokens), It(this->Tokens.begin()), Lex(Lex) {} in Matcher()
116 TestLexer &Lex; member
138 Lex.SourceMgr.get(), Lex.Style, in createExpander()
139 Lex.Allocator, Lex.IdentTable); in createExpander()
174 TestLexer Lex; member in clang::format::__anon35b0f3090111::MacroCallReconstructorTest
205 Matcher U(Call, Lex); in TEST_F()
222 Matcher U(Call, Lex); in TEST_F()
428 Matcher U(Call, Lex); in TEST_F()
[all …]
H A DMacroExpanderTest.cpp18 Lex.SourceMgr.get(), Lex.Style, in create()
19 Lex.Allocator, Lex.IdentTable); in create()
32 Result.push_back(uneof(Lex.lex(Arg))); in lexArgs()
71 TestLexer Lex; member in clang::format::__anona382cfe70111::MacroExpanderTest
116 auto *A = Lex.id("A"); in TEST_F()
136 auto *B = Lex.id("B"); in TEST_F()
159 auto *A = Lex.id("A"); in TEST_F()
160 auto *B = Lex.id("B"); in TEST_F()
161 auto *C = Lex.id("C"); in TEST_F()
176 auto *A = Lex.id("A"); in TEST_F()
[all …]
H A DTestLexer.h67 FormatTokenLexer Lex = getNewLexer(Code); in lex() local
68 ArrayRef<FormatToken *> Result = Lex.lex(); in lex()
73 FormatTokenLexer Lex = getNewLexer(Code); in annotate() local
74 auto Tokens = Lex.lex(); in annotate()
75 UnwrappedLineParser Parser(Style, Lex.getKeywords(), 0, Tokens, *this); in annotate()
77 TokenAnnotator Annotator(Style, Lex.getKeywords()); in annotate()
/llvm-project-15.0.7/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp51 Lex.LexFromRawLexer(Tok); in getOffsetAfterTokenSequence()
52 return GetOffsetAfterSequence(SM, Lex, Tok); in getOffsetAfterTokenSequence()
60 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName() argument
68 Lex.LexFromRawLexer(Tok); in checkAndConsumeDirectiveWithName()
72 void skipComments(Lexer &Lex, Token &Tok) { in skipComments() argument
74 if (Lex.LexFromRawLexer(Tok)) in skipComments()
94 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
104 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
127 Lex.LexFromRawLexer(Tok); in checkAndConsumeInclusiveDirective()
132 if (Lex.LexFromRawLexer(Tok)) in checkAndConsumeInclusiveDirective()
[all …]
/llvm-project-15.0.7/llvm/unittests/MC/SystemZ/
H A DSystemZAsmLexerTest.cpp107 Lexer.Lex(); in lexAndCheckTokens()
122 Lexer.Lex(); in lexAndCheckIntegerTokensAndValues()
144 Parser->getLexer().Lex(); in TEST_F()
158 Parser->getLexer().Lex(); in TEST_F()
178 Parser->getLexer().Lex(); in TEST_F()
192 Parser->getLexer().Lex(); in TEST_F()
209 Parser->getLexer().Lex(); in TEST_F()
224 Parser->getLexer().Lex(); in TEST_F()
242 Parser->getLexer().Lex(); in TEST_F()
257 Parser->getLexer().Lex(); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp299 Lex(); in ParseDirectiveSymbolAttribute()
320 Lex(); in ParseSectionSwitch()
333 Lex(); in ParseSectionName()
421 Lex(); in ParseDirectiveDef()
433 Lex(); in ParseDirectiveScl()
446 Lex(); in ParseDirectiveType()
452 Lex(); in ParseDirectiveEndef()
481 Lex(); in ParseDirectiveSecRel32()
527 Lex(); in ParseDirectiveSafeSEH()
542 Lex(); in ParseDirectiveSecIdx()
[all …]
H A DELFAsmParser.cpp202 Lex(); in ParseDirectiveSymbolAttribute()
213 Lex(); in ParseSectionSwitch()
229 Lex(); in ParseDirectiveSize()
237 Lex(); in ParseDirectiveSize()
406 Lex(); in maybeParseSectionType()
427 Lex(); in parseMergeSize()
439 Lex(); in parseGroup()
464 Lex(); in parseLinkedToSym()
485 Lex(); in maybeParseUniqueID()
493 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 DWasmAsmParser.cpp78 Lex(); in isNext()
126 Lex(); in parseGroup()
129 Lex(); in parseGroup()
134 Lex(); in parseGroup()
177 Lex(); in parseSectionDirective()
237 Lex(); in parseDirectiveType()
254 Lex(); in parseDirectiveType()
265 Lex(); in ParseDirectiveIdent()
268 Lex(); in ParseDirectiveIdent()
296 Lex(); in ParseDirectiveSymbolAttribute()
[all …]
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 DAsmParser.cpp972 Lex(); in Run()
2422 Lex(); in parseCppHashLineFilenameComment()
2426 Lex(); in parseCppHashLineFilenameComment()
2922 Lex(); in handleMacroEntry()
2930 Lex(); in handleMacroExit()
3106 Lex(); in parseEscapedString()
3163 Lex(); in parseDirectiveReloc()
3289 Lex(); in parseRealValue()
3837 Lex(); in parseDirectiveCVInlineSiteId()
3849 Lex(); in parseDirectiveCVInlineSiteId()
[all …]
H A DMasmParser.cpp1324 Lex(); in Run()
2768 Lex(); in parseCppHashLineFilenameComment()
2772 Lex(); in parseCppHashLineFilenameComment()
3272 Lex(); in handleMacroEntry()
3282 Lex(); in handleMacroExit()
3340 Lex(); in handleMacroInvocation()
3549 Lex(); in parseEscapedString()
3885 Lex(); in parseRealValue()
5126 Lex(); in parseDirectiveCVInlineSiteId()
5138 Lex(); in parseDirectiveCVInlineSiteId()
[all …]
H A DCOFFMasmParser.cpp56 Lex(); in IgnoreDirective()
239 Lex(); in ParseSectionSwitch()
252 Lex(); in ParseDirectiveSegment()
283 Lex(); in ParseDirectiveSegmentEnd()
320 Lex(); in ParseDirectiveProc()
323 Lex(); in ParseDirectiveProc()
337 Lex(); in ParseDirectiveProc()
/llvm-project-15.0.7/llvm/include/llvm/AsmParser/
H A DLLParser.h100 LLLexer Lex; variable
198 Lex.Lex(); in EatIfPresent()
206 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
207 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
208 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
209 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
210 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
213 Lex.Lex(); in EatFastMathFlagsIfPresent()
215 case lltok::kw_reassoc: FMF.setAllowReassoc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
216 case lltok::kw_afn: FMF.setApproxFunc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
[all …]
/llvm-project-15.0.7/clang/lib/Parse/
H A DParsePragma.cpp271 PP.Lex(Tok); in HandlePragma()
1969 PP.Lex(Tok); in HandlePragma()
1979 PP.Lex(Tok); in HandlePragma()
2053 PP.Lex(Tok); in HandlePragma()
2084 PP.Lex(Tok); in HandlePragma()
2186 PP.Lex(Tok); in ParseAlignPragma()
2198 PP.Lex(Tok); in ParseAlignPragma()
2234 PP.Lex(Tok); in ParseAlignPragma()
2274 PP.Lex(Tok); in HandlePragma()
2316 PP.Lex(Tok); in HandlePragma()
[all …]
/llvm-project-15.0.7/clang/lib/Lex/
H A DPragma.cpp227 Lex(Tok); in Handle_Pragma()
231 Lex(Tok); in Handle_Pragma()
240 Lex(Tok); in Handle_Pragma()
565 Lex(Tok); in ParsePragmaPushOrPopMacro()
573 Lex(Tok); in ParsePragmaPushOrPopMacro()
589 Lex(Tok); in ParsePragmaPushOrPopMacro()
680 Lex(Tok); in HandlePragmaIncludeAlias()
702 Lex(Tok); in HandlePragmaIncludeAlias()
721 Lex(Tok); in HandlePragmaIncludeAlias()
870 Lex(Tok); in HandlePragmaHdrstop()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp383 Parser.Lex(); in parseRegister()
415 Parser.Lex(); // Eat register token. in tryParseRegisterOperand()
470 Parser.Lex(); in tryParseRelocExpression()
484 Parser.Lex(); in tryParseRelocExpression()
499 Parser.Lex(); in tryParseRelocExpression()
511 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
516 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
563 Parser.Lex(); // Eat the token. in parseOperand()
587 Parser.Lex(); // Eat register token. in parseMemriOperand()
626 Parser.Lex(); in eatComma()
[all …]
/llvm-project-15.0.7/clang/lib/Format/
H A DTokenAnalyzer.cpp104 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process() local
108 ArrayRef<FormatToken *> Toks(Lex.lex()); in process()
110 UnwrappedLineParser Parser(Style, Lex.getKeywords(), in process()
121 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process()
128 analyze(Annotator, AnnotatedLines, Lex); in process()
H A DFormatTokenLexer.cpp37 Lex.reset(new Lexer(ID, SourceMgr.getBufferOrFake(ID), SourceMgr, LangOpts));
38 Lex->SetKeepWhitespaceMode(true);
489 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral()
491 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral()
522 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral()
1131 const char *Start = Lex->getBufferLocation(); in readRawTokenVerilogSpecific()
1147 Tok.setLocation(Lex->getSourceLocation(Start, Len)); in readRawTokenVerilogSpecific()
1149 Lex->seek(Lex->getCurrentBufferOffset() + Len, /*IsAtStartofline=*/false); in readRawTokenVerilogSpecific()
1157 Lex->LexFromRawLexer(Tok.Tok); in readRawToken()
1193 Lex.reset(new Lexer(SourceMgr.getLocForStartOfFile(ID), LangOpts, in resetLexer()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp321 getLexer().Lex(); // eat register token in tryParseRegister()
366 getLexer().Lex(); // Eat '$' in parseJccInstruction()
387 getParser().Lex(); // Consume the EndOfStatement. in parseJccInstruction()
414 getLexer().Lex(); // Eat ',' in ParseInstruction()
425 getParser().Lex(); // Consume the EndOfStatement. in ParseInstruction()
477 getLexer().Lex(); // Eat '(' in ParseOperand()
484 getLexer().Lex(); // Eat ')' in ParseOperand()
495 getLexer().Lex(); // Eat '&' in ParseOperand()
508 getLexer().Lex(); // Eat '@' in ParseOperand()
515 getLexer().Lex(); // Eat '+' in ParseOperand()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DExplicitConstructorCheck.cpp47 Lexer Lex(StartLoc, LangOpts, StartChar, StartChar, Buf.end()); in findToken() local
48 Lex.SetCommentRetentionState(true); in findToken()
51 Lex.LexFromRawLexer(Tok); in findToken()
54 Lex.LexFromRawLexer(NextTok); in findToken()
/llvm-project-15.0.7/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp1040 getLexer().Lex(); in parseRegister()
1072 getParser().Lex(); // Eat ',' in parseBaseRegImm()
1101 getParser().Lex(); // Eat ')' in parseBaseRegImm()
1258 getLexer().Lex(); // Eat '['. in parseDataSymbol()
1344 getLexer().Lex(); // Eat ']'. in parseDataSymbol()
1360 getLexer().Lex(); // Eat '['. in parseConstpoolSymbol()
1437 getLexer().Lex(); // Eat ']'. in parseConstpoolSymbol()
1502 getLexer().Lex(); // eat '-' in parseRegSeq()
1585 getLexer().Lex(); in ParseInstruction()
1647 Parser.Lex(); in parseDirectiveAttribute()
[all …]
/llvm-project-15.0.7/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()

12345678