I have a section like the following:
#ifndef __CUSTOM_TYPE
typedef unsigned int u_int;
#endif
The IDE doesn’t parse it although there is no __CUSTOM_TYPE defined.
Then it reports the usage of u_int as an error.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In principle that should work. Assuming the file is correctly configured to be a C file in a C project (i.e. has a .c icon), CDT shows by colour coding which lines it is counting as part of the selected build configuration. So if __CUSTOM_TYPE is not defined, the following line should have a different background colour.
If that is not the case, hovering over the __CUSTOM_TYPE symbol should bring up an indication of where it is defined – perhaps in some nested header file or something.