| Summary: | Incorrect cpp signature update when I add const to method | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Kulti <kultihell> |
| Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | piotr.mierzwinski |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
simple project to reproduce the bug
Another sample project that demonstrates this bug |
||
|
Description
Kulti
2012-02-21 20:38:58 UTC
please add a small file/project that exhibits this behavior or give us some other clues on how to reproduce the issue Created attachment 68997 [details]
simple project to reproduce the bug
Please, use attached test_294583 project to reproduce this bug.
1. Modify void doTest(int arg1, int arg2); to void doTest(int arg1, int arg2) const;
2. Alt+1
In result test_294583.cpp contains declaration.
will try to do so later, thanks Created attachment 69996 [details]
Another sample project that demonstrates this bug
The compressed sample project shows the bug manifesting if the function definition (devclaration doesn't seem to matter) has a space before the closing parenthesis of the function parameters.
In order to test, open the project, open methods.h, add "const" to the methods and confirm the declaration update with Alt-1. Note how the "const" shows up on different locations in the declarations.
:~> kdevelop --version
Qt: 4.8.0
KDE Development Platform: 4.8.1 (4.8.1) "release 483"
KDevelop: 4.3.60
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. In the newest stable version of KDevelop (5.6.2) this seems works. The issue is that this partially work and quickly stops work (in the same class/file). Partially because, when we remove (newly added and adapted in definition) 'const' then happens nothing. And the worst is that since now feature adapting 'const' in definition stops work. Therefore if we will add const at end of declaration of method then happens nothing. Unless we switch to another file and here it will work, but only till we remove 'const'. |