[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 305940] New: "Move into source" on templated class member does not generate template declaratio
From: Rudy Raab <rrrperson () gmail ! com>
Date: 2012-08-28 18:11:16
Message-ID: bug-305940-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=305940
Bug ID: 305940
Severity: minor
Version: 4.3.1
Priority: NOR
Assignee: kdevelop-bugs@kdevelop.org
Summary: "Move into source" on templated class member does not
generate template declaration in source
Classification: Unclassified
OS: Linux
Reporter: rrrperson@gmail.com
Hardware: openSUSE RPMs
Status: UNCONFIRMED
Component: general
Product: kdevelop
After selecting "Move into source" on a templated class member function (e.g.
MyClass<T>& operator=(const MyClass<T>& rhs) {...}), the code moved into the
source does not include the necessary "template<typename T>" above it, and
needs to be manually added. Also, the declaration in the source is incorrect,
and is missing the template brackets before the scope resolution operator.
Reproducible: Always
Steps to Reproduce:
1. Put cursor on inline declaration of member function of a templated class.
2. Click Code -> Move into source
3. Missing "template<typename T>" in source.
Actual Results:
You get a declaration like "void MyClass::foo(T bar)" which is incorrect
Expected Results:
The declaration it should generate is like this:
template<typename T>
void MyClass<T>::foo(T bar) {...}
The class and files were auto-generated using the wizard, however I saw no
option for adding a template parameter, so I added it to the class declaration
myself.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic