Lines Matching refs:Styles

9594 #define EXPECT_ALL_STYLES_EQUAL(Styles)                                        \  argument
9595 for (size_t i = 1; i < Styles.size(); ++i) \
9596 EXPECT_EQ(Styles[0], Styles[i]) << "Style #" << i << " of " << Styles.size() \
9600 SmallVector<FormatStyle, 3> Styles; in TEST_F() local
9601 Styles.resize(3); in TEST_F()
9603 Styles[0] = getLLVMStyle(); in TEST_F()
9604 EXPECT_TRUE(getPredefinedStyle("LLVM", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
9605 EXPECT_TRUE(getPredefinedStyle("lLvM", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
9606 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9608 Styles[0] = getGoogleStyle(); in TEST_F()
9609 EXPECT_TRUE(getPredefinedStyle("Google", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
9610 EXPECT_TRUE(getPredefinedStyle("gOOgle", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
9611 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9613 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
9615 getPredefinedStyle("Google", FormatStyle::LK_JavaScript, &Styles[1])); in TEST_F()
9617 getPredefinedStyle("gOOgle", FormatStyle::LK_JavaScript, &Styles[2])); in TEST_F()
9618 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9620 Styles[0] = getChromiumStyle(FormatStyle::LK_Cpp); in TEST_F()
9621 EXPECT_TRUE(getPredefinedStyle("Chromium", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
9622 EXPECT_TRUE(getPredefinedStyle("cHRoMiUM", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
9623 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9625 Styles[0] = getMozillaStyle(); in TEST_F()
9626 EXPECT_TRUE(getPredefinedStyle("Mozilla", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
9627 EXPECT_TRUE(getPredefinedStyle("moZILla", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
9628 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9630 Styles[0] = getWebKitStyle(); in TEST_F()
9631 EXPECT_TRUE(getPredefinedStyle("WebKit", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
9632 EXPECT_TRUE(getPredefinedStyle("wEbKit", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
9633 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9635 Styles[0] = getGNUStyle(); in TEST_F()
9636 EXPECT_TRUE(getPredefinedStyle("GNU", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
9637 EXPECT_TRUE(getPredefinedStyle("gnU", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
9638 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9640 EXPECT_FALSE(getPredefinedStyle("qwerty", FormatStyle::LK_Cpp, &Styles[0])); in TEST_F()
9644 SmallVector<FormatStyle, 8> Styles; in TEST_F() local
9645 Styles.resize(2); in TEST_F()
9647 Styles[0] = getGoogleStyle(); in TEST_F()
9648 Styles[1] = getLLVMStyle(); in TEST_F()
9649 EXPECT_EQ(0, parseConfiguration("BasedOnStyle: Google", &Styles[1]).value()); in TEST_F()
9650 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()
9652 Styles.resize(5); in TEST_F()
9653 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
9654 Styles[1] = getLLVMStyle(); in TEST_F()
9655 Styles[1].Language = FormatStyle::LK_JavaScript; in TEST_F()
9656 EXPECT_EQ(0, parseConfiguration("BasedOnStyle: Google", &Styles[1]).value()); in TEST_F()
9658 Styles[2] = getLLVMStyle(); in TEST_F()
9659 Styles[2].Language = FormatStyle::LK_JavaScript; in TEST_F()
9662 &Styles[2]) in TEST_F()
9665 Styles[3] = getLLVMStyle(); in TEST_F()
9666 Styles[3].Language = FormatStyle::LK_JavaScript; in TEST_F()
9669 &Styles[3]) in TEST_F()
9672 Styles[4] = getLLVMStyle(); in TEST_F()
9673 Styles[4].Language = FormatStyle::LK_JavaScript; in TEST_F()
9680 &Styles[4]) in TEST_F()
9682 EXPECT_ALL_STYLES_EQUAL(Styles); in TEST_F()