Bug 74347 - Contents of structures are not displayed in the class browser
Summary: Contents of structures are not displayed in the class browser
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 3.0.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 81330 147493 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-06 14:40 UTC by Matthias Gr
Modified: 2013-03-31 00:54 UTC (History)
3 users (show)

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 Matthias Gr 2004-02-06 14:40:10 UTC
Version:           3.0.0 (using KDE 3.2.0, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-166-default

If I declare a struct like this:

typedef struct list {
  list_entry *start; //!< Pointer to the first element
  list_entry *end;   //!< Pointer to the last element
  uint32 max_elements;  //!< Maximum number of allowed elements
  uint32 element_count; //!< Current number of elements
} list;

then only an entry is displayed in the class browser but I can not view the contents of the structure (the + is missing on the entry).

Definitions like this work:

typedef struct list_entry list_entry;
struct list_entry {
  void *data;       //!< Pointer to the data
  list_entry *next; //!< Next element in the list
  list_entry *prev; //!< Previous element in the list
};
Comment 1 Jens Dagerbo 2004-05-14 23:38:45 UTC
*** Bug 81330 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Gr 2004-05-26 08:47:31 UTC
The bug is still present in KDevelop 3.0.3
Comment 3 machel 2004-05-27 11:46:37 UTC
...and causes code-completion not to work for 'typedef struct' definitions.
Comment 4 Nir 2004-06-20 12:22:49 UTC
I would like to add this comment because I also found out that code completion for "C" does not work for structures typedefs.
I will be glad to provide more info if needed.
Comment 5 Boris S 2004-08-26 14:22:42 UTC
Is there any news regarding the progress on this bug ?
Yesterday, I tried 3.1.0 release, and it's still unresolved there.
More then that if in 3.0.x series code completion, at least worked 
without typedefs :

struct aa
{
int i;
int j;
}bb;
bb.[code completion here]

in 3.1.0 code completion here stopped working completely. :(
Comment 6 Boris S 2005-03-10 15:51:05 UTC
Are there any news  on this bug ? especially in the upcoming  new version ?
Comment 7 Nicolas 2005-06-05 13:55:06 UTC
Seems that "typedef struct xxx" code completion 
problem persists on Kdevelop 3.2.1,
even with:
<codecompletion>
...
<includeTypedefs>true</includeTypedefs>
...
</codecompletion>

Project setting "includeTypedefs" set to "true"
inside the C++ "codecompletion" options...

Note that "struct xxx" code completion does work
if not used through the "typedef" mehcanism.
Comment 8 Christopher Layne 2006-04-30 09:37:15 UTC
Any word on getting this to work with:

 typedef struct x_ { /* whatever */ } x;

yet? It's very common to write in this style in C, but makes it very annoying that the class browser still refuses to pick this up correctly.
Comment 9 Jens Dagerbo 2006-05-01 20:34:35 UTC
The "word" is that any improvements so far to the cpp parser is taking place in the KDevelop 4 development track. An improvement to the behaviour seen in this bug report is unlikely before KDevelop 4.
Comment 10 Andreas Pakulat 2007-07-03 14:34:55 UTC
*** Bug 147493 has been marked as a duplicate of this bug. ***
Comment 11 Andreas Pakulat 2008-07-05 21:19:52 UTC
fixed in kdevelop4
Comment 12 Aleix Pol 2013-03-31 00:54:25 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively