Lines Matching refs:FormatStyle
33 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style, in shouldIndentWrappedSelectorName()
124 const FormatStyle &Style) { in startsNextParameter()
127 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in startsNextParameter()
130 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) in startsNextParameter()
135 FormatStyle::BCIS_BeforeComma) && in startsNextParameter()
137 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma)); in startsNextParameter()
141 const FormatStyle &Style) { in opensProtoMessageField()
144 return Style.Language == FormatStyle::LK_TextProto || in opensProtoMessageField()
145 (Style.Language == FormatStyle::LK_Proto && in opensProtoMessageField()
179 getCanonicalRawStringDelimiter(const FormatStyle &Style, in getCanonicalRawStringDelimiter()
180 FormatStyle::LanguageKind Language) { in getCanonicalRawStringDelimiter()
188 const FormatStyle &CodeStyle) { in RawStringFormatStyleManager()
190 std::optional<FormatStyle> LanguageStyle = in RawStringFormatStyleManager()
193 FormatStyle PredefinedStyle; in RawStringFormatStyleManager()
209 std::optional<FormatStyle>
217 std::optional<FormatStyle>
226 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, in ContinuationIndenter()
250 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in getInitialState()
266 if (Style.Language == FormatStyle::LK_TextProto) { in getInitialState()
321 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) in canBreak()
358 (Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_Always || in mustBreak()
359 Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_OnlyMultiline))) { in mustBreak()
368 if (Style.Language == FormatStyle::LK_ObjC && in mustBreak()
414 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon in mustBreak()
422 (Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All || in mustBreak()
423 Style.BreakConstructorInitializers != FormatStyle::BCIS_BeforeColon || in mustBreak()
528 case FormatStyle::BBCDS_Allowed: in mustBreak()
530 case FormatStyle::BBCDS_Always: in mustBreak()
532 case FormatStyle::BBCDS_Never: in mustBreak()
538 case FormatStyle::RCPS_SingleLine: in mustBreak()
539 case FormatStyle::RCPS_WithPreceding: in mustBreak()
545 return Style.AlwaysBreakTemplateDeclarations != FormatStyle::BTDS_No; in mustBreak()
572 Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None) && in mustBreak()
672 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in addTokenOnCurrentLine()
683 if (Style.UseTab != FormatStyle::UT_Never) in addTokenOnCurrentLine()
694 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in addTokenOnCurrentLine()
698 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterColon && in addTokenOnCurrentLine()
719 if ((Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak || in addTokenOnCurrentLine()
720 Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent) && in addTokenOnCurrentLine()
742 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign && in addTokenOnCurrentLine()
756 if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java) in addTokenOnCurrentLine()
785 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None) || in addTokenOnCurrentLine()
794 Style.AlignOperands != FormatStyle::OAS_DontAlign)) || in addTokenOnCurrentLine()
816 FormatStyle::BCIS_AfterColon) { in addTokenOnCurrentLine()
828 if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None) in addTokenOnCurrentLine()
1012 (Style.Language == FormatStyle::LK_ObjC && Current.is(tok::r_brace) && in addTokenOnNewLine()
1045 Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent; in addTokenOnNewLine()
1055 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon; in addTokenOnNewLine()
1062 (Style.PackConstructorInitializers != FormatStyle::PCIS_NextLine && in addTokenOnNewLine()
1072 Style.PackConstructorInitializers == FormatStyle::PCIS_NextLine) { in addTokenOnNewLine()
1103 if (Style.Language == FormatStyle::LK_Java && in getNewLineColumn()
1113 (Style.BreakBeforeBraces == FormatStyle::BS_Whitesmiths && in getNewLineColumn()
1123 (Style.Language == FormatStyle::LK_Proto || in getNewLineColumn()
1124 Style.Language == FormatStyle::LK_TextProto))) && in getNewLineColumn()
1152 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent && in getNewLineColumn()
1160 ((Style.Language == FormatStyle::LK_Proto || in getNewLineColumn()
1161 Style.Language == FormatStyle::LK_TextProto) && in getNewLineColumn()
1193 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) in getNewLineColumn()
1207 case FormatStyle::RCPS_OwnLine: in getNewLineColumn()
1208 case FormatStyle::RCPS_WithFollowing: in getNewLineColumn()
1288 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in getNewLineColumn()
1292 Style.BreakInheritanceList == FormatStyle::BILS_AfterColon) { in getNewLineColumn()
1321 const FormatStyle &Style) { in hasNestedBlockInlined()
1390 Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1397 FormatStyle::BCIS_BeforeComma in moveStateToNextToken()
1401 if (Style.PackConstructorInitializers > FormatStyle::PCIS_BinPack) { in moveStateToNextToken()
1404 Style.PackConstructorInitializers != FormatStyle::PCIS_NextLine; in moveStateToNextToken()
1410 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1414 if (Style.PackConstructorInitializers > FormatStyle::PCIS_BinPack) in moveStateToNextToken()
1426 Style.RequiresExpressionIndentation == FormatStyle::REI_Keyword) { in moveStateToNextToken()
1510 Style.AlignOperands != FormatStyle::OAS_DontAlign) || in moveStatePastFakeLParens()
1532 (Style.AlignOperands != FormatStyle::OAS_DontAlign || in moveStatePastFakeLParens()
1535 (Style.Language != FormatStyle::LK_Java && PrecedenceLevel > 0)) && in moveStatePastFakeLParens()
1536 (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign || in moveStatePastFakeLParens()
1556 if (Style.AlignOperands == FormatStyle::OAS_AlignAfterOperator) in moveStatePastFakeLParens()
1559 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) in moveStatePastFakeLParens()
1572 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) { in moveStatePastFakeLParens()
1655 Style.Language == FormatStyle::LK_Proto || in moveStatePastScopeOpener()
1656 Style.Language == FormatStyle::LK_TextProto || in moveStatePastScopeOpener()
1686 (Style.ObjCBinPackProtocolList == FormatStyle::BPS_Auto && in moveStatePastScopeOpener()
1688 Style.ObjCBinPackProtocolList == FormatStyle::BPS_Always; in moveStatePastScopeOpener()
1847 const FormatStyle &RawStringStyle, bool DryRun, bool Newline) { in reformatRawStringLiteral()
2083 std::optional<FormatStyle>
2110 if (Style.Language == FormatStyle::LK_Java || Style.isJavaScript() || in createBreakableToken()