Lines Matching refs:Attributes
45 const std::vector<MacroAttributes> &Attributes, in expectAttributes() argument
47 EXPECT_EQ(Tokens.size(), Attributes.size()) << text(Tokens); in expectAttributes()
49 if (I >= Attributes.size()) in expectAttributes()
55 EXPECT_TRUE(Tokens[I]->is(Attributes[I].Kind)) in expectAttributes()
57 EXPECT_EQ(Tokens[I]->MacroCtx->Role, Attributes[I].Role) in expectAttributes()
59 EXPECT_EQ(Tokens[I]->MacroCtx->StartOfExpansion, Attributes[I].Start) in expectAttributes()
61 EXPECT_EQ(Tokens[I]->MacroCtx->EndOfExpansion, Attributes[I].End) in expectAttributes()
63 EXPECT_EQ(Tokens[I]->MacroCtx->ExpandedFrom, Attributes[I].ExpandedFrom) in expectAttributes()
74 #define EXPECT_ATTRIBUTES(Tokens, Attributes) \ argument
75 expectAttributes(Tokens, Attributes, __FILE__, __LINE__)
121 std::vector<MacroAttributes> Attributes = { in TEST_F() local
134 EXPECT_ATTRIBUTES(Result, Attributes); in TEST_F()
141 Attributes = { in TEST_F()
149 EXPECT_ATTRIBUTES(Result, Attributes); in TEST_F()
168 std::vector<MacroAttributes> Attributes = { in TEST_F() local
171 EXPECT_ATTRIBUTES(AResult, Attributes); in TEST_F()
179 std::vector<MacroAttributes> Attributes = { in TEST_F() local
184 EXPECT_ATTRIBUTES(Result, Attributes); in TEST_F()
192 std::vector<MacroAttributes> Attributes = { in TEST_F() local
200 EXPECT_ATTRIBUTES(Result, Attributes); in TEST_F()