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 115698 - Reformat with macros
Summary: Reformat with macros
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 134479 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-17 12:45 UTC by avp
Modified: 2011-04-27 16:13 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 avp 2007-09-17 12:45:47 UTC
I have this code in header
...
#define PR private:
class Test
{
PR
    int my;
public:
    Test();    
};
...
when I run reformat I become
...
class Test
{
    PR
            int my; // <- But I don't expected this
public:
    Test ();
};
I this case macros is dummy but in Qt (I work with this library) macros Q_OBJECT is base of all classes.
Comment 1 Alexander Simon 2007-10-25 08:19:37 UTC
Now text after reformat is:
#define PR private:
class Test
{
   PR
   int my;
public:
   Test();
};
Comment 2 Alexander Ioffe 2008-02-15 11:49:33 UTC
In my opinion good formating should be as follows:
class Test
PR
    int my;
public:
    Test ();
};
Comment 3 avp 2008-05-04 13:12:12 UTC
*** Issue 134479 has been marked as a duplicate of this issue. ***
Comment 4 avp 2008-05-04 13:13:19 UTC
Bad formatting appears with macros such as "slot" too.
Comment 5 Alexander Pepin 2010-10-27 13:28:16 UTC
It's not for the current release.