forked from qt-creator/qt-creator
CppEditor: Fix "Add Definition" quickfix for function parameters
... whose type is a template. Fixes: QTCREATORBUG-25560 Change-Id: I1d626f9376e8802a87ca1a28099932ccbf744d47 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -3839,7 +3839,7 @@ void CppEditorPlugin::test_quickfix_InsertDefFromDecl_headerSource_basic2()
|
||||
QByteArray expected;
|
||||
|
||||
// Header File
|
||||
original = "void f()@;\n";
|
||||
original = "void f(const std::vector<int> &v)@;\n";
|
||||
expected = original;
|
||||
testDocuments << QuickFixTestDocument::create("file.h", original, expected);
|
||||
|
||||
@@ -3854,7 +3854,7 @@ void CppEditorPlugin::test_quickfix_InsertDefFromDecl_headerSource_basic2()
|
||||
"\n"
|
||||
"int x;\n"
|
||||
"\n"
|
||||
"void f()\n"
|
||||
"void f(const std::vector<int> &v)\n"
|
||||
"{\n"
|
||||
"\n"
|
||||
"}\n"
|
||||
|
||||
Reference in New Issue
Block a user