Lines Matching refs:Style
23 unsigned Length, const FormatStyle &Style) { in format() argument
29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); in format()
39 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in format() argument
40 return format(Code, 0, Code.size(), Style); in format()
44 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in getGoogleJSStyleWithColumns() local
45 Style.ColumnLimit = ColumnLimit; in getGoogleJSStyleWithColumns()
46 return Style; in getGoogleJSStyleWithColumns()
51 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat() argument
52 std::string Result = format(test::messUp(Code), Style); in verifyFormat()
59 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat() argument
60 std::string Result = format(Code, Style); in verifyFormat()
104 FormatStyle Style = getGoogleJSStyleWithColumns(80); in TEST_F() local
105 Style.AlignOperands = true; in TEST_F()
108 Style); in TEST_F()
109 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
112 Style); in TEST_F()
516 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F() local
517 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline; in TEST_F()
521 Style); in TEST_F()
522 verifyFormat("var func = doSomething(function() { return 1; });", Style); in TEST_F()
526 Style); in TEST_F()
530 Style); in TEST_F()
532 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; in TEST_F()
533 verifyFormat("var func = function() { return 1; };", Style); in TEST_F()
534 verifyFormat("var func = doSomething(function() { return 1; });", Style); in TEST_F()
537 Style); in TEST_F()
541 Style); in TEST_F()
543 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
547 Style); in TEST_F()
551 Style); in TEST_F()
557 Style); in TEST_F()
563 Style); in TEST_F()
565 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty; in TEST_F()
569 Style); in TEST_F()
1102 FormatStyle Style = getGoogleJSStyleWithColumns(80); in TEST_F() local
1103 Style.JavaScriptWrapImports = true; in TEST_F()
1109 Style); in TEST_F()
1114 Style); in TEST_F()
1119 Style); in TEST_F()