Bug 262580 - Code completion uses old class name after a rename in header
Summary: Code completion uses old class name after a rename in header
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (other bugs)
Version First Reported In: 4.1.60
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-08 20:48 UTC by Dmitry
Modified: 2021-03-10 10:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2011-01-08 20:48:53 UTC
Version:           4.1.60 (using KDE 4.5.2) 
OS:                Linux

Add two files to a project

// file.h
class Class {
    void method();
};

// file.cpp
#include "file.h"

Now rename Class -> NewClass in file.h and add another method, so that the header looks like this:

class NewClass {
    void method(int arg);
    void newMethod();
};

Now invoke code completion in minimal.cpp - it offers to implement Class::method and Class:newMethod functions, and if executed, exactly these function definitions are created. This is wrong, because the class name is now NewClass.

Reproducible: Always
Comment 1 Alexander 2011-06-29 17:22:19 UTC
I can confirm this, I'm affected as well (KDevelop git master, 2011-06-29).
Additionally, some other problems can occur - adding base classes sometimes won't register, etc...
Comment 2 Justin Zobel 2021-03-09 22:47:52 UTC
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.
Comment 3 Alexander 2021-03-10 10:02:07 UTC
The old cpp plugin is no longer maintained, closing.