First of all I am not sure , if this kind of error discussion has reported by others.
As I use cppcheck1.59 version.
Scenario:
In the source file (.cc) , most of the places code is commented using macro, as mentioned below:
CODE_DELETED is set to true, every part of the code will get commeted
Codebegin: #ifdef CODE_DELETED
{
//code here
}
codeend: #endif
cppcheck results :
error id="syntaxError" severity="error" msg="Invalid number of character ({) when these macros are defined: 'CODE_DELETED'." verbose="Invalid number of character ({) when these macros are defined: 'CODE_DELETED'.
Looks like cppcheck failed to handle '#endif' .
Let me know if its handled in latest version of cppcheck.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
First of all I am not sure , if this kind of error discussion has reported by others.
As I use cppcheck1.59 version.
Scenario:
In the source file (.cc) , most of the places code is commented using macro, as mentioned below:
CODE_DELETED is set to true, every part of the code will get commeted
Codebegin: #ifdef CODE_DELETED
{
//code here
}
codeend: #endif
cppcheck results :
error id="syntaxError" severity="error" msg="Invalid number of character ({) when these macros are defined: 'CODE_DELETED'." verbose="Invalid number of character ({) when these macros are defined: 'CODE_DELETED'.
Looks like cppcheck failed to handle '#endif' .
Let me know if its handled in latest version of cppcheck.