27-10-2010, 03:55 PM
Klocwork has been getting a number of complaints on our interpretation of rule 12.6. For example:
If(TRUE==TRUE) ...
So if TRUE is a Boolean. “==†is not of &&, ||, !. We report this as a violation, since the code should look like
If(TRUE) ...
Many people have debated this. Are we misunderstanding this?
If(TRUE==TRUE) ...
So if TRUE is a Boolean. “==†is not of &&, ||, !. We report this as a violation, since the code should look like
If(TRUE) ...
Many people have debated this. Are we misunderstanding this?
<t></t>