Bug 137746 - autocompletion for defined types
Summary: autocompletion for defined types
Status: RESOLVED DUPLICATE of bug 63134
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-22 23:13 UTC by Tadeusz Szczyrba
Modified: 2006-12-30 16:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tadeusz Szczyrba 2006-11-22 23:13:50 UTC
Version:            (using KDE KDE 3.5.5)

autocompletion of field names of variables being defined types from structure types could work in more sophisticated definitions.

Presently (kdevelop 3.3.93) it works for variables whose type is defined this way:

struct sttype1 {
      type1 field1;
      type2 field2;
      ...
};

typedef struct sttype1 sttype1_t;
typedef struct sttype1* sttype1_pt;

but doesn't work when variable is of type defined this way:

typedef struct sttype1 {
      type1 field1;
      type2 field2;
      ...
} sttype1_t,*sttype1_pt ;

unfortunaly such constructs as in the second example are found in some libraries.
BTW autocompletion of field names for variable of type sttype1_pt is in 3.3.93 triggered with '.' and '->' operators (ideally only the second one should trigger - first one is syntax error).
Comment 1 Amilcar do Carmo Lucas 2006-11-23 09:26:27 UTC
This is probably a parser issue, but I'm filing it as code completion for now.
Comment 2 Andreas Pakulat 2006-12-30 16:01:26 UTC

*** This bug has been marked as a duplicate of 63134 ***