| Summary: | Indentation problems with typedef and enum | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Henning Riedel <kesselhaus> | ||||||
| Component: | cdt-editor | Assignee: | Anton Leherbauer <aleherb+eclipse> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Anton Leherbauer <aleherb+eclipse> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | eclipse.sprigogin | ||||||
| Version: | 7.0.1 | ||||||||
| Target Milestone: | 7.0.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows Vista | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 177784 [details] Code Style Formatter Settings based on BSD-Allman Hi folks, I have here a little annoying thing about indentation. I have CodeStyle set to BSD-Allman typedef struct { blah }; typedef struct { blah }; That also happens for things like typedef enum { XYZ_ENUM_VALUE1, }; typedef enum <-- Write typedef enum and hit <ENTER> { <-- Indented automatically, then just wrote '{' and hit <ENTER> ENUM_VALUE1 <-- Indented }; enum { XYZ_ENUM_VALUE10 = 0x00, XYZ_ENUM_VALUE11 <-- Indented if there is the = 0x00, in the line before }; Could someone enlighten me, if this is a problem with the attached settings, or are these actually bugs in the indenter? Regards, Henning