reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/ContinuationIndenter.cpp
  248   if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash &&
  264   if (Style.Language == FormatStyle::LK_TextProto) {
  282                                    Current.closesBlockOrBlockTypeList(Style)))
  313     if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None)
  335       Current.closesBlockOrBlockTypeList(Style))
  339   if (Style.Language == FormatStyle::LK_ObjC &&
  344   if ((startsNextParameter(Current, Style) || Previous.is(tok::semi) ||
  346         Style.isCpp() &&
  351         (Previous.NestingLevel == 1 || Style.BinPackParameters)) ||
  352        (Style.BreakBeforeTernaryOperators && Current.is(TT_ConditionalExpr) &&
  354        (!Style.BreakBeforeTernaryOperators &&
  362        opensProtoMessageField(Previous, Style)) &&
  363       Style.ColumnLimit > 0 &&
  369       Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon
  376       (Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All ||
  377        Style.BreakConstructorInitializers != FormatStyle::BCIS_BeforeColon ||
  378        Style.ColumnLimit != 0))
  390   if (Current.isMemberAccess() && Style.ColumnLimit != 0 &&
  391       State.Column + getLengthToNextOperator(Current) > Style.ColumnLimit &&
  405         Style.Language == FormatStyle::LK_JavaScript) &&
  418   if (Style.AlwaysBreakBeforeMultilineStrings &&
  419       (NewLineColumn == State.FirstIndent + Style.ContinuationIndentWidth ||
  467       return Style.AlwaysBreakTemplateDeclarations != FormatStyle::BTDS_No;
  478         (!Style.isCSharp() ||
  479          Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None)) ||
  487   if (Style.ColumnLimit != 0 && Previous.BlockKind == BK_Block &&
  567   if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash &&
  577     if (Style.UseTab != FormatStyle::UT_Never)
  587   if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma &&
  590   if (Style.BreakInheritanceList == FormatStyle::BILS_AfterColon &&
  597         std::max(State.FirstIndent + Style.ContinuationIndentWidth,
  611   if (Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak &&
  614         Style.Cpp11BracedListStyle)) &&
  631   if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign &&
  635   if (State.Stack.back().AvoidBinPacking && startsNextParameter(Current, Style))
  641   if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java)
  669          Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None) ||
  670         (P->is(TT_ConditionalExpr) && Style.BreakBeforeTernaryOperators);
  676     if ((!BreakBeforeOperator && !(HasTwoOperands && Style.AlignOperands)) ||
  695              Style.BreakConstructorInitializers ==
  708     if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None)
  756       (State.Column <= Style.ColumnLimit / 3 ||
  758     Penalty += Style.PenaltyBreakFirstLessLess;
  773       (Style.Language != FormatStyle::LK_JavaScript ||
  788             (shouldIndentWrappedSelectorName(Style, State.Line->Type)
  790                             State.FirstIndent + Style.ContinuationIndentWidth)
  813           Style.ContinuationIndentWidth;
  832     unsigned MaxEmptyLinesToKeep = Style.MaxEmptyLinesToKeep + 1;
  864       !Style.isCpp() && Current.is(tok::r_brace) && State.Stack.size() > 1 &&
  884        opensProtoMessageField(*PreviousNonComment, Style)))
  894         Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon;
  897         (!Style.AllowAllParametersOfDeclarationOnNextLine &&
  899         (!Style.AllowAllArgumentsOnNextLine &&
  901         (!Style.AllowAllConstructorInitializersOnNextLine &&
  910         Style.AllowAllConstructorInitializersOnNextLine)
  925       Style.ContinuationIndentWidth;
  932   if (Style.Language == FormatStyle::LK_Java &&
  935                     State.Stack.back().Indent + Style.ContinuationIndentWidth);
  937   if (Style.BreakBeforeBraces == FormatStyle::BS_Whitesmiths &&
  939     return (Style.IndentWidth * State.Line->First->IndentLevel) +
  940            Style.IndentWidth;
  947         (Style.Language == FormatStyle::LK_Proto ||
  948          Style.Language == FormatStyle::LK_TextProto))) &&
  950     if (Current.closesBlockOrBlockTypeList(Style))
  980        ((Style.Language == FormatStyle::LK_Proto ||
  981          Style.Language == FormatStyle::LK_TextProto) &&
 1009       (!Style.IndentWrappedFunctionNames &&
 1015       if (shouldIndentWrappedSelectorName(Style, State.Line->Type))
 1017                              State.FirstIndent + Style.ContinuationIndentWidth);
 1061       Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon)
 1064       Style.BreakInheritanceList == FormatStyle::BILS_AfterColon)
 1068     return State.FirstIndent + Style.ConstructorInitializerIndentWidth;
 1078     return State.Stack.back().Indent + Style.ContinuationIndentWidth;
 1105   if (Style.BreakBeforeTernaryOperators && Current.is(tok::question))
 1107   if (!Style.BreakBeforeTernaryOperators && Current.isNot(tok::colon)) {
 1124       Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon) {
 1132         (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma
 1136     if (Style.ConstructorInitializerAllOnOneLineOrOnePerLine) {
 1139           !Style.AllowAllConstructorInitializersOnNextLine;
 1145       Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) {
 1147         State.FirstIndent + Style.ConstructorInitializerIndentWidth;
 1149     if (Style.ConstructorInitializerAllOnOneLineOrOnePerLine)
 1154         State.FirstIndent + Style.ConstructorInitializerIndentWidth;
 1236                      Style.AlignOperands) ||
 1257         (Style.AlignOperands || *I < prec::Assignment) &&
 1259          (Style.Language != FormatStyle::LK_Java && *I > 0)) &&
 1260         (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign ||
 1275         Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign)
 1285       NewParenState.Indent += Style.ContinuationIndentWidth;
 1323       opensProtoMessageField(Current, Style)) {
 1324     if (Current.opensBlockOrBlockTypeList(Style)) {
 1325       NewIndent = Style.IndentWidth +
 1328       NewIndent = State.Stack.back().LastSpace + Style.ContinuationIndentWidth;
 1335                       Style.Language == FormatStyle::LK_Proto ||
 1336                       Style.Language == FormatStyle::LK_TextProto ||
 1337                       !Style.BinPackArguments ||
 1345     NewIndent = Style.ContinuationIndentWidth +
 1366         (Style.ObjCBinPackProtocolList == FormatStyle::BPS_Auto &&
 1367          Style.BinPackParameters) ||
 1368         Style.ObjCBinPackProtocolList == FormatStyle::BPS_Always;
 1371         (State.Line->Type != LT_ObjCDecl && Style.BinPackParameters) ||
 1375         (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) ||
 1377         (!State.Line->MustBeDeclaration && !Style.BinPackArguments) ||
 1378         (Style.ExperimentalAutoDetectBinPacking &&
 1384       if (Style.ColumnLimit) {
 1404     if (Style.Language == FormatStyle::LK_JavaScript && EndsInComma)
 1460           Style.ColumnLimit)
 1478                                ? Style.ObjCBlockIndentWidth
 1479                                : Style.IndentWidth);
 1507       getCanonicalRawStringDelimiter(Style, RawStringStyle.Language);
 1568                                  ? CurrentIndent + Style.IndentWidth
 1631       *NewCode, FirstStartColumn, Style.TabWidth, Encoding);
 1637       StartColumn + NewPrefixSize > Style.ColumnLimit
 1638           ? StartColumn + NewPrefixSize - Style.ColumnLimit
 1647   return Fixes.second + PrefixExcessCharacters * Style.PenaltyExcessCharacter;
 1662     return Style.PenaltyExcessCharacter * (ColumnsUsed - getColumnLimit(State));
 1715     Penalty += Style.PenaltyExcessCharacter * ExcessCharacters;
 1766     if (Style.Language == FormatStyle::LK_Java ||
 1767         Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp() ||
 1767         Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp() ||
 1768         !Style.BreakStringLiterals || !AllowBreak)
 1810           State.Line->InPPDirective, Encoding, Style);
 1813     if (!Style.ReflowComments ||
 1822         State.Line->InPPDirective, Encoding, Style, Whitespaces.useCRLF());
 1826     if (!Style.ReflowComments ||
 1832         /*InPPDirective=*/false, Encoding, Style);
 1849     ColumnLimit = Style.ColumnLimit;
 1857                                  ? Style.PenaltyBreakString
 1858                                  : Style.PenaltyBreakComment;
 1917           Penalty += Style.PenaltyExcessCharacter *
 1980               Style.PenaltyExcessCharacter;
 2120                     Style.PenaltyExcessCharacter;
 2174     Penalty += Style.PenaltyExcessCharacter *
 2213   return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0);
 2230   if (Style.ColumnLimit != 0 && Style.BreakStringLiterals &&
 2230   if (Style.ColumnLimit != 0 && Style.BreakStringLiterals &&
 2232           Style.ColumnLimit)