Lines Matching refs:AllowsMergedIf
672 FormatStyle AllowsMergedIf = getLLVMStyle(); in TEST_F() local
673 AllowsMergedIf.IfMacros.push_back("MYIF"); in TEST_F()
674 AllowsMergedIf.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
675 AllowsMergedIf.AllowShortIfStatementsOnASingleLine = in TEST_F()
680 AllowsMergedIf); in TEST_F()
686 AllowsMergedIf); in TEST_F()
691 AllowsMergedIf); in TEST_F()
694 AllowsMergedIf); in TEST_F()
697 AllowsMergedIf); in TEST_F()
701 AllowsMergedIf); in TEST_F()
704 AllowsMergedIf); in TEST_F()
708 AllowsMergedIf); in TEST_F()
712 AllowsMergedIf); in TEST_F()
716 AllowsMergedIf); in TEST_F()
722 AllowsMergedIf); in TEST_F()
727 AllowsMergedIf); in TEST_F()
730 AllowsMergedIf); in TEST_F()
733 AllowsMergedIf); in TEST_F()
737 AllowsMergedIf); in TEST_F()
740 AllowsMergedIf); in TEST_F()
744 AllowsMergedIf); in TEST_F()
748 AllowsMergedIf); in TEST_F()
750 AllowsMergedIf.ColumnLimit = 14; in TEST_F()
753 AllowsMergedIf.IfMacros.push_back("FI"); in TEST_F()
754 verifyFormat("if (a) return;", AllowsMergedIf); in TEST_F()
757 AllowsMergedIf); in TEST_F()
758 verifyFormat("FI (a) return;", AllowsMergedIf); in TEST_F()
761 AllowsMergedIf); in TEST_F()
763 AllowsMergedIf.ColumnLimit = 13; in TEST_F()
764 verifyFormat("if (a)\n return;", AllowsMergedIf); in TEST_F()
765 verifyFormat("FI (a)\n return;", AllowsMergedIf); in TEST_F()
872 FormatStyle AllowsMergedIf = getLLVMStyle(); in TEST_F() local
873 AllowsMergedIf.IfMacros.push_back("MYIF"); in TEST_F()
874 AllowsMergedIf.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
875 AllowsMergedIf.AllowShortIfStatementsOnASingleLine = in TEST_F()
882 AllowsMergedIf); in TEST_F()
887 AllowsMergedIf); in TEST_F()
889 verifyFormat("if (a) g();", AllowsMergedIf); in TEST_F()
893 AllowsMergedIf); in TEST_F()
898 AllowsMergedIf); in TEST_F()
903 AllowsMergedIf); in TEST_F()
909 AllowsMergedIf); in TEST_F()
915 AllowsMergedIf); in TEST_F()
922 AllowsMergedIf); in TEST_F()
929 AllowsMergedIf); in TEST_F()
936 AllowsMergedIf); in TEST_F()
944 AllowsMergedIf); in TEST_F()
952 AllowsMergedIf); in TEST_F()
960 AllowsMergedIf); in TEST_F()
966 AllowsMergedIf); in TEST_F()
971 AllowsMergedIf); in TEST_F()
973 verifyFormat("MYIF (a) g();", AllowsMergedIf); in TEST_F()
977 AllowsMergedIf); in TEST_F()
982 AllowsMergedIf); in TEST_F()
987 AllowsMergedIf); in TEST_F()
993 AllowsMergedIf); in TEST_F()
999 AllowsMergedIf); in TEST_F()
1006 AllowsMergedIf); in TEST_F()
1013 AllowsMergedIf); in TEST_F()
1020 AllowsMergedIf); in TEST_F()
1027 AllowsMergedIf); in TEST_F()
1034 AllowsMergedIf); in TEST_F()
1041 AllowsMergedIf); in TEST_F()
1049 AllowsMergedIf); in TEST_F()
1057 AllowsMergedIf); in TEST_F()
1065 AllowsMergedIf); in TEST_F()
1073 AllowsMergedIf); in TEST_F()
1081 AllowsMergedIf); in TEST_F()
1089 AllowsMergedIf); in TEST_F()
1091 AllowsMergedIf.AllowShortIfStatementsOnASingleLine = in TEST_F()
1098 AllowsMergedIf); in TEST_F()
1107 AllowsMergedIf); in TEST_F()
1109 verifyFormat("if (a) g();", AllowsMergedIf); in TEST_F()
1113 AllowsMergedIf); in TEST_F()
1117 AllowsMergedIf); in TEST_F()
1122 AllowsMergedIf); in TEST_F()
1127 AllowsMergedIf); in TEST_F()
1133 AllowsMergedIf); in TEST_F()
1139 AllowsMergedIf); in TEST_F()
1146 AllowsMergedIf); in TEST_F()
1152 AllowsMergedIf); in TEST_F()
1159 AllowsMergedIf); in TEST_F()
1166 AllowsMergedIf); in TEST_F()
1174 AllowsMergedIf); in TEST_F()
1179 AllowsMergedIf); in TEST_F()
1188 AllowsMergedIf); in TEST_F()
1190 verifyFormat("MYIF (a) g();", AllowsMergedIf); in TEST_F()
1194 AllowsMergedIf); in TEST_F()
1198 AllowsMergedIf); in TEST_F()
1203 AllowsMergedIf); in TEST_F()
1208 AllowsMergedIf); in TEST_F()
1214 AllowsMergedIf); in TEST_F()
1220 AllowsMergedIf); in TEST_F()
1226 AllowsMergedIf); in TEST_F()
1233 AllowsMergedIf); in TEST_F()
1240 AllowsMergedIf); in TEST_F()
1246 AllowsMergedIf); in TEST_F()
1252 AllowsMergedIf); in TEST_F()
1259 AllowsMergedIf); in TEST_F()
1266 AllowsMergedIf); in TEST_F()
1273 AllowsMergedIf); in TEST_F()
1280 AllowsMergedIf); in TEST_F()
1288 AllowsMergedIf); in TEST_F()
1296 AllowsMergedIf); in TEST_F()
1298 AllowsMergedIf.AllowShortIfStatementsOnASingleLine = in TEST_F()
1305 AllowsMergedIf); in TEST_F()
1314 AllowsMergedIf); in TEST_F()
1316 verifyFormat("if (a) g();", AllowsMergedIf); in TEST_F()
1320 AllowsMergedIf); in TEST_F()
1323 AllowsMergedIf); in TEST_F()
1327 AllowsMergedIf); in TEST_F()
1332 AllowsMergedIf); in TEST_F()
1338 AllowsMergedIf); in TEST_F()
1342 AllowsMergedIf); in TEST_F()
1347 AllowsMergedIf); in TEST_F()
1352 AllowsMergedIf); in TEST_F()
1358 AllowsMergedIf); in TEST_F()
1365 AllowsMergedIf); in TEST_F()
1373 AllowsMergedIf); in TEST_F()
1378 AllowsMergedIf); in TEST_F()
1387 AllowsMergedIf); in TEST_F()
1389 verifyFormat("MYIF (a) g();", AllowsMergedIf); in TEST_F()
1393 AllowsMergedIf); in TEST_F()
1396 AllowsMergedIf); in TEST_F()
1400 AllowsMergedIf); in TEST_F()
1405 AllowsMergedIf); in TEST_F()
1411 AllowsMergedIf); in TEST_F()
1415 AllowsMergedIf); in TEST_F()
1419 AllowsMergedIf); in TEST_F()
1424 AllowsMergedIf); in TEST_F()
1429 AllowsMergedIf); in TEST_F()
1434 AllowsMergedIf); in TEST_F()
1439 AllowsMergedIf); in TEST_F()
1445 AllowsMergedIf); in TEST_F()
1451 AllowsMergedIf); in TEST_F()
1458 AllowsMergedIf); in TEST_F()
1465 AllowsMergedIf); in TEST_F()
1473 AllowsMergedIf); in TEST_F()
1481 AllowsMergedIf); in TEST_F()
13497 FormatStyle AllowsMergedIf = getGoogleStyle(); in TEST_F() local
13498 AllowsMergedIf.AllowShortIfStatementsOnASingleLine = in TEST_F()
13500 verifyFormat("void f() { f(); }\n#error E", AllowsMergedIf); in TEST_F()
13501 verifyFormat("if (true) return 42;\n#error E", AllowsMergedIf); in TEST_F()
13502 verifyFormat("if (true)\n#error E\n return 42;", AllowsMergedIf); in TEST_F()
13504 format("if (true)\nreturn 42;", AllowsMergedIf)); in TEST_F()
13505 FormatStyle ShortMergedIf = AllowsMergedIf; in TEST_F()