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 244600 - after reformat 'operator>' and 'operator<' has not space
Summary: after reformat 'operator>' and 'operator<' has not space
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:42 UTC by soldatov
Modified: 2014-06-05 14:00 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:42:16 UTC
class A {
public:
    A(int i) : i(i) {
    }

    bool operator  !=(const A& right) const {}
    bool operator  <(const A& right) const {}
    bool operator  <=(const A& right) const {}
    bool operator  ==(const A& right) const {}
    bool operator  >(const A& right) const {}
    bool operator  >=(const A& right) const {}

private:
    int i;
};

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

Scenario:
- reformat code
==> 'operator>' and 'operator<' has not space after 'operator'
Comment 1 Alexander Simon 2014-05-21 08:04:31 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/2cc9c53fd49b

Note:
New code style property "Space After operator Keyword" was added. The property default value is "false" for all code styles.
Comment 2 Quality Engineering 2014-05-30 02:22:17 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/2cc9c53fd49b
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244600 after reformat 'operator>' and 'operator<' has not space
Comment 3 soldatov 2014-06-05 14:00:18 UTC
verified in NetBeans IDE 8.0 patch2 (Build 201406041415)