Unfortunately, documentation doesn't mention if CLMonitor utility exits with different codes (for example, to distinguish if errors were found after analysis or weren't).
Can anybody provide list of exit codes of CLMonitor?
Unfortunately, CLMonitor does not provide a specific exit code for when the new messages are generated. The currently available exit codes, which are mostly service-specific, and not intended for 'general' use, are:
Success = 0,
GeneralException = 1,
GeneralPipeConnectionError = 2,
ServerAlreadyRunning = 3,
ServerIsNotRunning = 4,
ConnectionFault = 5,
IncorrectCMDArgument = 6,
NoAccessRights = 7,
NoTracedFiles = 8
You can determine whether the new warnings were generating by using PlogConverter tool on the generated analysis log (plog), by specifying the 'Totals' render type (which generates the numbers of analyzer messages in each of the analyzer's categories), and then parsing the resulting file.