facebook pixelC and C++ Static Code Analysis Rules
BACK TO LIST

C / C++ rules

C and C++ are really performant languages and can be very error-prone. We all had core dumps and made pointer arithmetic errors! Thankfully, Codiga has hundreds of static analysis rules to flag potential errors in your C/C++ code, automate code reviews and merge with confidence.

copyCtorPointerCopying

Design
High

Value of pointer 'count'

duplInheritedMember

Design
High

Duplicated inherited member

unusedLabelSwitch

Design
High

Label is not used.

unusedLabelSwitchConfiguration

Design
High

Unused label in switch

ctuOneDefinitionRuleViolation

Design
High

The one definition rule is violated, different classes/structs have the same name.

operatorEqShouldBeLeftUnimplemented

Design
High

operator should either return reference to 'this' instance or be declared private and left unimplemented.