https://bugs.kde.org/show_bug.cgi?id=359062
Bug ID: 359062
Summary: Renaming class changes filename but not #include
directives
Product: kdevelop
Version: 4.7.1
Platform: Ubuntu Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Language Support: CPP
Assignee: [email protected]
Reporter: [email protected]
I think the summary is pretty self-descriptive; when you rename a class (using
right-click > rename "Foo"), it renames the filename of the file as well to
reflect the changes (as expected and a nice feature), however it does not
change any #include directives pointing to the file, leading to lots of manual
labour.
Reproducible: Always
Steps to Reproduce:
1. Declare a class named Foo in a file called Foo.hpp
2. Create a file that #include's Foo.hpp (Foo.cpp for example)
3. Rename the class Foo to "Bar" using the renaming tool
Actual Results:
Any declarations, definitions and usages of class Foo are changed. The file
Foo.hpp is also changed. However any #include directives pointing to Foo.hpp
are not changed, making them obsolete and breaks compilation.
Expected Results:
Any declarations, definitions and usages of class Foo are changed. The file
Foo.hpp is also changed, along with any #include directive pointing to said
file.
Using official Ubuntu 15.10 packages, which provides version 4.7.1 using KDE
Development Platform 4.14.13
--
You are receiving this mail because:
You are watching all bug changes.