Lines Matching refs:AllowsMergedIf
293 FormatStyle AllowsMergedIf = getLLVMStyle(); in TEST_F() local
294 AllowsMergedIf.AllowShortIfStatementsOnASingleLine = true; in TEST_F()
298 AllowsMergedIf); in TEST_F()
301 AllowsMergedIf); in TEST_F()
304 AllowsMergedIf); in TEST_F()
308 AllowsMergedIf); in TEST_F()
311 AllowsMergedIf); in TEST_F()
315 AllowsMergedIf); in TEST_F()
319 AllowsMergedIf); in TEST_F()
321 EXPECT_EQ("if (a) return;", format("if(a)\nreturn;", 7, 1, AllowsMergedIf)); in TEST_F()
323 format("if(a)\nreturn; // comment", 20, 1, AllowsMergedIf)); in TEST_F()
325 AllowsMergedIf.ColumnLimit = 14; in TEST_F()
326 verifyFormat("if (a) return;", AllowsMergedIf); in TEST_F()
329 AllowsMergedIf); in TEST_F()
331 AllowsMergedIf.ColumnLimit = 13; in TEST_F()
332 verifyFormat("if (a)\n return;", AllowsMergedIf); in TEST_F()
5747 FormatStyle AllowsMergedIf = getGoogleStyle(); in TEST_F() local
5748 AllowsMergedIf.AllowShortIfStatementsOnASingleLine = true; in TEST_F()
5749 verifyFormat("void f() { f(); }\n#error E", AllowsMergedIf); in TEST_F()
5750 verifyFormat("if (true) return 42;\n#error E", AllowsMergedIf); in TEST_F()
5751 verifyFormat("if (true)\n#error E\n return 42;", AllowsMergedIf); in TEST_F()
5753 format("if (true)\nreturn 42;", AllowsMergedIf)); in TEST_F()
5754 FormatStyle ShortMergedIf = AllowsMergedIf; in TEST_F()