Lines Matching refs:Tokens
44 void expectAttributes(const TokenList &Tokens, in expectAttributes() argument
47 EXPECT_EQ(Tokens.size(), Attributes.size()) << text(Tokens); in expectAttributes()
48 for (size_t I = 0, E = Tokens.size(); I != E; ++I) { in expectAttributes()
52 ("for token " + llvm::Twine(I) + ": " + Tokens[I]->Tok.getName() + in expectAttributes()
53 " / " + Tokens[I]->TokenText) in expectAttributes()
55 EXPECT_TRUE(Tokens[I]->is(Attributes[I].Kind)) in expectAttributes()
56 << Context << " in " << text(Tokens) << " at " << File << ":" << Line; in expectAttributes()
57 EXPECT_EQ(Tokens[I]->MacroCtx->Role, Attributes[I].Role) in expectAttributes()
58 << Context << " in " << text(Tokens) << " at " << File << ":" << Line; in expectAttributes()
59 EXPECT_EQ(Tokens[I]->MacroCtx->StartOfExpansion, Attributes[I].Start) in expectAttributes()
60 << Context << " in " << text(Tokens) << " at " << File << ":" << Line; in expectAttributes()
61 EXPECT_EQ(Tokens[I]->MacroCtx->EndOfExpansion, Attributes[I].End) in expectAttributes()
62 << Context << " in " << text(Tokens) << " at " << File << ":" << Line; in expectAttributes()
63 EXPECT_EQ(Tokens[I]->MacroCtx->ExpandedFrom, Attributes[I].ExpandedFrom) in expectAttributes()
64 << Context << " in " << text(Tokens) << " at " << File << ":" << Line; in expectAttributes()
74 #define EXPECT_ATTRIBUTES(Tokens, Attributes) \ argument
75 expectAttributes(Tokens, Attributes, __FILE__, __LINE__)