Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325787 - [formatter] No option to define indentation policy for assignment expression
Summary: [formatter] No option to define indentation policy for assignment expression
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 8.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 15:10 EDT by Dmitry Katsubo CLA
Modified: 2010-11-03 06:23 EDT (History)
1 user (show)

See Also:


Attachments
Result of actual formatting (513 bytes, application/octet-stream)
2010-09-20 15:11 EDT, Dmitry Katsubo CLA
no flags Details
Result of expected formatting (737 bytes, application/octet-stream)
2010-09-20 15:11 EDT, Dmitry Katsubo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Katsubo CLA 2010-09-20 15:10:45 EDT
Build Identifier: CDT Build id: 201006141710

The attached example demonstrates the expected behavior in case the following option is available:

"Line wrapping" tab -> Expressions -> Assignments -> Indentation policy = "Indent on column"

Reproducible: Always
Comment 1 Dmitry Katsubo CLA 2010-09-20 15:11:46 EDT
Created attachment 179272 [details]
Result of actual formatting
Comment 2 Dmitry Katsubo CLA 2010-09-20 15:11:58 EDT
Created attachment 179273 [details]
Result of expected formatting
Comment 3 Anton Leherbauer CLA 2010-11-03 05:56:58 EDT
Added alignment options for assignments and binary expressions.
Comment 4 CDT Genie CLA 2010-11-03 06:23:02 EDT
*** cdt cvs genie on behalf of aleherbau ***
Bug 322776 - [formatter] Add option to not join already wrapped lines
Bug 325787 - [formatter] No option to define indentation policy for assignment expression

[*] CodeFormatterTest.java 1.59 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java?root=Tools_Project&r1=1.58&r2=1.59

[*] DefaultCodeFormatterConstants.java 1.17 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/formatter/DefaultCodeFormatterConstants.java?root=Tools_Project&r1=1.16&r2=1.17

[*] DefaultCodeFormatterOptions.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/DefaultCodeFormatterOptions.java?root=Tools_Project&r1=1.14&r2=1.15
[*] Scribe.java 1.26 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/Scribe.java?root=Tools_Project&r1=1.25&r2=1.26
[*] CodeFormatterVisitor.java 1.84 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/CodeFormatterVisitor.java?root=Tools_Project&r1=1.83&r2=1.84

[*] LineWrappingTabPage.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/LineWrappingTabPage.java?root=Tools_Project&r1=1.14&r2=1.15
[*] FormatterMessages.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/FormatterMessages.java?root=Tools_Project&r1=1.14&r2=1.15
[*] FormatterTabPage.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/FormatterTabPage.java?root=Tools_Project&r1=1.3&r2=1.4
[*] FormatterMessages.properties 1.17 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/FormatterMessages.properties?root=Tools_Project&r1=1.16&r2=1.17