"Reformat Code" does not work well with multiline macros

Hello,

I downloaded and installed Sun Studio Express Release with D-Light.

Sun Studio IDE looks very nice, but there are some problems.

One of them is that "Reformat Code" does not work well in C/C++ code

with multi line macros. Here is what I see on the screen:

#define wastetime(res) { \

res = (((res / 3) + res) / 3); \

res = (((res / 7) + res) / 7); \

res = (((res / 3) + res) / 3); \

res = (((res * 7) + res) * 7); \

}

[490 byte] By [Vlad.Nosova] at [2007-11-27 8:48:53]
# 1

Unfortunately formatting has been damaged by "Post" action :-)

I'll use '_' instead of spaces to illustrate what I see on the screen:

#define wastetime(res) { \

res = (((res / 3) + res) / 3); \

__res = (((res * 7) + res) * 7); \

__res = (((res / 7) + res) / 7); \

_res = (((res / 3) + res) / 3); \

}

Vlad.Nosova at 2007-7-12 20:56:59 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
I think you can file a bug against cnd (NetBeans C/C++ Development Pack, on top of which Sun Studio is built) though http://cnd.netbeans.org/
MaximKartasheva at 2007-7-12 20:56:59 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Vlad, thank you for your report! I filed IZ for this issue: http://www.netbeans.org/issues/show_bug.cgi?id=108108Thanks,Nik
Nik.Molchanova at 2007-7-12 20:56:59 > top of Java-index,Development Tools,Solaris and Linux Development Tools...