| Summary: | Differ between initializer expression and designated initializer expression in code style settings | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Jan Pohanka <xhpohanka> |
| Component: | cdt-editor | Assignee: | 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: | |||
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