I am running cppcheck on the following piece of code
bool bsIsBigEndian( void )
{
return (((const int*)"\0\x1\x2\x3\x4\x5\x6\x7")[0] & 255) != 0;
}
with the command below
cppcheck --template={file};{line};{severity};{message};{id} --enable=style,performance,portability file.cpp
Output
I have tried --platform option but still same result. How can I get rid of invalid characters ?