Lines Matching refs:AllowSimpleBracedStatements

1545   FormatStyle AllowSimpleBracedStatements = getLLVMStyle();  in TEST_F()  local
1546 EXPECT_EQ(AllowSimpleBracedStatements.AllowShortBlocksOnASingleLine, false); in TEST_F()
1547 EXPECT_EQ(AllowSimpleBracedStatements.AllowShortIfStatementsOnASingleLine, in TEST_F()
1549 EXPECT_EQ(AllowSimpleBracedStatements.AllowShortLoopsOnASingleLine, false); in TEST_F()
1550 EXPECT_EQ(AllowSimpleBracedStatements.BraceWrapping.AfterFunction, false); in TEST_F()
1576 AllowSimpleBracedStatements.AllowShortBlocksOnASingleLine = in TEST_F()
1578 AllowSimpleBracedStatements.AllowShortIfStatementsOnASingleLine = in TEST_F()
1580 verifyFormat("if (true) {}", AllowSimpleBracedStatements); in TEST_F()
1581 verifyFormat("if (i) break;", AllowSimpleBracedStatements); in TEST_F()
1585 AllowSimpleBracedStatements); in TEST_F()
1587 AllowSimpleBracedStatements.IfMacros.push_back("MYIF"); in TEST_F()
1590 AllowSimpleBracedStatements.IfMacros.push_back("FI"); in TEST_F()
1591 AllowSimpleBracedStatements.ColumnLimit = 40; in TEST_F()
1592 AllowSimpleBracedStatements.AllowShortBlocksOnASingleLine = in TEST_F()
1594 AllowSimpleBracedStatements.AllowShortLoopsOnASingleLine = true; in TEST_F()
1595 AllowSimpleBracedStatements.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
1596 AllowSimpleBracedStatements.BraceWrapping.AfterFunction = true; in TEST_F()
1597 AllowSimpleBracedStatements.BraceWrapping.SplitEmptyRecord = false; in TEST_F()
1599 verifyFormat("if (true) {}", AllowSimpleBracedStatements); in TEST_F()
1600 verifyFormat("if constexpr (true) {}", AllowSimpleBracedStatements); in TEST_F()
1601 verifyFormat("if CONSTEXPR (true) {}", AllowSimpleBracedStatements); in TEST_F()
1602 verifyFormat("if consteval {}", AllowSimpleBracedStatements); in TEST_F()
1603 verifyFormat("if !consteval {}", AllowSimpleBracedStatements); in TEST_F()
1604 verifyFormat("if CONSTEVAL {}", AllowSimpleBracedStatements); in TEST_F()
1605 verifyFormat("MYIF (true) {}", AllowSimpleBracedStatements); in TEST_F()
1606 verifyFormat("MYIF constexpr (true) {}", AllowSimpleBracedStatements); in TEST_F()
1607 verifyFormat("MYIF CONSTEXPR (true) {}", AllowSimpleBracedStatements); in TEST_F()
1608 verifyFormat("while (true) {}", AllowSimpleBracedStatements); in TEST_F()
1609 verifyFormat("for (;;) {}", AllowSimpleBracedStatements); in TEST_F()
1610 verifyFormat("if (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1611 verifyFormat("if constexpr (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1612 verifyFormat("if CONSTEXPR (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1613 verifyFormat("if consteval { f(); }", AllowSimpleBracedStatements); in TEST_F()
1614 verifyFormat("if CONSTEVAL { f(); }", AllowSimpleBracedStatements); in TEST_F()
1615 verifyFormat("MYIF (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1616 verifyFormat("MYIF constexpr (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1617 verifyFormat("MYIF CONSTEXPR (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1618 verifyFormat("MYIF consteval { f(); }", AllowSimpleBracedStatements); in TEST_F()
1619 verifyFormat("MYIF CONSTEVAL { f(); }", AllowSimpleBracedStatements); in TEST_F()
1620 verifyFormat("while (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1621 verifyFormat("for (;;) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1623 AllowSimpleBracedStatements); in TEST_F()
1627 AllowSimpleBracedStatements); in TEST_F()
1631 AllowSimpleBracedStatements); in TEST_F()
1635 AllowSimpleBracedStatements); in TEST_F()
1640 AllowSimpleBracedStatements); in TEST_F()
1646 AllowSimpleBracedStatements); in TEST_F()
1648 AllowSimpleBracedStatements); in TEST_F()
1652 AllowSimpleBracedStatements); in TEST_F()
1656 AllowSimpleBracedStatements); in TEST_F()
1660 AllowSimpleBracedStatements); in TEST_F()
1665 AllowSimpleBracedStatements); in TEST_F()
1671 AllowSimpleBracedStatements); in TEST_F()
1676 AllowSimpleBracedStatements); in TEST_F()
1680 AllowSimpleBracedStatements); in TEST_F()
1684 AllowSimpleBracedStatements); in TEST_F()
1686 AllowSimpleBracedStatements.AllowShortIfStatementsOnASingleLine = in TEST_F()
1688 verifyFormat("if (true) {}", AllowSimpleBracedStatements); in TEST_F()
1692 AllowSimpleBracedStatements); in TEST_F()
1698 AllowSimpleBracedStatements); in TEST_F()
1699 verifyFormat("MYIF (true) {}", AllowSimpleBracedStatements); in TEST_F()
1703 AllowSimpleBracedStatements); in TEST_F()
1709 AllowSimpleBracedStatements); in TEST_F()
1711 AllowSimpleBracedStatements.AllowShortLoopsOnASingleLine = false; in TEST_F()
1712 verifyFormat("while (true) {}", AllowSimpleBracedStatements); in TEST_F()
1716 AllowSimpleBracedStatements); in TEST_F()
1717 verifyFormat("for (;;) {}", AllowSimpleBracedStatements); in TEST_F()
1721 AllowSimpleBracedStatements); in TEST_F()
1722 verifyFormat("BOOST_FOREACH (int v, vec) {}", AllowSimpleBracedStatements); in TEST_F()
1726 AllowSimpleBracedStatements); in TEST_F()
1728 AllowSimpleBracedStatements.AllowShortIfStatementsOnASingleLine = in TEST_F()
1730 AllowSimpleBracedStatements.AllowShortLoopsOnASingleLine = true; in TEST_F()
1731 AllowSimpleBracedStatements.BraceWrapping.AfterControlStatement = in TEST_F()
1734 verifyFormat("if (true) {}", AllowSimpleBracedStatements); in TEST_F()
1735 verifyFormat("if constexpr (true) {}", AllowSimpleBracedStatements); in TEST_F()
1736 verifyFormat("if CONSTEXPR (true) {}", AllowSimpleBracedStatements); in TEST_F()
1737 verifyFormat("MYIF (true) {}", AllowSimpleBracedStatements); in TEST_F()
1738 verifyFormat("MYIF constexpr (true) {}", AllowSimpleBracedStatements); in TEST_F()
1739 verifyFormat("MYIF CONSTEXPR (true) {}", AllowSimpleBracedStatements); in TEST_F()
1740 verifyFormat("while (true) {}", AllowSimpleBracedStatements); in TEST_F()
1741 verifyFormat("for (;;) {}", AllowSimpleBracedStatements); in TEST_F()
1742 verifyFormat("if (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1743 verifyFormat("if constexpr (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1744 verifyFormat("if CONSTEXPR (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1745 verifyFormat("MYIF (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1746 verifyFormat("MYIF constexpr (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1747 verifyFormat("MYIF CONSTEXPR (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1748 verifyFormat("while (true) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1749 verifyFormat("for (;;) { f(); }", AllowSimpleBracedStatements); in TEST_F()
1751 AllowSimpleBracedStatements); in TEST_F()
1756 AllowSimpleBracedStatements); in TEST_F()
1761 AllowSimpleBracedStatements); in TEST_F()
1766 AllowSimpleBracedStatements); in TEST_F()
1772 AllowSimpleBracedStatements); in TEST_F()
1780 AllowSimpleBracedStatements); in TEST_F()
1782 AllowSimpleBracedStatements); in TEST_F()
1787 AllowSimpleBracedStatements); in TEST_F()
1792 AllowSimpleBracedStatements); in TEST_F()
1797 AllowSimpleBracedStatements); in TEST_F()
1803 AllowSimpleBracedStatements); in TEST_F()
1811 AllowSimpleBracedStatements); in TEST_F()
1813 AllowSimpleBracedStatements.AllowShortIfStatementsOnASingleLine = in TEST_F()
1815 verifyFormat("if (true) {}", AllowSimpleBracedStatements); in TEST_F()
1820 AllowSimpleBracedStatements); in TEST_F()
1828 AllowSimpleBracedStatements); in TEST_F()
1829 verifyFormat("MYIF (true) {}", AllowSimpleBracedStatements); in TEST_F()
1834 AllowSimpleBracedStatements); in TEST_F()
1842 AllowSimpleBracedStatements); in TEST_F()
1844 AllowSimpleBracedStatements.AllowShortLoopsOnASingleLine = false; in TEST_F()
1845 verifyFormat("while (true) {}", AllowSimpleBracedStatements); in TEST_F()
1850 AllowSimpleBracedStatements); in TEST_F()
1851 verifyFormat("for (;;) {}", AllowSimpleBracedStatements); in TEST_F()
1856 AllowSimpleBracedStatements); in TEST_F()
1857 verifyFormat("BOOST_FOREACH (int v, vec) {}", AllowSimpleBracedStatements); in TEST_F()
1862 AllowSimpleBracedStatements); in TEST_F()