demonstration of possible bug in PVS Studio
cmake ../ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
pvs-studio-analyzer analyze -o project_plain.log -l ~/PVS-Studio.lic --disableLicenseExpirationCheck
plog-converter -t errorfile project_plain.log -w --cerr --excludedCodes Renew
Output:
Total messages: 1
Filtered messages: 0
Return code of plog-converter: 0
cmake ../ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
pvs-studio-analyzer analyze -i -o project_incremental.log -l ~/PVS-Studio.lic --disableLicenseExpirationCheck
plog-converter -t errorfile project_incremental.log -w --cerr --excludedCodes Renew
Output:
Total messages: 2
Filtered messages: 1
Return code of plog-converter: 2
Full steps in plain.sh and incremental.sh