reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Format/FormatTest.cpp
12302   Styles.resize(3);
12304   Styles[0] = getLLVMStyle();
12305   EXPECT_TRUE(getPredefinedStyle("LLVM", FormatStyle::LK_Cpp, &Styles[1]));
12306   EXPECT_TRUE(getPredefinedStyle("lLvM", FormatStyle::LK_Cpp, &Styles[2]));
12307   EXPECT_ALL_STYLES_EQUAL(Styles);
12309   Styles[0] = getGoogleStyle();
12310   EXPECT_TRUE(getPredefinedStyle("Google", FormatStyle::LK_Cpp, &Styles[1]));
12311   EXPECT_TRUE(getPredefinedStyle("gOOgle", FormatStyle::LK_Cpp, &Styles[2]));
12312   EXPECT_ALL_STYLES_EQUAL(Styles);
12314   Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript);
12316       getPredefinedStyle("Google", FormatStyle::LK_JavaScript, &Styles[1]));
12318       getPredefinedStyle("gOOgle", FormatStyle::LK_JavaScript, &Styles[2]));
12319   EXPECT_ALL_STYLES_EQUAL(Styles);
12321   Styles[0] = getChromiumStyle(FormatStyle::LK_Cpp);
12322   EXPECT_TRUE(getPredefinedStyle("Chromium", FormatStyle::LK_Cpp, &Styles[1]));
12323   EXPECT_TRUE(getPredefinedStyle("cHRoMiUM", FormatStyle::LK_Cpp, &Styles[2]));
12324   EXPECT_ALL_STYLES_EQUAL(Styles);
12326   Styles[0] = getMozillaStyle();
12327   EXPECT_TRUE(getPredefinedStyle("Mozilla", FormatStyle::LK_Cpp, &Styles[1]));
12328   EXPECT_TRUE(getPredefinedStyle("moZILla", FormatStyle::LK_Cpp, &Styles[2]));
12329   EXPECT_ALL_STYLES_EQUAL(Styles);
12331   Styles[0] = getWebKitStyle();
12332   EXPECT_TRUE(getPredefinedStyle("WebKit", FormatStyle::LK_Cpp, &Styles[1]));
12333   EXPECT_TRUE(getPredefinedStyle("wEbKit", FormatStyle::LK_Cpp, &Styles[2]));
12334   EXPECT_ALL_STYLES_EQUAL(Styles);
12336   Styles[0] = getGNUStyle();
12337   EXPECT_TRUE(getPredefinedStyle("GNU", FormatStyle::LK_Cpp, &Styles[1]));
12338   EXPECT_TRUE(getPredefinedStyle("gnU", FormatStyle::LK_Cpp, &Styles[2]));
12339   EXPECT_ALL_STYLES_EQUAL(Styles);
12341   EXPECT_FALSE(getPredefinedStyle("qwerty", FormatStyle::LK_Cpp, &Styles[0]));