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

            Bug ID: 365420
           Summary: Use of "Adapt signature" for rename argument in
                    constructor inserts keyword void in declaration
           Product: kdevelop
           Version: git master
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: piotr.mierzwin...@gmail.com

I rename argument in constructor definition (cpp file). After choosing "Update
declaration signature" in "Adapt Signature" helper I get constructor as void
type in declaration (header).

There is code
cpp file:
MyClass::MyClass( int *pointer, const QString &string )
{

}

header file:
    MyClass( int *pointer, const QString &string );

For example I rename string to string2 and chose  "Update declaration
signature" in "Adapt Signature".

Reproducible: Always

Steps to Reproduce:
1. Rename one of parameter in constructor
2. Choose "Update declaration signature" in "Adapt Signature"
3. Check header file

Actual Results:  
MyClass::MyClass( int *pointer, const QString &string2 )
{

}

header file:
    void MyClass ( int *pointer, const QString &string2 );

Expected Results:  
MyClass::MyClass( int *pointer, const QString &string2 )
{

}

header file:
     MyClass ( int *pointer, const QString &string );

KDevelop and KDevPlatform cloned and built from branch 5.0, at 08-07-2016
Plasma 5.7.0, KFrameworks 5.23, Qt-5.7

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

Reply via email to