I want correct indentation with my C++ code.
The following piece of code indents properly. It nicely indents the access label and the member declaration independently.
class Test : public Base {
public:
int a;
};
However if I add a final keyword, the public won't indent half-ways anymore.
class Test final : public Base {
public:
int a;
};
If I go check with C-c C-s, in the first case the line with public returns ((inclass 1011) (access-label 1011)). But for the second case it returns ((label 1011)). Looks like c++-mode is not able to detect that the second case is also a class definition, not a function definition.
I wonder if I have to do something to c++-mode for it to support C++11 syntax.