https://bugs.kde.org/show_bug.cgi?id=272110 Summary: Renaming a class affects CMake scripts Product: kdevelop Version: 4.2.1 Platform: Compiled Sources OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: NOR Component: general AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: nicolas.alvarez@gmail.com If a class has the same name as a CMake target, they are considered the same for the purpose of renaming. CMakeLists.txt: ADD_EXECUTABLE(BugReport foo.cpp) foo.cpp: struct BugReport { BugReport() {} }; int main() { BugReport a; } Right click on any of the three BugReport identifiers in the C++ code, and select Rename. The rename dialog will only show the three uses in the C++ code, and nothing from CMakeLists.txt, as expected. Choose a new name and accept. The CMake target in CMakeLists.txt will get renamed too. This is incorrect. -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.