[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 272110] New: Renaming a class affects CMake scripts
From: Nicolás Alvarez <nicolas.alvarez () gmail ! com>
Date: 2011-04-30 23:03:59
Message-ID: bug-272110-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic