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.
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.
Now text after reformat is: #define PR private: class Test { PR int my; public: Test(); };
In my opinion good formating should be as follows: class Test PR int my; public: Test (); };
*** Issue 134479 has been marked as a duplicate of this issue. ***
Bad formatting appears with macros such as "slot" too.
It's not for the current release.