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:
Artem Sokolovskii
2022-08-02 15:20:25 +02:00
parent b732801d6a
commit 176c3906fe

View File

@@ -66,7 +66,6 @@ void adjustFormatStyleForLineBreak(clang::format::FormatStyle &style,
if (replacementsToKeep == ReplacementsToKeep::IndentAndBefore)
return;
style.DisableFormat = false;
style.ColumnLimit = 0;
#ifdef KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED
style.KeepLineBreaksForNonEmptyLines = true;