Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325787

Summary: [formatter] No option to define indentation policy for assignment expression
Product: [Tools] CDT Reporter: Dmitry Katsubo <dma_k>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: enhancement    
Priority: P3 CC: yevshif
Version: 7.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Result of actual formatting
none
Result of expected formatting none

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