Lines Matching refs:FormatStyle

30 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style,  in shouldIndentWrappedSelectorName()
121 const FormatStyle &Style) { in startsNextParameter()
124 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) in startsNextParameter()
126 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) in startsNextParameter()
131 FormatStyle::BCIS_BeforeComma) && in startsNextParameter()
133 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma)); in startsNextParameter()
137 const FormatStyle &Style) { in opensProtoMessageField()
140 return Style.Language == FormatStyle::LK_TextProto || in opensProtoMessageField()
141 (Style.Language == FormatStyle::LK_Proto && in opensProtoMessageField()
174 getCanonicalRawStringDelimiter(const FormatStyle &Style, in getCanonicalRawStringDelimiter()
175 FormatStyle::LanguageKind Language) { in getCanonicalRawStringDelimiter()
184 const FormatStyle &CodeStyle) { in RawStringFormatStyleManager()
186 llvm::Optional<FormatStyle> LanguageStyle = in RawStringFormatStyleManager()
189 FormatStyle PredefinedStyle; in RawStringFormatStyleManager()
207 llvm::Optional<FormatStyle>
215 llvm::Optional<FormatStyle>
224 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, in ContinuationIndenter()
248 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in getInitialState()
264 if (Style.Language == FormatStyle::LK_TextProto) { in getInitialState()
313 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) in canBreak()
344 if (Style.Language == FormatStyle::LK_ObjC && in mustBreak()
386 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon in mustBreak()
393 (Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All || in mustBreak()
394 Style.BreakConstructorInitializers != FormatStyle::BCIS_BeforeColon || in mustBreak()
424 Style.Language == FormatStyle::LK_JavaScript) && in mustBreak()
486 return Style.AlwaysBreakTemplateDeclarations != FormatStyle::BTDS_No; in mustBreak()
498 Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None)) || in mustBreak()
586 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in addTokenOnCurrentLine()
596 if (Style.UseTab != FormatStyle::UT_Never) in addTokenOnCurrentLine()
606 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in addTokenOnCurrentLine()
609 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterColon && in addTokenOnCurrentLine()
630 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak && in addTokenOnCurrentLine()
650 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign && in addTokenOnCurrentLine()
663 if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java) in addTokenOnCurrentLine()
691 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None) || in addTokenOnCurrentLine()
700 Style.AlignOperands != FormatStyle::OAS_DontAlign)) || in addTokenOnCurrentLine()
720 FormatStyle::BCIS_AfterColon) { in addTokenOnCurrentLine()
732 if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None) in addTokenOnCurrentLine()
815 (Style.Language != FormatStyle::LK_JavaScript || in addTokenOnNewLine()
909 (Style.Language == FormatStyle::LK_ObjC && Current.is(tok::r_brace) && in addTokenOnNewLine()
939 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon; in addTokenOnNewLine()
983 if (Style.Language == FormatStyle::LK_Java && in getNewLineColumn()
988 if (Style.BreakBeforeBraces == FormatStyle::BS_Whitesmiths && in getNewLineColumn()
998 (Style.Language == FormatStyle::LK_Proto || in getNewLineColumn()
999 Style.Language == FormatStyle::LK_TextProto))) && in getNewLineColumn()
1030 ((Style.Language == FormatStyle::LK_Proto || in getNewLineColumn()
1031 Style.Language == FormatStyle::LK_TextProto) && in getNewLineColumn()
1062 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) { in getNewLineColumn()
1134 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) in getNewLineColumn()
1137 Style.BreakInheritanceList == FormatStyle::BILS_AfterColon) in getNewLineColumn()
1164 const FormatStyle &Style) { in hasNestedBlockInlined()
1223 Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1231 (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma in moveStateToNextToken()
1244 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1334 Style.AlignOperands != FormatStyle::OAS_DontAlign) || in moveStatePastFakeLParens()
1358 (Style.AlignOperands != FormatStyle::OAS_DontAlign || in moveStatePastFakeLParens()
1361 (Style.Language != FormatStyle::LK_Java && *I > 0)) && in moveStatePastFakeLParens()
1362 (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign || in moveStatePastFakeLParens()
1377 if (Style.AlignOperands == FormatStyle::OAS_AlignAfterOperator) in moveStatePastFakeLParens()
1380 if (Style.AlignOperands != FormatStyle::OAS_DontAlign) in moveStatePastFakeLParens()
1393 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) in moveStatePastFakeLParens()
1465 Style.Language == FormatStyle::LK_Proto || in moveStatePastScopeOpener()
1466 Style.Language == FormatStyle::LK_TextProto || in moveStatePastScopeOpener()
1496 (Style.ObjCBinPackProtocolList == FormatStyle::BPS_Auto && in moveStatePastScopeOpener()
1498 Style.ObjCBinPackProtocolList == FormatStyle::BPS_Always; in moveStatePastScopeOpener()
1506 (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) || in moveStatePastScopeOpener()
1535 if (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) in moveStatePastScopeOpener()
1649 const FormatStyle &RawStringStyle, bool DryRun, bool Newline) { in reformatRawStringLiteral()
1886 llvm::Optional<FormatStyle>
1912 if (Style.Language == FormatStyle::LK_Java || in createBreakableToken()
1913 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp() || in createBreakableToken()