diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-08-21 22:24:52 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-09-06 13:23:12 +0000 |
commit | d0d1f43e8fce639a39324e1b9671faabda6aaaec (patch) | |
tree | 3211490dcd310291b65881002e059e2c1fb86a62 /src/plugins/cppeditor/cppeditorplugin.h | |
parent | 39aff55d8a166f8ccd17cd1d703b556391a4a768 (diff) |
CppEditor: Add enclosing template on "Add Definition"
The template id for the class name is missing, but it's better than
nothing.
For example:
template<class T>
class Foo
{
void func(); // Add Definition
};
// The following lines are added
template<class T>
void Foo::func() // Should be Foo<T>::func
{
}
Change-Id: I60a0cbd348985def3dfb7037067786e942278593
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorplugin.h')
-rw-r--r-- | src/plugins/cppeditor/cppeditorplugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h index 66b94fe6fc..a665394287 100644 --- a/src/plugins/cppeditor/cppeditorplugin.h +++ b/src/plugins/cppeditor/cppeditorplugin.h @@ -145,6 +145,8 @@ private slots: void test_quickfix_InsertDefFromDecl_rvalueReference(); void test_quickfix_InsertDefFromDecl_findImplementationFile(); void test_quickfix_InsertDefFromDecl_unicodeIdentifier(); + void test_quickfix_InsertDefFromDecl_templateClass(); + void test_quickfix_InsertDefFromDecl_templateFunction(); void test_quickfix_InsertDeclFromDef(); void test_quickfix_InsertDeclFromDef_templateFuncTypename(); |