You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use typedef on an enum that has not been given an identifier, norminette outputs "Missing identifier in typedef declaration". Named enums are fine, only unnamed ones give the error.
This might be a quibble about how things are written, but my reading of V3's "An enum's name must start by e_." doesn't require there to be a name, only that if there is it should have a particular format. If that's the case I recommend changing it to read "An enum must have a name beginning with e_.".
All of this also applies to structs and unions.
Erroneous code
typedef enum {
a
} t_enum;
Additional context
OS: MacOS Darwin 19.6.0
python3 --version: Python 3.9.5
norminette -v: norminette 3.3.54
The text was updated successfully, but these errors were encountered:
Miniature
changed the title
Claimed missing identifier when typedef unnamed enum
Claimed missing identifier when typedef unnamed enum/struct/union
Oct 11, 2023
Describe the bug
When attempting to use typedef on an enum that has not been given an identifier, norminette outputs "Missing identifier in typedef declaration". Named enums are fine, only unnamed ones give the error.
This might be a quibble about how things are written, but my reading of V3's "An enum's name must start by e_." doesn't require there to be a name, only that if there is it should have a particular format. If that's the case I recommend changing it to read "An enum must have a name beginning with e_.".
All of this also applies to structs and unions.
Erroneous code
Additional context
The text was updated successfully, but these errors were encountered: