File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import codingstandards.cpp.Linkage
2020
2121class UserTypeDefinition extends TypeDeclarationEntry {
2222 UserTypeDefinition ( ) {
23- ( isDefinition ( ) or getDeclaration ( ) instanceof TypedefType ) and
23+ isDefinition ( ) and
2424 not getDeclaration ( ) .( Class ) .isAnonymous ( ) and
2525 not getDeclaration ( ) .( Union ) .isAnonymous ( ) and
2626 not getDeclaration ( ) .( Enum ) .isAnonymous ( ) and
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ template <typename T> class TplRedeclared {}; // COMPLIANT
2727enum DuplicateEnum {}; // NON_COMPLIANT
2828enum class DuplicateEnumClass {}; // NON_COMPLIANT
2929enum {} anonymousEnum1; // COMPLIANT
30- typedef int16_t DuplicateTypedef; // NON_COMPLIANT
31- using DuplicateUsing = int16_t ; // NON_COMPLIANT
30+ typedef int16_t DuplicateTypedef; // COMPLIANT -- Redeclared typedefs are OK
31+ using DuplicateUsing = int16_t ; // COMPLIANT -- Redeclared type aliases are OK
3232union DuplicateUnion {}; // NON_COMPLIANT
3333union {
3434} anonymousUnion1; // COMPLIANT
You can’t perform that action at this time.
0 commit comments