Bug 368791 - Differ between initializer expression and designated initializer expression in code style settings
Summary: Differ between initializer expression and designated initializer expression i...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 02:25 EST by Jan Pohanka CLA
Modified: 2020-09-04 15:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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