Hello.
I have a problem and would appreciate your help.
When cppcheck is executed from CLI for sln file of visual studio, some files are "This file is not analyzed".
Why can't I parse it even though I have specified a sln file?
I am running with the --force option.
First, I solved the "preprocessor Error Directive" that occurred in the header check.
After that, "This file is not analyzed". Does not occur with -force attached.
However, the cause of "preprocessorErrorDirective" seems to be a false detection of "#error", but for the time being, the processing itself has no meaning other than displaying a character string, so I commented it out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I have a problem and would appreciate your help.
When cppcheck is executed from CLI for sln file of visual studio, some files are "This file is not analyzed".
Why can't I parse it even though I have specified a sln file?
I am running with the --force option.
Check-config and execution are done like this.
Last edit: shotaro hiroi 2020-09-23
it seems strange. that should not happen. maybe we don't add some define that is needed. it would be very useful with a reduced example code.
First, I solved the "preprocessor Error Directive" that occurred in the header check.
After that, "This file is not analyzed". Does not occur with -force attached.
However, the cause of "preprocessorErrorDirective" seems to be a false detection of "#error", but for the time being, the processing itself has no meaning other than displaying a character string, so I commented it out.