Lines Matching refs:Style
155 const FormatStyle &Style, unsigned &LineLevel)
157 if (Style.BraceWrapping.AfterControlStatement)
159 if (Style.BraceWrapping.IndentBraces)
200 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style,
205 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr),
258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript;
299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1)))
341 if (Style.Language == FormatStyle::LK_Proto) {
457 static bool ShouldBreakBeforeBrace(const FormatStyle &Style,
460 return Style.BraceWrapping.AfterNamespace;
462 return Style.BraceWrapping.AfterClass;
464 return Style.BraceWrapping.AfterUnion;
466 return Style.BraceWrapping.AfterStruct;
475 Style.Language == FormatStyle::LK_JavaScript && isGoogScope(*Line);
682 if (Style.BraceWrapping.AfterObjCDeclaration)
727 if (Style.Language == FormatStyle::LK_Java ||
728 Style.Language == FormatStyle::LK_JavaScript)
769 if (Style.Language == FormatStyle::LK_JavaScript) {
784 if (Style.Language == FormatStyle::LK_JavaScript &&
815 if (Style.Language != FormatStyle::LK_Cpp) {
833 if (Style.Language == FormatStyle::LK_Java ||
834 Style.Language == FormatStyle::LK_JavaScript) {
842 if (Style.Language == FormatStyle::LK_Java && FormatTok &&
845 if (Style.Language == FormatStyle::LK_JavaScript && FormatTok &&
882 if (Style.BraceWrapping.AfterFunction)
904 if (Style.Language == FormatStyle::LK_JavaScript &&
909 if ((Style.Language == FormatStyle::LK_JavaScript ||
910 Style.Language == FormatStyle::LK_Java) &&
922 Style.Language != FormatStyle::LK_JavaScript) {
976 if (Style.Language != FormatStyle::LK_Cpp) {
1123 if (Style.Language == FormatStyle::LK_JavaScript) {
1158 if (Style.Language == FormatStyle::LK_JavaScript) {
1191 if (Style.Language == FormatStyle::LK_Java && FormatTok->is(tok::l_brace))
1213 if (Style.Language == FormatStyle::LK_JavaScript &&
1268 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1270 if (Style.BraceWrapping.BeforeElse)
1283 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1315 if (Style.Language == FormatStyle::LK_Java && FormatTok->is(tok::l_paren)) {
1319 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1321 if (Style.BraceWrapping.BeforeCatch) {
1340 ((Style.Language == FormatStyle::LK_Java ||
1341 Style.Language == FormatStyle::LK_JavaScript) &&
1357 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1359 if (Style.BraceWrapping.BeforeCatch)
1376 if (ShouldBreakBeforeBrace(Style, InitialToken))
1379 bool AddLevel = Style.NamespaceIndentation == FormatStyle::NI_All ||
1380 (Style.NamespaceIndentation == FormatStyle::NI_Inner &&
1395 if (Style.Language != FormatStyle::LK_Java)
1424 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1439 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1441 if (Style.BraceWrapping.IndentBraces)
1466 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1469 if (Style.BraceWrapping.AfterControlStatement)
1497 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1539 if (Style.Language == FormatStyle::LK_Cpp &&
1550 if (Style.Language == FormatStyle::LK_Java) {
1554 } else if (Style.Language == FormatStyle::LK_Proto) {
1643 ((Style.Language == FormatStyle::LK_Java ||
1644 Style.Language == FormatStyle::LK_JavaScript) &&
1678 if (ShouldBreakBeforeBrace(Style, InitialToken))
1734 if (Style.BraceWrapping.AfterObjCDeclaration)