forked from qt-creator/qt-creator
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 <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user