[Format] Remove unused LineContainsContinuedForLoopSection. NFC

Differential Revision: https://reviews.llvm.org/D120282
This commit is contained in:
Sam McCall 2022-02-21 22:42:35 +01:00
parent 3b42686869
commit 48dc980847
2 changed files with 0 additions and 9 deletions

View File

@ -253,7 +253,6 @@ LineState ContinuationIndenter::getInitialState(unsigned FirstIndent,
State.Stack.push_back(ParenState(/*Tok=*/nullptr, FirstIndent, FirstIndent,
/*AvoidBinPacking=*/false,
/*NoLineBreak=*/false));
State.LineContainsContinuedForLoopSection = false;
State.NoContinuation = false;
State.StartOfStringLiteral = 0;
State.StartOfLineLevel = 0;
@ -343,8 +342,6 @@ bool ContinuationIndenter::mustBreak(const LineState &State) {
return true;
if (CurrentState.BreakBeforeClosingParen && Current.is(tok::r_paren))
return true;
if (Previous.is(tok::semi) && State.LineContainsContinuedForLoopSection)
return true;
if (Style.Language == FormatStyle::LK_ObjC &&
Style.ObjCBreakBeforeNestedBlockParam &&
Current.ObjCSelectorNameParts > 1 &&

View File

@ -419,9 +419,6 @@ struct LineState {
/// The token that needs to be next formatted.
FormatToken *NextToken;
/// \c true if this line contains a continued for-loop section.
bool LineContainsContinuedForLoopSection;
/// \c true if \p NextToken should not continue this line.
bool NoContinuation;
@ -468,9 +465,6 @@ struct LineState {
return NextToken < Other.NextToken;
if (Column != Other.Column)
return Column < Other.Column;
if (LineContainsContinuedForLoopSection !=
Other.LineContainsContinuedForLoopSection)
return LineContainsContinuedForLoopSection;
if (NoContinuation != Other.NoContinuation)
return NoContinuation;
if (StartOfLineLevel != Other.StartOfLineLevel)