The list of available checks can grow. The complete list can be retrieved as a XML file already.
I imagine that it can occasionally be more helpful to select check data according to specific criteria.
How do you think about to support filter expressions here?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The list of available checks can grow. The complete list can be retrieved as a XML file already.
I imagine that it can occasionally be more helpful to select check data according to specific criteria.
How do you think about to support filter expressions here?
give a concrete example?
Examples:
Last edit: Markus Elfring 2018-10-22
How do you suggest that a user will do this? Show some example command or something.
How do you think about commands like the following?
cppcheck --errorlist --id=returnLocalVariable
cppcheck --errorlist --query='severity="error" and msg contains "bounds"'
Last edit: Markus Elfring 2018-10-22
that is basically like:
?
is that almost like:
?
I am skeptic that people want to filter the --errorlist output.
I doubt that users use the --errorlist argument much.
Last edit: Markus Elfring 2018-10-23
Can the specified check identifier be omitted from the corresponding data output?
How would you like to handle multi-line information with such a filter approach?
With
--enable
you can choose what severities to execute. I think xml suppressions could be extended to allow various filters--suppress-xml
.Last edit: Daniel Marjamäki 2018-10-22