aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-12-05 10:54:14 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2023-12-06 11:49:02 +0000
commitee4493ffa4a709c1730a2d6256886a5333374f20 (patch)
tree4d9fb252418d17fe5b65495bc987c53cf9945a01
parent997f28347bdde3c4efdb427cfb9081cdf4d531c6 (diff)
CppEditor: Fix a test
... such that it passes with both the built-in indenter and ClangFormat. The former just indents relative to the previous line, while the latter considers more context. Change-Id: I6e837c307728a9d1add16d6eb81880d54bcc89d6 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r--src/plugins/cppeditor/cppquickfix_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp
index 7244636c98..3b3d88f149 100644
--- a/src/plugins/cppeditor/cppquickfix_test.cpp
+++ b/src/plugins/cppeditor/cppquickfix_test.cpp
@@ -1737,12 +1737,12 @@ void QuickfixTest::testGeneric_data()
QTest::newRow("AddLocalDeclaration_QTCREATORBUG-26004")
<< CppQuickFixFactoryPtr(new AddDeclarationForUndeclaredIdentifier)
<< _("void func() {\n"
- " QStringList list;\n"
- " @it = list.cbegin();\n"
+ " QStringList list;\n"
+ " @it = list.cbegin();\n"
"}\n")
<< _("void func() {\n"
- " QStringList list;\n"
- " auto it = list.cbegin();\n"
+ " QStringList list;\n"
+ " auto it = list.cbegin();\n"
"}\n");
}