Lines Matching defs:Lex
28 Expansion(TestLexer &Lex, MacroExpander &Macros) : Lex(Lex), Macros(Macros) {}
53 auto *ID = Lex.id(Name);
57 UnexpandedLine->Tokens.push_back(Lex.id("("));
60 UnexpandedLine->Tokens.push_back(Lex.id(","));
64 UnexpandedLine->Tokens.push_back(Lex.id(")"));
82 Result.push_back(uneof(Lex.lex(Arg)));
87 TestLexer &Lex;
103 Matcher(const TokenList &Tokens, TestLexer &Lex)
104 : Tokens(Tokens), It(this->Tokens.begin()), Lex(Lex) {}
117 for (const FormatToken *Token : uneof(Lex.lex(Tokens))) {
128 TestLexer &Lex;
143 MacroCallReconstructorTest() : Lex(Allocator, Buffers) {}
148 Lex.SourceMgr.get(), Lex.Style,
149 Lex.Allocator, Lex.IdentTable);
177 TokenList lex(StringRef Text) { return uneof(Lex.lex(Text)); }
185 TestLexer Lex;
212 Expansion Exp(Lex, *Macros);
218 Matcher U(Call, Lex);
224 Expansion Exp(Lex, *Macros);
230 Matcher U(Call, Lex);
236 Expansion Exp(Lex, *Macros);
242 Matcher U(Call, Lex);
249 Expansion Exp(Lex, *Macros);
253 Matcher E(Exp.getTokens(), Lex);
260 Matcher U(Call, Lex);
267 Expansion Exp1(Lex, *Macros);
269 Expansion Exp2(Lex, *Macros);
270 TokenList Call2 = Exp2.expand("C", {uneof(Lex.lex("a")), Exp1.getTokens()});
275 Matcher E(Exp2.getTokens(), Lex);
285 Matcher U1(Call1, Lex);
287 Matcher U2(Call2, Lex);
298 Expansion Exp(Lex, *Macros);
304 Matcher E(Exp.getTokens(), Lex);
311 Matcher U1(Call1, Lex);
312 Matcher U2(Call2, Lex);
313 Matcher U3(Call3, Lex);
326 Expansion Exp1(Lex, *Macros);
330 Arg.push_back(Lex.id("{"));
332 Arg.push_back(Lex.id(";"));
333 Arg.push_back(Lex.id("}"));
334 Expansion Exp2(Lex, *Macros);
344 Matcher E(Exp2.getTokens(), Lex);
356 Matcher U1(Call1, Lex);
357 Matcher U2(Call2, Lex);
380 Expansion Exp1(Lex, *Macros);
383 Expansion Exp2(Lex, *Macros);
387 Arg3.push_back(Lex.id("{"));
389 Arg3.push_back(Lex.id("}"));
390 Expansion Exp3(Lex, *Macros);
405 Matcher E(Exp3.getTokens(), Lex);
424 Matcher U1(Call1, Lex);
425 Matcher U2(Call2, Lex);
426 Matcher U3(Call3, Lex);
457 Expansion Exp(Lex, *Macros);
461 Matcher E(Exp.getTokens(), Lex);
471 Matcher U(Call, Lex);
478 Expansion Exp(Lex, *Macros);
482 Matcher E(Exp.getTokens(), Lex);
485 Matcher U(Call, Lex);
492 Expansion Exp(Lex, *Macros);
496 Matcher E(Exp.getTokens(), Lex);
500 Matcher U(Call, Lex);
516 Expansion Exp1(Lex, *Macros);
519 Expansion Exp2(Lex, *Macros);
521 Arg2.push_back(Lex.id("{"));
523 Arg2.push_back(Lex.id(";"));
524 Arg2.push_back(Lex.id("}"));
534 Matcher E(Exp2.getTokens(), Lex);
546 Matcher U1(Call1, Lex);
547 Matcher U2(Call2, Lex);
570 Expansion Exp(Lex, *Macros);
576 Matcher E(Exp.getTokens(), Lex);
587 Matcher U(Call, Lex);
610 Expansion Exp(Lex, *Macros);
614 Matcher E(Exp.getTokens(), Lex);
624 Matcher U(Call, Lex);
635 Expansion Exp(Lex, *Macros);
639 Matcher E(Exp.getTokens(), Lex);
654 Matcher U(Call, Lex);
677 Expansion Exp(Lex, *Macros);
681 Matcher E(Exp.getTokens(), Lex);
693 Matcher U(Call, Lex);
703 Expansion Exp(Lex, *Macros);
707 Matcher E(Exp.getTokens(), Lex);
718 Matcher U(Call, Lex);