It seems like cc-mode indentation is working rather well, however I seem to have run into a minor issue when creating a few enums in C++.
Emacs seems to handle almost all kinds of enums rather well now, even the "enum class" types, however, for some reason the following one seems broken:
class Test
{
public:
enum t1
{
T0 = 1,
T1, <----- ?
T2 = 3
};
};
Removing the "t1" identifier fixes the "incorrect" indentation, but the identifier is still desirable in some cases.
So, the the "correct" indentation would be:
class Test
{
public:
enum t1
{
T0 = 1,
T1,
T2 = 3
};
};
Is there any way of fixing this, and do anyone know if this is the intended behavior?
This occurs with GNU Emacs 25.0.50.4, with accompanying cc-mode. Running with --no-init-file
produces the same results, although with gnu-style indentation.