From b8144e0c51259994ea88bd1302776fced19a4755 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 5 Apr 2022 12:57:17 +0200 Subject: CppEditor: Use trailing return type when moving function definition ... if the original definition also used a trailing return type. Task-number: QTCREATORBUG-27132 Change-Id: Iaeeeac08601f1d931aabe12be9f89ca0240d97a2 Reviewed-by: Christian Stenger Reviewed-by: Qt CI Bot Reviewed-by: --- src/plugins/cppeditor/cppquickfix_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cppeditor/cppquickfix_test.cpp') diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp index 93845b51c8..c0ee38d6e2 100644 --- a/src/plugins/cppeditor/cppquickfix_test.cpp +++ b/src/plugins/cppeditor/cppquickfix_test.cpp @@ -6137,7 +6137,7 @@ struct Derived : public Base { original = "#include \"file.h\"\n"; expected = R"DELIM(#include "file.h" -void Derived::func() const &&noexcept {} +auto Derived::func() const &&noexcept -> void {} )DELIM"; testDocuments << CppTestDocument::create("file.cpp", original, expected); -- cgit v1.2.1