forked from qt-creator/qt-creator
ClangFormat: Fix ignoring DisableFormat option
Task-number: QTCREATORBUG-27261 Change-Id: Ib9671f5c4499a39eb40e2a269dc73328fa5ad12f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -66,7 +66,6 @@ void adjustFormatStyleForLineBreak(clang::format::FormatStyle &style,
|
|||||||
if (replacementsToKeep == ReplacementsToKeep::IndentAndBefore)
|
if (replacementsToKeep == ReplacementsToKeep::IndentAndBefore)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
style.DisableFormat = false;
|
|
||||||
style.ColumnLimit = 0;
|
style.ColumnLimit = 0;
|
||||||
#ifdef KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED
|
#ifdef KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED
|
||||||
style.KeepLineBreaksForNonEmptyLines = true;
|
style.KeepLineBreaksForNonEmptyLines = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user