Home | History | Annotate | Download | only in Lex

Lines Matching refs:toks

73     std::vector<Token> toks;
79 toks.push_back(tok);
82 EXPECT_EQ(ExpectedTokens.size(), toks.size());
84 EXPECT_EQ(ExpectedTokens[i], toks[i].getKind());
87 return toks;
118 std::vector<Token> toks = CheckLex("#define M(x) x\n"
122 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2]));
130 std::vector<Token> toks = CheckLex("#define M(x) x\n"
134 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0]));
143 std::vector<Token> toks = CheckLex("#define M(x) x\n"
147 EXPECT_EQ("c M(i)", getSourceText(toks[1], toks[2]));
156 std::vector<Token> toks = CheckLex("#define M(x) x\n"
160 EXPECT_EQ("M(i) c", getSourceText(toks[0], toks[1]));
170 std::vector<Token> toks = CheckLex("#define M(x) x\n"
174 EXPECT_EQ("<INVALID>", getSourceText(toks[1], toks[2]));
184 std::vector<Token> toks = CheckLex("#define M(x) x\n"
189 EXPECT_EQ("C(i)", getSourceText(toks[2], toks[2]));
199 std::vector<Token> toks = CheckLex("#define M(x) x\n"
202 EXPECT_EQ("M(M(i))", getSourceText(toks[2], toks[2]));
212 std::vector<Token> toks = CheckLex("#define M(x) x\n"
215 EXPECT_EQ("i", getSourceText(toks[2], toks[2]));
225 std::vector<Token> toks = CheckLex("#define M(x) x\n"
229 EXPECT_EQ("C(M(i))", getSourceText(toks[2], toks[2]));
240 std::vector<Token> toks = CheckLex("#define M(x) x\n"
244 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3]));
255 std::vector<Token> toks = CheckLex("#define M(x) x\n"
259 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3]));
275 std::vector<Token> toks = CheckLex("#define M(x) [x]\n"
284 SourceLocation lsqrLoc = toks[0].getLocation();
285 SourceLocation idLoc = toks[1].getLocation();
286 SourceLocation rsqrLoc = toks[2].getLocation();
317 SourceLocation macroLsqrLoc = toks[3].getLocation();
318 SourceLocation macroIdLoc = toks[4].getLocation();
319 SourceLocation macroRsqrLoc = toks[5].getLocation();
348 SourceLocation idLoc1 = toks[6].getLocation();
349 SourceLocation idLoc2 = toks[7].getLocation();
350 SourceLocation idLoc3 = toks[8].getLocation();
351 SourceLocation idLoc4 = toks[9].getLocation();