Lines Matching refs:FormatStyle

34 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style,  in shouldIndentWrappedSelectorName()
133 const FormatStyle &Style) { in startsNextParameter()
136 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in startsNextParameter()
139 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) in startsNextParameter()
144 FormatStyle::BCIS_BeforeComma) && in startsNextParameter()
146 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma)); in startsNextParameter()
150 const FormatStyle &Style) { in opensProtoMessageField()
153 return Style.Language == FormatStyle::LK_TextProto || in opensProtoMessageField()
154 (Style.Language == FormatStyle::LK_Proto && in opensProtoMessageField()
188 getCanonicalRawStringDelimiter(const FormatStyle &Style, in getCanonicalRawStringDelimiter()
189 FormatStyle::LanguageKind Language) { in getCanonicalRawStringDelimiter()
197 const FormatStyle &CodeStyle) { in RawStringFormatStyleManager()
199 std::optional<FormatStyle> LanguageStyle = in RawStringFormatStyleManager()
202 FormatStyle PredefinedStyle; in RawStringFormatStyleManager()
218 std::optional<FormatStyle>
226 std::optional<FormatStyle>
235 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, in ContinuationIndenter()
259 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in getInitialState()
276 if (Style.Language == FormatStyle::LK_TextProto) { in getInitialState()
325 Style.LambdaBodyIndentation == FormatStyle::LBI_Signature) { in canBreak()
332 if (Style.BreakAfterReturnType == FormatStyle::RTBS_None && in canBreak()
337 if (Style.BreakAfterReturnType == FormatStyle::RTBS_ExceptShortType) { in canBreak()
382 (Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_Always || in mustBreak()
383 (Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_OnlyMultiline && in mustBreak()
395 if (Style.Language == FormatStyle::LK_ObjC && in mustBreak()
441 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon in mustBreak()
449 (Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All || in mustBreak()
450 Style.BreakConstructorInitializers != FormatStyle::BCIS_BeforeColon || in mustBreak()
555 case FormatStyle::BBCDS_Allowed: in mustBreak()
557 case FormatStyle::BBCDS_Always: in mustBreak()
559 case FormatStyle::BBCDS_Never: in mustBreak()
565 case FormatStyle::RCPS_SingleLine: in mustBreak()
566 case FormatStyle::RCPS_WithPreceding: in mustBreak()
572 return Style.BreakTemplateDeclarations != FormatStyle::BTDS_No && in mustBreak()
573 (Style.BreakTemplateDeclarations != FormatStyle::BTDS_Leave || in mustBreak()
600 Style.BreakAfterReturnType > FormatStyle::RTBS_ExceptShortType) && in mustBreak()
680 Style.LambdaBodyIndentation == FormatStyle::LBI_Signature && in addTokenOnCurrentLine()
742 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in addTokenOnCurrentLine()
753 if (Style.UseTab != FormatStyle::UT_Never) in addTokenOnCurrentLine()
765 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in addTokenOnCurrentLine()
769 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterColon && in addTokenOnCurrentLine()
802 return Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak; in addTokenOnCurrentLine()
806 if ((Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak || in addTokenOnCurrentLine()
807 Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent) && in addTokenOnCurrentLine()
827 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign && in addTokenOnCurrentLine()
845 if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java) in addTokenOnCurrentLine()
874 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None) || in addTokenOnCurrentLine()
883 Style.AlignOperands != FormatStyle::OAS_DontAlign)) || in addTokenOnCurrentLine()
905 FormatStyle::BCIS_AfterColon) { in addTokenOnCurrentLine()
917 if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None) in addTokenOnCurrentLine()
1101 (Style.Language == FormatStyle::LK_ObjC && Current.is(tok::r_brace) && in addTokenOnNewLine()
1110 if (Style.LambdaBodyIndentation == FormatStyle::LBI_OuterScope && in addTokenOnNewLine()
1169 Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent; in addTokenOnNewLine()
1179 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon; in addTokenOnNewLine()
1181 Style.PackConstructorInitializers == FormatStyle::PCIS_NextLine || in addTokenOnNewLine()
1182 Style.PackConstructorInitializers == FormatStyle::PCIS_NextLineOnly; in addTokenOnNewLine()
1230 if (Style.Language == FormatStyle::LK_Java && in getNewLineColumn()
1243 if (Style.BreakBeforeBraces == FormatStyle::BS_Whitesmiths && in getNewLineColumn()
1252 (Style.LambdaBodyIndentation == FormatStyle::LBI_OuterScope && in getNewLineColumn()
1298 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent && in getNewLineColumn()
1348 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) in getNewLineColumn()
1362 case FormatStyle::RCPS_OwnLine: in getNewLineColumn()
1363 case FormatStyle::RCPS_WithFollowing: in getNewLineColumn()
1450 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in getNewLineColumn()
1454 Style.BreakInheritanceList == FormatStyle::BILS_AfterColon) { in getNewLineColumn()
1485 const FormatStyle &Style) { in hasNestedBlockInlined()
1554 Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1561 FormatStyle::BCIS_BeforeComma in moveStateToNextToken()
1565 if (Style.PackConstructorInitializers > FormatStyle::PCIS_BinPack) { in moveStateToNextToken()
1569 Style.PackConstructorInitializers != FormatStyle::PCIS_NextLine && in moveStateToNextToken()
1570 Style.PackConstructorInitializers != FormatStyle::PCIS_NextLineOnly; in moveStateToNextToken()
1576 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1580 if (Style.PackConstructorInitializers > FormatStyle::PCIS_BinPack) in moveStateToNextToken()
1594 Style.RequiresExpressionIndentation == FormatStyle::REI_Keyword) { in moveStateToNextToken()
1691 Style.AlignOperands != FormatStyle::OAS_DontAlign) || in moveStatePastFakeLParens()
1713 (Style.AlignOperands != FormatStyle::OAS_DontAlign || in moveStatePastFakeLParens()
1716 (Style.Language != FormatStyle::LK_Java && PrecedenceLevel > 0)) && in moveStatePastFakeLParens()
1717 (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign || in moveStatePastFakeLParens()
1742 if (Style.AlignOperands == FormatStyle::OAS_AlignAfterOperator) in moveStatePastFakeLParens()
1745 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) in moveStatePastFakeLParens()
1759 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) { in moveStatePastFakeLParens()
1859 Style.TableGenBreakInsideDAGArg == FormatStyle::DAS_BreakElements) { in moveStatePastScopeOpener()
1886 (Style.ObjCBinPackProtocolList == FormatStyle::BPS_Auto && in moveStatePastScopeOpener()
1888 Style.ObjCBinPackProtocolList == FormatStyle::BPS_Always; in moveStatePastScopeOpener()
2019 if (Style.LambdaBodyIndentation == FormatStyle::LBI_OuterScope && in moveStateToNewBlock()
2061 const FormatStyle &RawStringStyle, bool DryRun, bool Newline) { in reformatRawStringLiteral()
2297 std::optional<FormatStyle>
2362 if (Style.isVerilog() || Style.Language == FormatStyle::LK_Java || in createBreakableToken()