Closed HertzDevil closed 4 years ago
This PR adds support for nested constants defined in the form of anonymous enums:
struct A { enum { X, Y, Z }; };
class A X = 0u32 Y = 1u32 Z = 2u32 end
Such constructs are sometimes seen in C++ code to define compile-time constants, instead of static const. Qt uses it for QGraphicsItem::type().
static const
QGraphicsItem::type()
This PR does not address the use of anonymous enumerators in instance variables.
Good stuff as always :+1: Could you change the specs commit to be something more descriptive? Then it's ready to be ~merged~ rebased.
specs
Done.
Thanks!
This PR adds support for nested constants defined in the form of anonymous enums:
Such constructs are sometimes seen in C++ code to define compile-time constants, instead of
static const
. Qt uses it forQGraphicsItem::type()
.This PR does not address the use of anonymous enumerators in instance variables.