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.
Summary: | Enhance code formatting | ||
---|---|---|---|
Product: | cnd | Reporter: | kosmonaffft |
Component: | Editor | Assignee: | Alexander Simon <alexvsimon> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | kosmonaffft |
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
kosmonaffft
2012-08-02 04:18:01 UTC
rvalue reference have always space both sides. so it's looks like Logical AND operator. I think this bug is in the C++ parser... If somebody can tell me where in NB source tree parser (and code model) is placed and how is it implemented (generated via Antlr, handwritten or generated via other tools), i can try fix it... you are welcome to try and fix cnd.editor/src/org/netbeans/modules/cnd/editor/reformat/ReformatterImpl.java make sure that all tests for cnd.editor passes after that and add more for fixed constructions fixed problem 2, change set: http://hg.netbeans.org/cnd-main/rev/4f4577f2b675 Integrated into 'main-golden', will be available in build *201210110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4f4577f2b675 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed mentioned problems in the RFE #216290 - Enhance code formatting Looks like NB does not reformat spaces around & in parameters declaration. |