Home | History | Annotate | Download | only in Basic

Lines Matching refs:Macros

248   std::vector<MacroAction> &Macros;
251 explicit MacroTracker(std::vector<MacroAction> &Macros) : Macros(Macros) { }
255 Macros.push_back(MacroAction(MD->getLocation(),
261 Macros.push_back(MacroAction(MacroNameTok.getLocation(),
297 std::vector<MacroAction> Macros;
298 PP.addPPCallbacks(new MacroTracker(Macros));
314 ASSERT_EQ(9U, Macros.size());
316 ASSERT_TRUE(Macros[0].isDefinition);
317 ASSERT_EQ("M", Macros[0].Name);
319 ASSERT_TRUE(Macros[1].isDefinition);
320 ASSERT_EQ("INC", Macros[1].Name);
322 ASSERT_FALSE(Macros[2].isDefinition);
323 ASSERT_EQ("M", Macros[2].Name);
325 ASSERT_FALSE(Macros[3].isDefinition);
326 ASSERT_EQ("INC", Macros[3].Name);
328 ASSERT_TRUE(Macros[4].isDefinition);
329 ASSERT_EQ("MACRO_IN_INCLUDE", Macros[4].Name);
331 ASSERT_TRUE(Macros[5].isDefinition);
332 ASSERT_EQ("INC2", Macros[5].Name);
334 ASSERT_FALSE(Macros[6].isDefinition);
335 ASSERT_EQ("M", Macros[6].Name);
337 ASSERT_FALSE(Macros[7].isDefinition);
338 ASSERT_EQ("INC2", Macros[7].Name);
340 ASSERT_TRUE(Macros[8].isDefinition);
341 ASSERT_EQ("MACRO_IN_INCLUDE", Macros[8].Name);
345 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc));
349 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[7].Loc, Macros[8].Loc));