From kdevelop-bugs Tue Aug 28 18:11:16 2012 From: Rudy Raab Date: Tue, 28 Aug 2012 18:11:16 +0000 To: kdevelop-bugs Subject: [Bug 305940] New: "Move into source" on templated class member does not generate template declaratio Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=134617755112781 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& operator=(const MyClass& rhs) {...}), the code moved into the source does not include the necessary "template" 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" 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 void MyClass::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