Home | History | Annotate | Download | only in Driver

Lines Matching full:flag

27   ASSERT_TRUE(Multilib().flag("+foo").isValid())
28 << "Single indicative flag is not valid";
30 ASSERT_TRUE(Multilib().flag("-foo").isValid())
31 << "Single contraindicative flag is not valid";
33 ASSERT_FALSE(Multilib().flag("+foo").flag("-foo").isValid())
36 ASSERT_TRUE(Multilib().flag("+foo").flag("+foo").isValid())
37 << "Multilib should be valid even if it has the same flag twice";
39 ASSERT_TRUE(Multilib().flag("+foo").flag("-foobar").isValid())
55 M1.flag("+foo");
56 M2.flag("+foo");
57 ASSERT_TRUE(M1 == M2) << "Multilibs with the same flag should be the same";
62 M1.flag("+foo");
63 M2.flag("-foo");
71 M2.flag("+foo");
77 M1.flag("+foo");
78 M2.flag("+foo").flag("+foo");
79 ASSERT_TRUE(M1 == M2) << "Flag duplication shouldn't affect equivalence";
81 << "Flag duplication shouldn't affect equivalence (commuted)";
159 Multilib M = Multilib().flag("+f1").flag("+f2").flag("-f3");
169 static bool hasFlag(const Multilib &M, StringRef Flag) {
173 if (*I == Flag)
175 else if (StringRef(*I).substr(1) == Flag.substr(1))
185 MS.Maybe(Multilib("64").flag("+m64"));
200 MS.Maybe(Multilib("sof").flag("+sof"));
201 MS.Maybe(Multilib("el").flag("+EL"));
215 << "Multilib " << *I << " didn't have the appropriate {+,-}sof flag";
222 << "Multilib " << *I << " didn't have the appropriate {+,-}EL flag";
287 .Maybe(Multilib("64").flag("+m64"));
293 << "Flag set was {\"+m64\"}, but selection not found";
301 << "Flag set was {\"-m64\"}, but selection not found";
308 .Maybe(Multilib("el").flag("+EL"))
309 .Maybe(Multilib("sf").flag("+SF"));