Bug 137746

Summary: autocompletion for defined types
Product: [Applications] kdevelop Reporter: Tadeusz Szczyrba <trevor>
Component: Code completionAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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