After upgrade to SonarQube 184.108.40.206104, suddenly a lot of extra bugs are reported. We checked about 20 and they all make no sense to us.
The assert boils done to this code:
void CmsResult::Verify (const CmsResultCode &resultCode, const char *file, const long &line, const QString &description)
if (resultCode.m_resultCode < 0)
throw CmsException (resultCode, file, line, description);
which will throw an exception, so the offending code will never be reached. The code also works for release builds.
Thus, the issue seems to be a false positive. All issues we found resolve to these macros.
If you need more info, please let me know, the code behind CMSASSERT is a bit complicated.