| Summary: | Code completion in C files doesn't work for typedefs | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Boris S <boris_s> |
| Component: | Code completion | Assignee: | KDevelop Developers <kdevelop-devel> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | RedHat Enterprise Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Does this example work in a C++ project, or why do you think it is "specific for C projects"? Still hoping for an answer. Setting component to code completion. |
Version: 3.0.x (using KDE KDE 3.2.2) Installed from: RedHat RPMs OS: Linux It looks like the issue has been brought up before for C++. However this bug is specific for C projects right now. it can be reproduced easily this is the code ( important: C only project) typedef struct mystruct_ { int a; int b; }my_type_t; int func() { my_type_t var; my_type_t *ptr; ptr=malloc(sizeof(my_type_t)); var.[CTRL-SPACE] ptr->[CTRL-SPACE] } in both cases code completion fails; if you remove typedef and just use struct mystruct_ var; then code completion works perfectly. So this is an issue related to typedefs FYI C++ specific project options have typedefs are enabled for code completions. I am not sure if it supposed to affect C projects. In any case enabling it there doesn't make code completion work, unfortunately.