Lines Matching defs:verifyFormat
39 static void verifyFormat(StringRef Code) {
44 static void verifyFormat(StringRef Result, StringRef MessedUp) {
48 static void verifyFormat(StringRef Code, const FormatStyle &Style) {
57 verifyFormat("include \"OptParser.td\"\n"
66 verifyFormat("def flag : Flag<[\"-\", \"--\"], \"foo\">;");
70 verifyFormat("def LiteralAndIdentifiers {\n"
79 verifyFormat("def BangOperators {\n"
111 verifyFormat("include \"test/IncludeFile.h\"");
115 verifyFormat("def Types : list<int>, bits<3>, list<list<string>> {}");
119 verifyFormat("def SimpleValue {\n"
146 verifyFormat(DefWithCode, DefWithCodeMessedUp);
150 verifyFormat("def SimpleValue2 {\n"
157 verifyFormat("class SimpleValue3<int x> { int Question = ?; }");
161 verifyFormat("def SimpleValue4 { let ValueList = {1, 2, 3}; }");
165 verifyFormat("def SimpleValue5 {\n"
176 verifyFormat("def SimpleValue6 {\n"
194 verifyFormat("def SimpleValue7 { let Identifier = SimpleValue; }");
198 verifyFormat("def SimpleValue8 { let Class = SimpleValue3<3>; }");
202 verifyFormat("def SuffixedValues {\n"
213 verifyFormat("def Paste#\"Operator\" { string Paste = \"Paste\"#operator; }");
215 verifyFormat("def [\"Traring\", \"Paste\"]# {\n"
224 verifyFormat("class Class<int x, int y = 1, string z = \"z\", int w = -1>\n"
236 verifyFormat("class FPFormat<bits<3> val> { bits<3> Value = val; }");
240 verifyFormat("def Def : Parent1<Def>, Parent2(defs Def) {\n"
247 verifyFormat("class FPFormat<bits<3> val> { bits<3> Value = val; }");
249 verifyFormat("def NotFP : FPFormat<0>;");
253 verifyFormat("let x = 1, y = value<type>,\n"
260 verifyFormat("multiclass Multiclass<int x> {\n"
298 verifyFormat("multiclass MultiClass1<int i> {\n"
306 verifyFormat("defm : Multiclass<0>;");
308 verifyFormat("defm Defm1 : Multiclass<1>;");
312 verifyFormat("defset list<Class> DefSet1 = {\n"
319 verifyFormat("defvar DefVar1 = !cond(!ge(!size(PaseOperator.Paste), 1): 1,\n"
324 verifyFormat(
333 TEST_F(FormatTestTableGen, Dump) { verifyFormat("dump \"Dump\";"); }
336 verifyFormat("if !gt(x, 0) then {\n"
344 verifyFormat("assert !le(DefVar1, 0), \"Assert1\";");
352 verifyFormat("def Def : Parent {\n"
358 verifyFormat("def Def : Parent {\n"
364 verifyFormat("def Def : Parent {\n"
372 verifyFormat("def Def : Parent {\n"
378 verifyFormat("def Def : Parent {\n"
388 verifyFormat("def Def : Parent {\n"
394 verifyFormat("def Def : Parent {\n"
402 verifyFormat("def Def : Parent {\n"
412 verifyFormat("def Def : Parent {\n"
420 verifyFormat("def Def : Parent {\n"
431 verifyFormat("def Def : Parent {\n"
439 verifyFormat("def Def : Parent {\n"
444 verifyFormat("def Def : Parent {\n"
452 verifyFormat("def Def : Parent {\n"
461 verifyFormat("let CondOpe1 = !cond(!eq(size, 1): 1,\n"
466 verifyFormat("let CondOpe1 = !cond(!eq(size, 1) : 1,\n"
475 verifyFormat("def Def : Parent {}\n"
480 verifyFormat("def Def : Parent {}\n"