diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-07-28 22:16:45 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-08-19 13:00:42 +0000 |
commit | e920921f277fd8cbde509f92c5b3913f228da1c0 (patch) | |
tree | 2d91912f1d1b0230160648ff54005fb0dc6eb5f9 /src/plugins/cppeditor/cppeditorplugin.h | |
parent | 678e6e4ddfaaae0c25e8c573e90464453750439f (diff) |
CppEditor: Fix "Move Definition to Class" for function in template class
template<class T>
class Foo { void func(); };
template<class T>
void Foo<T>::func() {} // Move to class
Prior to this change, this currently leaves behind `template<class T>`
where the definition used to be:
template<class T>
class Foo { void func() {} };
template<class T>
Task-number: QTCREATORBUG-14354
Change-Id: I8e1f75a3ae50619a7bae9c63d3798b16bcfea545
Reviewed-by: Lorenz Haas <lorenz.haas@histomatics.de>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorplugin.h')
-rw-r--r-- | src/plugins/cppeditor/cppeditorplugin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h index ea2d138d10..fd9df1d749 100644 --- a/src/plugins/cppeditor/cppeditorplugin.h +++ b/src/plugins/cppeditor/cppeditorplugin.h @@ -186,6 +186,7 @@ private slots: void test_quickfix_MoveFuncDefToDecl_structWithAssignedVariable(); void test_quickfix_MoveFuncDefToDecl_macroUses(); void test_quickfix_MoveFuncDefToDecl_override(); + void test_quickfix_MoveFuncDefToDecl_template(); void test_quickfix_AssignToLocalVariable_templates(); |