Bug 76614 - PRC-tools code section annotations remove function from class view
Summary: PRC-tools code section annotations remove function from class view
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.0.1
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-03 01:32 UTC by Benjamin Roe
Modified: 2004-03-03 01:36 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 Benjamin Roe 2004-03-03 01:32:38 UTC
Version:           3.0.1 (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.3.2 
OS:          Linux

A bit of an obscure bug - more of a wish, really. In PalmOS development it is necessary to put functions into different code sections in order to avoid the limitations of 16-bit jumps and allow >32k jumps.
To do this, the code section is specified after the function declaration. For example:

void foo(UInt16 bar) __attribute__ ((section ("filefns")));

would put foo in the "filefns" section. To make it easier to type, I normally do:

#define FILE_SECTION __attribute__ ((section ("filefns")))

but if I try to specify a function like this:

void foo(UInt16 bar) FILE_SECTION;

it isn't shown in the class view. If I type the declaration in full, it is shown, only the version using the #define isn't.

Is there any way the #defined version could be made to work with the class view? I imagine parsing all preprocessor directives might be a bit too complex to do every time the class view is updated though!
Comment 1 Benjamin Roe 2004-03-03 01:36:48 UTC
OK, ignore me, found the C++ parsing options page. Sorry.