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

Bug 368791

Summary: Differ between initializer expression and designated initializer expression in code style settings
Product: [Tools] CDT Reporter: Jan Pohanka <xhpohanka>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cdtdoug, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jan Pohanka CLA 2012-01-17 02:25:21 EST
Build Identifier: 

For now we can set code style for initializers, but in C/C++ language there can be two variants: classic and designated initializers. It would be helpful if we can set eg. different linewrapping for these two cases as it shown in the example

// classic initializer - wrap only when needed
int x[] = { 1, 2, 3,
        4, 5, 6 };

// designated initializer - wrap each line
struct my_struct y = {
    .element1 = 1,
    .element2 = "aaa",
};

Reproducible: Always