Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Indentation problems

Hi,
 
this is a bug of course and it looks like a regression compared to Helios.
Please file a bug for it.
 
Thanks,
Toni


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of kesselhaus
Sent: Monday, August 30, 2010 1:38 AM
To: CDT General developers list.
Subject: [cdt-dev] Indentation problems

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

Back to the top