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.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) in canBreak()
374 (Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_Always || in mustBreak()
375 (Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_OnlyMultiline && in mustBreak()
387 if (Style.Language == FormatStyle::LK_ObjC && in mustBreak()
433 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon in mustBreak()
441 (Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All || in mustBreak()
442 Style.BreakConstructorInitializers != FormatStyle::BCIS_BeforeColon || in mustBreak()
547 case FormatStyle::BBCDS_Allowed: in mustBreak()
549 case FormatStyle::BBCDS_Always: in mustBreak()
551 case FormatStyle::BBCDS_Never: in mustBreak()
557 case FormatStyle::RCPS_SingleLine: in mustBreak()
558 case FormatStyle::RCPS_WithPreceding: in mustBreak()
564 return Style.AlwaysBreakTemplateDeclarations != FormatStyle::BTDS_No; in mustBreak()
590 Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None) && in mustBreak()
670 Style.LambdaBodyIndentation == FormatStyle::LBI_Signature && in addTokenOnCurrentLine()
732 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in addTokenOnCurrentLine()
743 if (Style.UseTab != FormatStyle::UT_Never) in addTokenOnCurrentLine()
755 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in addTokenOnCurrentLine()
759 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterColon && in addTokenOnCurrentLine()
792 return Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak; in addTokenOnCurrentLine()
796 if ((Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak || in addTokenOnCurrentLine()
797 Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent) && in addTokenOnCurrentLine()
817 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign && in addTokenOnCurrentLine()
834 Style.Language == FormatStyle::LK_Java) { in addTokenOnCurrentLine()
864 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None) || in addTokenOnCurrentLine()
873 Style.AlignOperands != FormatStyle::OAS_DontAlign)) || in addTokenOnCurrentLine()
895 FormatStyle::BCIS_AfterColon) { in addTokenOnCurrentLine()
907 if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None) in addTokenOnCurrentLine()
1091 (Style.Language == FormatStyle::LK_ObjC && Current.is(tok::r_brace) && in addTokenOnNewLine()
1100 if (Style.LambdaBodyIndentation == FormatStyle::LBI_OuterScope && in addTokenOnNewLine()
1159 Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent; in addTokenOnNewLine()
1169 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon; in addTokenOnNewLine()
1171 Style.PackConstructorInitializers == FormatStyle::PCIS_NextLine || in addTokenOnNewLine()
1172 Style.PackConstructorInitializers == FormatStyle::PCIS_NextLineOnly; in addTokenOnNewLine()
1220 if (Style.Language == FormatStyle::LK_Java && in getNewLineColumn()
1233 if (Style.BreakBeforeBraces == FormatStyle::BS_Whitesmiths && in getNewLineColumn()
1242 (Style.LambdaBodyIndentation == FormatStyle::LBI_OuterScope && in getNewLineColumn()
1277 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent && in getNewLineColumn()
1327 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) in getNewLineColumn()
1341 case FormatStyle::RCPS_OwnLine: in getNewLineColumn()
1342 case FormatStyle::RCPS_WithFollowing: in getNewLineColumn()
1429 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in getNewLineColumn()
1433 Style.BreakInheritanceList == FormatStyle::BILS_AfterColon) { in getNewLineColumn()
1462 const FormatStyle &Style) { in hasNestedBlockInlined()
1531 Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1538 FormatStyle::BCIS_BeforeComma in moveStateToNextToken()
1542 if (Style.PackConstructorInitializers > FormatStyle::PCIS_BinPack) { in moveStateToNextToken()
1546 Style.PackConstructorInitializers != FormatStyle::PCIS_NextLine && in moveStateToNextToken()
1547 Style.PackConstructorInitializers != FormatStyle::PCIS_NextLineOnly; in moveStateToNextToken()
1553 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1557 if (Style.PackConstructorInitializers > FormatStyle::PCIS_BinPack) in moveStateToNextToken()
1571 Style.RequiresExpressionIndentation == FormatStyle::REI_Keyword) { in moveStateToNextToken()
1668 Style.AlignOperands != FormatStyle::OAS_DontAlign) || in moveStatePastFakeLParens()
1690 (Style.AlignOperands != FormatStyle::OAS_DontAlign || in moveStatePastFakeLParens()
1693 (Style.Language != FormatStyle::LK_Java && PrecedenceLevel > 0)) && in moveStatePastFakeLParens()
1694 (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign || in moveStatePastFakeLParens()
1713 if (Style.AlignOperands == FormatStyle::OAS_AlignAfterOperator) in moveStatePastFakeLParens()
1716 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) in moveStatePastFakeLParens()
1730 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) { in moveStatePastFakeLParens()
1846 (Style.ObjCBinPackProtocolList == FormatStyle::BPS_Auto && in moveStatePastScopeOpener()
1848 Style.ObjCBinPackProtocolList == FormatStyle::BPS_Always; in moveStatePastScopeOpener()
1978 if (Style.LambdaBodyIndentation == FormatStyle::LBI_OuterScope && in moveStateToNewBlock()
2012 const FormatStyle &RawStringStyle, bool DryRun, bool Newline) { in reformatRawStringLiteral()
2248 std::optional<FormatStyle>
2313 if (Style.isVerilog() || Style.Language == FormatStyle::LK_Java || in createBreakableToken()