Bug 461980 - KDevelop code model ignores using declarations for types
Summary: KDevelop code model ignores using declarations for types
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: git master
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-18 08:04 UTC by Eugene Shalygin
Modified: 2022-11-18 08:04 UTC (History)
0 users

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 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)