[Bug 55201] New: The parser doesn't find all the structures
Roberto Raggi
roberto at kdevelop.org
Wed Feb 26 21:13:07 UTC 2003
On Wed, 2003-02-26 at 10:31, Amilcar do Carmo Lucas wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=55201
> Summary: The parser doesn't find all the structures
> Product: kdevelop
> Version: unspecified
> Platform: SuSE RPMs
> OS/Version: Linux
> Status: UNCONFIRMED
> Severity: normal
> Priority: NOR
> Component: general
> AssignedTo: kdevelop-devel at barney.cs.uni-potsdam.de
> ReportedBy: a.lucas at tu-bs.de
>
>
> Version: (using KDE KDE 3.1)
> Installed from: SuSE RPMs
> Compiler: gcc 2.95.3
> OS: Linux
>
> I have some structures on some .h files in a Subproject folder. This .h files are included in the project.
> The structures that are declared like the folowing get parsed:
> struct t_bankstates
> {
> int cnt; //!< Bank state machine counter
> t_bankstate state; //!< Current state
> t_bankstate state_trace; //!< Current state, trace output
> };
>
> The structures that are declared like the next don't:
> typedef struct{
> sc_in<bool> clock; ///< Input the clock signal
> sc_in< SPIXEL > data; ///< Input pixel data
> sc_out<bool> enable; ///< Input enable signal
> sc_in<bool> strobe; ///< Input signal strobe
> }busP_dpu_from_dpu;
maybe, i've understand the bug #55201. the point is the bad support of
type-alias(e.g. typedefs) and anonymous types in the current classstore..
this isn't a problem of the parser because it can parse and "understand"
typedefs and anonymous structure, but it don't know how to store it :)
for now if you declare an anonymous struct like
typedef struct{
sc_in<bool> clock; ///< Input the clock signal
sc_in< SPIXEL > data; ///< Input pixel data
sc_out<bool> enable; ///< Input enable signal
sc_in<bool> strobe; ///< Input signal strobe
}busP_dpu_from_dpu;
in a file called "your_file.h" you'll see the entry "(your_file_1)" into the
classbrowser that rapresent your structure.. but you don't see an entry
"busP_dpu_from_dpu" because it is only an alias not a declaration!!!
maybe, a possibile solution could be to rename "declaration" (like
your_file_1) if the declaration in "typedef" is an anonymous.
ciao robe
More information about the KDevelop-devel
mailing list