can detect violations of this recommendation with the CERT C Rule Pack
Section
Compass/ROSE
Section
can detect violations of this recommendation. However, it can only detect those violations where both bitwise and arithmetic operators are used in the same expression