This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 181115 - Source reformat fails to recognize custom types
Summary: Source reformat fails to recognize custom types
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-24 01:59 UTC by igmar
Modified: 2011-04-27 17:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igmar 2010-02-24 01:59:59 UTC
The source formatter has a problem recognizing typedeffed return types. An example :

typedef int bar;

struct mybar {
    int a;
};

struct foo {
    int (*func1)(void);
    struct mybar * (*func2)(void);
    bar (*func3)(void);
};

is formatted as 

typedef int bar;

struct mybar {
    int a;
};

struct foo {
    int (*func1)(void);
    struct mybar * (*func2)(void);
    bar(*func3)(void);
};

It compiles (since the missing whitespace isn't required), but for the sake of consistancy, it needs a minor fix :)