Bug 410170 - "Update signature definition" breaks definition updated method
Summary: "Update signature definition" breaks definition updated method
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (show other bugs)
Version: 5.3.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-24 22:20 UTC by Piotr Mierzwinski
Modified: 2019-07-24 22:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2019-07-24 22:20:34 UTC
SUMMARY
Class in namespace. I update declaration of method just adding next parameter. Declaration is underlying I click into "Update signature definition". In result in definition is added _twice_ namespace name and removed opening curly bracket. Example please find below:

Original class:

namespace Preview {

class ImageViewer : public Viewer
{
	Q_OBJECT
public:
	ImageViewer();
	~ImageViewer() {}

	void init( QWidget *pParent, QList <QActionGroup *> *pToolbarActionsLst );

	[next methods]
};


Original definition:

void ImageViewer::init( QWidget *pParent )
{
	m_pParent = pParent;
        [rest of code]
}

OBSERVED RESULT
Declaration after update:
	void init( QWidget *pParent, QList <QActionGroup *> *pToolbarActionsLst );


Definition after update:
void Preview::Preview::ImageViewer::init ( QWidget* pParent, QList< QActionGroup* >* pToolbarActionsLst )

	m_pParent    = pParent;
        [rest of code]


EXPECTED RESULT
Declaration after update:
	void init( QWidget *pParent, QList <QActionGroup *> *pToolbarActionsLst );


Definition after update:
void ImageViewer::init( QWidget *pParent, QList< QActionGroup* > *pToolbarActionsLst )
{
	m_pParent    = pParent;
        [rest of code]


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: YES
(available in About System)
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60
Qt Version: 5.13


ADDITIONAL INFORMATION
Please notice I reported (long time ago) couple similar issues, where completion just breaks code.