Bug 356213 - "Completion Helper" doesn't pop up when I try to make a function as const
Summary: "Completion Helper" doesn't pop up when I try to make a function as const
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: 4.90.90
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-02 22:45 UTC by Piotr Mierzwinski
Modified: 2021-01-26 18:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented 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 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".