[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
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-40295 () 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 the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic