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

Summary: Reformat with macros
Product: cnd Reporter: avp <avp>
Component: EditorAssignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.