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.

      fflushOnInputStream

      Error prone
      Medium

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

      sizeofVoid

      Error prone
      Medium

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

      comparisonOfBoolWithBoolError

      Error prone
      Medium

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