https://bugs.kde.org/show_bug.cgi?id=364906
Bug ID: 364906
Summary: Adapt signature breaks code if in declaration of
function there is no parameter name
Product: kdevelop
Version: git master
Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Language Support: CPP (Clang-based)
Assignee: [email protected]
Reporter: [email protected]
There is following code:
declaration (header file):
void slotUrlActivated(const QUrl&);
definition (cpp file):
void MainWindow::slotUrlActivated( const QUrl &u )
{
qDebug() << "MainWindow::slotUrlActivated" << u.path();
}
Being in header file.
In above declaration I insert single space before "const" and after ampersand.
Appears helper: "Adapt signature 1. Update definition signature 0. Hide". I
choose 1
In result code becomes broken - a bit in declaration, and more in definition.
Reproducible: Always
Actual Results:
header:
void MainWindow::slotUrlActivated ( const QUrl & )
;
definition:
void MainWindow::slotUrlActivated( const QUrl &u )
{
qDebug() << "MainWindow::slotUrlActivated" << .path();
}
Expected Results:
header:
void MainWindow::slotUrlActivated ( const QUrl & );
definition:
void MainWindow::slotUrlActivated( const QUrl &u )
{
qDebug() << "MainWindow::slotUrlActivated" << u.path();
}
KDevelop and KDevplatform cloned and built at Jun 13, 2016. Branch 5.0.
Plasma 5.6.5, KF-5.23 built with Qt-5.6.0
--
You are receiving this mail because:
You are watching all bug changes.