wenns/sonar-cxx — pull request #190 by Typz (2014-04-28 11:51:43+00:00)
Title: Detect to variable declarations in conditions for CollapsibleIf check.

Verify if the ifStatement's condition is actually a variable declaration, as in :
if (void * ptr = f()) {
}

This prevents collapsing multiple if', since multiple definitions and expressions cannot be combined.