| Summary: | [formatter] When line wrapping is needed, the line is wrapped after assignment, not at function call argument list | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Dmitry Katsubo <dma_k> | ||||||||||
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> | ||||||||||
| Status: | RESOLVED INVALID | QA Contact: | Anton Leherbauer <aleherb+eclipse> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | ||||||||||||
| Version: | 7.0 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Dmitry Katsubo
Created attachment 179270 [details]
Result of actual formatting
Created attachment 179271 [details]
Result of expected formatting
The example is not complete, it parses with a syntax error. If I fix the syntax error, the example does wrap correctly with default code style, and also with the style attached to bug 325783 (after changing the maximum line width to 80). Created attachment 181107 [details]
Result of actual formatting v2
Created attachment 181108 [details]
Result of expected formatting v2
Better example is attached. (In reply to comment #6) > Better example is attached. This specific example is a corner case, as the wrapping occurs on the semicolon and not inside the function call expression, i.e. in this case it is correct to wrap the assignment. Unfortunately there is no option to control the wrapping of assignments, but that's a different issue. |