facebook pixelCodiga Analysis C / C++ Rules, severity warning , category error prone
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.

fflushOnInputStream

Error prone
Warning

fflush() called on input stream may result in undefined behaviour on non-linux systems

sizeofVoid

Error prone
Warning

Behaviour of 'sizeof(void)' is not covered by the ISO C standard.

comparisonOfBoolWithBoolError

Error prone
Warning

Comparison of a variable having boolean value using relational (<, >, <= or >=) operator

rethrowNoCurrentException

Error prone
Warning

Rethrowing current exception

pureVirtualCall

Error prone
Warning

Call of pure virtual function in constructor.