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.

assignIfError

Error prone
Informational

Mismatching assignment and comparison

class_X_Y

Error prone
Informational

Code not handled

knownEmptyContainer

Error prone
Informational

Container is always empty

redundantInitialization

Error prone
Informational

Redundant initialization. The initialized value is overwritten before it is read.

truncLongCastReturn

Error prone
Informational

int result is returned as long value. If the return value is long to avoid loss of information

nonStandardCharLiteral

Error prone
Informational

Non-standard character literal

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.