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.

constParameter

Design
Minor

Parameter can be declared with const

constParameterCallback

Design
Minor

Parameter can be declared with const.

hidingInheritedPublic

Design
Minor

Virtual function is a public in a base class and became not-public in derived. It's violate a substitutability a principle in OOP.

shadowArgument

Design
Minor

Local variable shadows outer argument

shadowVariable

Design
Minor

Local variable shadows outer variable

templateRecursion

Design
Minor

Template recursion threshold reached

unusedLabelConfiguration

Design
Minor

Label is not used, a pre-processor configuration prevents it to be shown.