(core): sheldon doesn't indent properly enum class
Summary
Uncrustify does not indent properly enum class
when using std::uint8_t
. It works with int
.
Steps to reproduce
enum class Attributes : std::uint8_t
{
NONE = 0,
POINT_COLORS = 1 << 1,
POINT_NORMALS = 1 << 2,
CELL_COLORS = 1 << 3,
CELL_NORMALS = 1 << 4,
POINT_TEX_COORDS = 1 << 5,
CELL_TEX_COORDS = 1 << 6
};
See Mesh.cpp:305
What is the current bug behavior?
Weird indentation.
What is the expected correct behavior?
Indentation is correct.
Possible fixes
It is possible to use
/* *INDENT-OFF* */
....
....
/* *INDENT-ON* */
Edited by Romain MANCIAUX