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 241497 - c++ enum class with values are not formatted properly
Summary: c++ enum class with values are not formatted properly
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-06 14:51 UTC by abalint21
Modified: 2014-02-07 02:40 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 abalint21 2014-02-06 14:51:18 UTC
In C++ when you create an enum class with values the formatting goes beserk.

Instead of the expected behavior
enum class test : char
{
    valueA = 'a',
    valueB = 'b',
    valueC
};


You get this:
enum class test : char
{
    valueA = 'a',
            valueB = 'b',
            valueC
};

If you don't make it a class everything is ok:
enum test : char
{
    valueA = 'a',
    valueB = 'b',
    valueC
};

Please investigate it
Thank you!
Comment 1 Alexander Simon 2014-02-06 17:03:38 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/0f05ec86a94c
Comment 2 abalint21 2014-02-06 19:48:59 UTC
Wow thanks for this quick response and fix
Comment 3 Quality Engineering 2014-02-07 02:40:19 UTC
Integrated into 'main-silver', will be available in build *201402070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0f05ec86a94c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #241497 c++ enum class with values are not formatted properly