Bug 461980

Summary: KDevelop code model ignores using declarations for types
Product: [Applications] kdevelop Reporter: Eugene Shalygin <eugene.shalygin+bugzilla.kde>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eugene Shalygin 2022-11-18 08:04:22 UTC
When a type is introduced via a using declaration, it is not fully recognized by the code model: the name is rendered colorless, have no tooltip, but it participates in code completion.

#include <string>
using std::string;

int main()
{
    string s; // "string" is colorless and has no tooltip
    s. // code completion works here
}

Introducing types via type aliases (using string = std::string) works.

Version 5.10.230370 (23.03.70)