It took a few days for me to understand why my code was spotty in showing errors. It seemed that when including certain headers, the configurations for my current file would stop showing. Adding --verbose flag didn't provide any additional useful detail.
After chasing the error for quite some time, I found that as cppcheck ran through the include directories, it would find its way into a #error message (a problem I could clean in my code) and would give up on that runthrough.
However, there was no indication of this occuring and the configurations messages would mysteriously disappear. Could we get a small message when --verbose is present to say when and how the current runthrough terminated. Something like the following:
I add that one because it took a while to find out that checking stopped when errors were encountered unlike messages with severities of warning, syntax, etc. Thanks in advance for your input,
Clint
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also think that Cppcheck should output a message when it stops analyzing a file because of an error directive. I've had some trouble with this too and others also, so we are not alone ;)
I found this ticket in trac where this already has been discussed many years ago: https://trac.cppcheck.net/ticket/1378
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It took a few days for me to understand why my code was spotty in showing errors. It seemed that when including certain headers, the configurations for my current file would stop showing. Adding
--verbose
flag didn't provide any additional useful detail.After chasing the error for quite some time, I found that as cppcheck ran through the include directories, it would find its way into a #error message (a problem I could clean in my code) and would give up on that runthrough.
However, there was no indication of this occuring and the configurations messages would mysteriously disappear. Could we get a small message when
--verbose
is present to say when and how the current runthrough terminated. Something like the following:Or:
I add that one because it took a while to find out that checking stopped when errors were encountered unlike messages with severities of warning, syntax, etc. Thanks in advance for your input,
Clint
I also think that Cppcheck should output a message when it stops analyzing a file because of an error directive. I've had some trouble with this too and others also, so we are not alone ;)
I found this ticket in trac where this already has been discussed many years ago:
https://trac.cppcheck.net/ticket/1378
in latest git head, a information message is written.