Lines Matching refs:Style
22 unsigned Length, const FormatStyle &Style) { in format() argument
30 if (Style.isJson() && !Style.DisableFormat) { in format()
42 Replaces = reformat(Style, NewCode, Ranges); in format()
51 const FormatStyle &Style = getLLVMStyle(FormatStyle::LK_Json)) { in format() argument
52 return format(Code, 0, Code.size(), Style); in format()
56 FormatStyle Style = getLLVMStyle(FormatStyle::LK_Json); in getStyleWithColumns() local
57 Style.ColumnLimit = ColumnLimit; in getStyleWithColumns()
58 return Style; in getStyleWithColumns()
62 const FormatStyle &Style) { in verifyFormatStable() argument
63 EXPECT_EQ(Code.str(), format(Code, Style)) << "Expected code is not stable"; in verifyFormatStable()
68 const FormatStyle &Style = getLLVMStyle(FormatStyle::LK_Json)) { in verifyFormat() argument
69 verifyFormatStable(Code, Style); in verifyFormat()
70 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style)); in verifyFormat()
163 FormatStyle Style = getLLVMStyle(FormatStyle::LK_Json); in TEST_F() local
164 Style.IndentWidth = 4; in TEST_F()
173 Style); in TEST_F()
183 Style); in TEST_F()
185 Style.ColumnLimit = 80; in TEST_F()
196 Style); in TEST_F()
200 FormatStyle Style = getLLVMStyle(FormatStyle::LK_Json); in TEST_F() local
201 verifyFormatStable("{}", Style); in TEST_F()
205 Style); in TEST_F()
210 Style.DisableFormat = true; in TEST_F()
211 verifyFormatStable("{}", Style); in TEST_F()
215 Style); in TEST_F()