Bug 302587

Summary: autocompletion inserts bogus spaces for "void" function arguments
Product: kdevelop Reporter: Rolf Eike Beer <kde>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: minor CC: aleixpol, kfunk
Priority: VLO    
Version: 4.3.1   
Target Milestone: 4.3.0   
Platform: openSUSE RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rolf Eike Beer 2012-06-26 19:04:41 UTC
Say you have a class member declared as "int foo(void)". When you try to implement this using the code completion you will get a signature of "int myclass::foo(void )" (note the space after the void.

Reproducible: Always




This is likely related to bug 272834. The code completer needs to be taught about the special meaning of "void".
Comment 1 Rolf Eike Beer 2013-10-09 14:44:25 UTC
Git commit 9c95600d1ca4d622ec14deb3bf16fe526ec80ba7 by Rolf Eike Beer.
Committed on 09/10/2013 at 14:41.
Pushed by dakon into branch '4.5'.

do not insert spaces in function definition after void or type with no argument name

Hint: basically done by Milian to trick me into being able to fix some of my
problems myself later.

M  +4    -1    languages/cpp/codecompletion/helpers.cpp
M  +2    -0    languages/cpp/tests/test_cppcodecompletion.cpp

http://commits.kde.org/kdevelop/9c95600d1ca4d622ec14deb3bf16fe526ec80ba7