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 244599 - 'operator ->' and 'operator []' has not empty line between methods after reformat
Summary: 'operator ->' and 'operator []' has not empty line between methods after ref...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-20 12:30 UTC by soldatov
Modified: 2014-06-05 13:58 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 soldatov 2014-05-20 12:30:13 UTC
#include <iostream>

typedef int value_t;

class A {
public:
    A(int i) : i(i) {}
private:
    value_t operator &() {}
    const value_t operator &() const {}
    value_t& operator *() {}
    const value_t& operator *() const {}
    value_t* operator ->() {}
    const value_t* operator ->() const {}
    value_t& operator [](std::size_t index) {}
    const value_t& operator [](std::size_t index) const {}
    int i;
};

int main() {
    A a(1);
    return 0;
}

Scenario:
- reformat code
==> 'operator ->', 'operator -> const', 'operator [] const', 'operator []' has not empty line between methods
I see:
    const value_t& operator *() const {
    }
    value_t* operator ->() {
    }
    const value_t* operator ->() const {
    }
    value_t& operator [](std::size_t index) {
    }
    const value_t& operator [](std::size_t index) const {
    }
Comment 1 Alexander Simon 2014-05-20 14:58:30 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/6cabffe5b50a
Comment 2 Quality Engineering 2014-05-30 02:22:21 UTC
Integrated into 'main-silver', will be available in build *201405300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6cabffe5b50a
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244599 'operator ->' and 'operator []' has not empty line between methods after reformat
Comment 3 Quality Engineering 2014-06-04 15:27:02 UTC
Integrated into 'releases/release80', will be available in build *201406041415* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/6a3c41c2a3f4
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244599 'operator ->' and 'operator []' has not empty line between methods after reformat
(transplanted from 6cabffe5b50a4e0b8f6f8dc10ae96e3fddea279b)
Comment 4 soldatov 2014-06-05 13:58:28 UTC
verified in NetBeans IDE 8.0 patch2 (Build 201406041415)