samedi 24 novembre 2018

How to get emacs indent correctly inside of initialization list in c++?

I want to initialize an array in this way:

int arr
{
    3,
    4
};

But my emacs misindents it to:

int arr
{
    3,
        4
        };

Please note a missing "=". I am using an initializer list here and this syntax is correct.

Aucun commentaire:

Enregistrer un commentaire