Hi Daniel,
Thank you and your team for providing CppCheck tool.
We have started making use of it to find bugs in our code. But for some files CppCheck is not able to analyze. Below is the error message
This file is not analyzed. Cppcheck failed to extract a valid configuration.
"#error "This code must be compiled using a 2's complement representation for signed integer values"\012INT_MAX=0x7FL "
We have around 150 source files out of which we are getting this error for 20-25 file. Can you let us know how we can get rid this error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cppcheck tries different configurations (combinations of macros) and one of the combination should be valid so some code can be analyzed.
I guess Cppcheck is lacking some essential defines/macros in your setup.
You can try to find out what macros are set when you compile the software the normal way and then add these macros to Cppcheck also.
Maybe it also helps if you enable "-f" ("Force checking all #ifdef configurations" in the GUI) so Cppcheck tries more than the default of 12 different configurations.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel,
Thank you and your team for providing CppCheck tool.
We have started making use of it to find bugs in our code. But for some files CppCheck is not able to analyze. Below is the error message
This file is not analyzed. Cppcheck failed to extract a valid configuration.
"#error "This code must be compiled using a 2's complement representation for signed integer values"\012INT_MAX=0x7FL "
We have around 150 source files out of which we are getting this error for 20-25 file. Can you let us know how we can get rid this error.
Cppcheck tries different configurations (combinations of macros) and one of the combination should be valid so some code can be analyzed.
I guess Cppcheck is lacking some essential defines/macros in your setup.
You can try to find out what macros are set when you compile the software the normal way and then add these macros to Cppcheck also.
Maybe it also helps if you enable "-f" ("Force checking all #ifdef configurations" in the GUI) so Cppcheck tries more than the default of 12 different configurations.