Bug 356213

Summary: "Completion Helper" doesn't pop up when I try to make a function as const
Product: [Applications] kdevelop Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal CC: piotr.mierzwinski
Priority: NOR    
Version First Reported In: 4.90.90   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Piotr Mierzwinski 2015-12-02 22:45:36 UTC
In class MyClass there is function:

declaration (header file)
int myFunction();

Definition (cpp file)
int MyClass::myFunction()
{
..,
}

When I add "const" string at end of name the function in definition or declaration then nothing happen, only function is highlighted by parser as incorrect. But when the function is const then if I remove const then "Completion Helper" pops up.

Reproducible: Always


Actual Results:  
Nothing happen, only function is highlighted by parser as incorrect.

Expected Results:  
"Completion Helper" should pop up and suggest "Update declaration/definition" with const

KDevelop and KDevplatform cloned at 30.11.2015
Comment 1 Piotr Mierzwinski 2021-01-26 18:28:49 UTC
In the newest version of KDevelop (git-master r263.gf8afa94aee) I can see only red message referring to "Problem semantic analysis". No any helper allowing to update declaration or definition where is missing "const".