From ee4493ffa4a709c1730a2d6256886a5333374f20 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 5 Dec 2023 10:54:14 +0100 Subject: [PATCH] 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 Reviewed-by: Reviewed-by: Qt CI Bot --- src/plugins/cppeditor/cppquickfix_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp index 7244636c98c..3b3d88f1491 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"); }