And this issue is so urgent that you need to scream in the topic title?
Anyway, there is no way to just output a particular message ID (and imho it does not make sense to have such an option). You can hide messages by ID by --suppress=MsgId or filter the output by some regular expressions..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for the caps lock.
I know, but I did only need just Memory leak messages for my work.
I'm having to seggregate the error messages as there is no such thing as enable=error.
So, I parsed the text and picked the memory leak messages.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Abhinaav Singh : why not simply run this through a regexp filter, like in notepad++ to filter only errors with the message you want to see (eg containing the words "Memory leak").
I am using cppcheck without GUI and I'm unable to fetch only Memory leak issues.
I am using String.Format("cppcheck.exe --force -j 4 --enable=all \"{0}\" 2> \"{1}\"", sourceCodeDirectory, cppCheckOutputFile);
What change should I make to fetch just memory leak issues. I know it falls under severity: ERROR
What to do.
Thanks.
And this issue is so urgent that you need to scream in the topic title?
Anyway, there is no way to just output a particular message ID (and imho it does not make sense to have such an option). You can hide messages by ID by --suppress=MsgId or filter the output by some regular expressions..
Btw., if you use --enable=all, you enable also non-error messages. This is the opposite of what you want.
Sorry for the caps lock.
I know, but I did only need just Memory leak messages for my work.
I'm having to seggregate the error messages as there is no such thing as enable=error.
So, I parsed the text and picked the memory leak messages.
error is always enabled.
Abhinaav Singh : why not simply run this through a regexp filter, like in notepad++ to filter only errors with the message you want to see (eg containing the words "Memory leak").
Looks like there is a plugin to do this:
https://sourceforge.net/p/notepad-plus/discussion/482781/thread/5b42fcb9/
Or, you could simply use a regexp find/replace
"^(.*leak.*)"
or similar to remove non-matching output messagesOr, if you know how to use cygwin, you could just grep...
Last edit: AnotherUser 2016-08-29