https://bugs.kde.org/show_bug.cgi?id=373452

            Bug ID: 373452
           Summary: Renaming class doesn't rename destructor
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: nicolas.alva...@gmail.com
  Target Milestone: ---

Created attachment 102697
  --> https://bugs.kde.org/attachment.cgi?id=102697&action=edit
Rename dialog

If I rename a class, the constructor is also renamed, but the destructor isn't
and the result doesn't compile. Strangely, the rename dialog looks as if it was
going to rename the destructor too, but then it doesn't.

Code:

class Foo {
public:
    Foo();
    ~Foo();
};

Foo::Foo() {
}

Foo::~Foo() {
}


Right-click on the class name, select "Rename Foo". The dialog looks like it's
going to rename the destructor (screenshot attached). However, once I actually
click the Rename button, I get this:

class Bar {
public:
    Bar();
    ~Foo();
};

Bar::Bar() {
}

Bar::~Foo() {
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to