Lines Matching refs:Style

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