Lines Matching refs:Style
155 const FormatStyle &Style, unsigned &LineLevel) in CompoundStatementIndenter() argument
157 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman) { in CompoundStatementIndenter()
159 } else if (Style.BreakBeforeBraces == FormatStyle::BS_GNU) { in CompoundStatementIndenter()
202 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, in UnwrappedLineParser() argument
207 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr), in UnwrappedLineParser()
260 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; in parseFile()
299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1))) in parseLevel()
341 if (Style.Language == FormatStyle::LK_Proto) { in calculateBraceTypes()
455 static bool ShouldBreakBeforeBrace(const FormatStyle &Style, in ShouldBreakBeforeBrace() argument
457 switch (Style.BreakBeforeBraces) { in ShouldBreakBeforeBrace()
475 Style.Language == FormatStyle::LK_JavaScript && isGoogScope(*Line); in parseChildBlock()
682 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman || in parseStructuralElement()
683 Style.BreakBeforeBraces == FormatStyle::BS_GNU) in parseStructuralElement()
728 if (Style.Language == FormatStyle::LK_Java || in parseStructuralElement()
729 Style.Language == FormatStyle::LK_JavaScript) in parseStructuralElement()
770 if (Style.Language == FormatStyle::LK_JavaScript) { in parseStructuralElement()
785 if (Style.Language == FormatStyle::LK_JavaScript && in parseStructuralElement()
815 if (Style.Language == FormatStyle::LK_Java || in parseStructuralElement()
816 Style.Language == FormatStyle::LK_JavaScript) { in parseStructuralElement()
834 if (Style.Language == FormatStyle::LK_Java || in parseStructuralElement()
835 Style.Language == FormatStyle::LK_JavaScript) { in parseStructuralElement()
843 if (Style.Language == FormatStyle::LK_Java && FormatTok && in parseStructuralElement()
873 if (Style.BreakBeforeBraces != FormatStyle::BS_Attach) in parseStructuralElement()
895 if (Style.Language == FormatStyle::LK_JavaScript && in parseStructuralElement()
900 if ((Style.Language == FormatStyle::LK_JavaScript || in parseStructuralElement()
901 Style.Language == FormatStyle::LK_Java) && in parseStructuralElement()
913 Style.Language != FormatStyle::LK_JavaScript) { in parseStructuralElement()
967 if (Style.Language != FormatStyle::LK_Cpp) { in tryToParseLambda()
1113 if (Style.Language == FormatStyle::LK_JavaScript) { in parseBracedList()
1148 if (Style.Language == FormatStyle::LK_JavaScript) { in parseBracedList()
1181 if (Style.Language == FormatStyle::LK_Java && FormatTok->is(tok::l_brace)) in parseParens()
1203 if (Style.Language == FormatStyle::LK_JavaScript && in parseParens()
1258 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseIfThenElse()
1260 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman || in parseIfThenElse()
1261 Style.BreakBeforeBraces == FormatStyle::BS_GNU) { in parseIfThenElse()
1273 if (Style.BreakBeforeBraces == FormatStyle::BS_Stroustrup) in parseIfThenElse()
1277 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseIfThenElse()
1309 if (Style.Language == FormatStyle::LK_Java && FormatTok->is(tok::l_paren)) { in parseTryCatch()
1313 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseTryCatch()
1315 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman || in parseTryCatch()
1316 Style.BreakBeforeBraces == FormatStyle::BS_GNU || in parseTryCatch()
1317 Style.BreakBeforeBraces == FormatStyle::BS_Stroustrup) { in parseTryCatch()
1336 ((Style.Language == FormatStyle::LK_Java || in parseTryCatch()
1337 Style.Language == FormatStyle::LK_JavaScript) && in parseTryCatch()
1353 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseTryCatch()
1355 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman || in parseTryCatch()
1356 Style.BreakBeforeBraces == FormatStyle::BS_GNU || in parseTryCatch()
1357 Style.BreakBeforeBraces == FormatStyle::BS_Stroustrup) { in parseTryCatch()
1376 if (ShouldBreakBeforeBrace(Style, InitialToken)) in parseNamespace()
1379 bool AddLevel = Style.NamespaceIndentation == FormatStyle::NI_All || in parseNamespace()
1380 (Style.NamespaceIndentation == FormatStyle::NI_Inner && in parseNamespace()
1395 if (Style.Language != FormatStyle::LK_Java) in parseNew()
1424 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseForOrWhileLoop()
1439 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseDoWhile()
1441 if (Style.BreakBeforeBraces == FormatStyle::BS_GNU) in parseDoWhile()
1466 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseLabel()
1470 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman || in parseLabel()
1471 Style.BreakBeforeBraces == FormatStyle::BS_GNU) { in parseLabel()
1500 CompoundStatementIndenter Indenter(this, Style, Line->Level); in parseSwitch()
1542 if (Style.Language == FormatStyle::LK_Cpp && in parseEnum()
1553 if (Style.Language == FormatStyle::LK_Java) { in parseEnum()
1643 ((Style.Language == FormatStyle::LK_Java || in parseRecord()
1644 Style.Language == FormatStyle::LK_JavaScript) && in parseRecord()
1678 if (ShouldBreakBeforeBrace(Style, InitialToken)) in parseRecord()
1734 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman || in parseObjCInterfaceOrImplementation()
1735 Style.BreakBeforeBraces == FormatStyle::BS_GNU) in parseObjCInterfaceOrImplementation()