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.

assignBoolToPointer

Security
Critical

Boolean value assigned to pointer.

invalidFunctionArgBool

Security
Critical

Invalid boolean argument

returnTempReference

Security
Critical

Reference to temporary returned.

selfInitialization

Security
Critical

Member variable is initialized by itself.

uninitdata

Security
Critical

Memory is allocated but not initialized

uninitStructMember

Security
Critical

Uninitialized struct member

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.