I am looking over some older code someone else wrote and the person is often using this type of code:
typedef enum {
id1=1
id2=11
id3=2
id4=3
} enumName_e
This type is then used in functions all over the place. While this works clang-tidy is complaining that using
should be used instead of typedef
which in this case won't work easily. Is this bad code that should be changed or is clang-tidy wrong here?