Hi all,
First some context; I started in a situation where I had a typedef uint in a forced include file, meaning I used uint throughout my whole codebase, when I wanted a uint32t. But I decided to get rid of them. So what I did is replace them all by either unsigned int or uint32_t in certain cases.
Now the challenge is, the compiler won’t tell the difference between them, so it won’t notify me of any mistakes in say function interface in a header versus implementation in the cpp. Same for class member vars and potential casts.
My question is, is there a way to identify any faults in this whole conversion? I thought of temporary changing the uint32t typedef in cstdint, but that feels a bit risky.
Any ideas?