forked from qt-creator/qt-creator
Don't add the default arguments when completing function definitions.
Fixes QTCREATORBUG-787 Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -1096,6 +1096,7 @@ bool CppCodeCompletion::completeConstructorOrFunction(const QList<LookupItem> &r
|
||||
foreach (Function *f, functions) {
|
||||
Overview overview;
|
||||
overview.setShowArgumentNames(true);
|
||||
overview.setShowDefaultArguments(false);
|
||||
|
||||
// gets: "parameter list) cv-spec",
|
||||
QString completion = overview(f->type()).mid(1);
|
||||
|
||||
Reference in New Issue
Block a user