Version: unspecified (using KDE 4.8.0) OS: Linux Application Version: 4.2.82 Reproducible: Always Steps to Reproduce: 1. Add const to any method in header file, e.g. you have void RemoveBarrier(IBarrierPtr barrier); and want to do this method constant: void RemoveBarrier(IBarrierPtr barrier) const; 2. Update definition signature(Alt+1) Actual Results: void DungeonGraph::RemoveBarrier ( advangeon::IBarrierPtr barrier const ) Expected Results: void DungeonGraph::RemoveBarrier ( advangeon::IBarrierPtr barrier ) const
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'.