diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-08-21 22:33:03 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-09-06 13:23:18 +0000 |
commit | 34baa3ec472032428cd01b80692bd69126cb324a (patch) | |
tree | 05b9aaed76840a33da56904a9a83cdb8ca289568 /src/plugins/cppeditor/cppquickfix_test.cpp | |
parent | d0d1f43e8fce639a39324e1b9671faabda6aaaec (diff) |
CppEditor: Add enclosing template on "Move Definition Outside"
The template id for the class name is missing, but it's better than
nothing.
For example:
template<class T>
class Foo
{
void func() {} // Move Definition Outside Class
};
// The following lines are added
template<class T>
void Foo::func() {} // Should be Foo<T>::func
Task-number: QTCREATORBUG-16649
Change-Id: Icb560e0b87f563cbda18f4742f44bb8ef4d8a900
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfix_test.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppquickfix_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp index e405797de4..7d51e66414 100644 --- a/src/plugins/cppeditor/cppquickfix_test.cpp +++ b/src/plugins/cppeditor/cppquickfix_test.cpp @@ -4144,11 +4144,11 @@ void CppEditorPlugin::test_quickfix_MoveFuncDefOutside_template() "class Foo { void fu@nc(); };\n" "\n" "template<class T>\n" - "void Foo<T>::func() {}\n"; + "void Foo::func() {}\n"; // Should be Foo<T>::func ; MoveFuncDefOutside factory; - QuickFixOperationTest(singleDocument(original, expected), &factory, {}, 0, "QTCREATORBUG-16649"); + QuickFixOperationTest(singleDocument(original, expected), &factory); } /// Check: revert test_quickfix_MoveFuncDefOutside_MemberFuncToCpp() |