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 246062 - C++11: reformat and brace-initialization
Summary: C++11: reformat and brace-initialization
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal with 2 votes (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 250831 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-28 13:45 UTC by soldatov
Modified: 2015-03-31 02:44 UTC (History)
1 user (show)

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 soldatov 2014-07-28 13:45:47 UTC
Before reformat:
class A {
    int m = 0;
public:

    A(int o) : m {o}
    {
    }

    void foo();
};

void A::foo() {
}

int main() {
    int m{11};
    A a(11);
    a.foo();
    return 0;
}

After reformat:
    A(int o) : m {
        o
    }
    {
    }
Expected:
    A(int o) : m {o}
    {
    }
Comment 1 etrof 2015-03-02 17:45:28 UTC
*** Bug 250831 has been marked as a duplicate of this bug. ***
Comment 2 Alexander Simon 2015-03-30 10:14:09 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/5f9e50da4060
Comment 3 Quality Engineering 2015-03-31 02:44:15 UTC
Integrated into 'main-silver', will be available in build *201503310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5f9e50da4060
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #246062 C++11: reformat and brace-initialization