| Summary: | Add C++11 override keyword when overriding methods by completion | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Nicolás Alvarez <nalvarez> |
| Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | d80c4cb286a077fa7dc9bfbb2e00d12277c41f79 | Version Fixed/Implemented In: | 5.0.0 |
| Sentry Crash Report: | |||
Fixed already. commit d80c4cb286a077fa7dc9bfbb2e00d12277c41f79 Author: Aleix Pol <aleixpol@kde.org> Date: Thu Oct 8 11:20:44 2015 +0200 Improve the signature we present of an overriden method Adds the override keyword (and a ; to end the line properly). Drops the virtual method, because it's redundant to override. Differential Revision: https://phabricator.kde.org/D382 |
class Base { virtual int foo() {} }; class Derived { foo<Ctrl-Space> }; will complete to "virtual int foo();". I'd like it to complete to "int foo() override;" instead (I don't care if with or without the virtual keyword). Maybe it should be a project option ("C++11 mode"? Or part of the coding style settings?).