From kde-bugs-dist Sat Apr 30 23:03:59 2011 From: =?UTF-8?Q?Nicol=C3=A1s=20Alvarez=20?= Date: Sat, 30 Apr 2011 23:03:59 +0000 To: kde-bugs-dist Subject: [Bug 272110] New: Renaming a class affects CMake scripts Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=130420542029152 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.