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.

      coutCerrMisusage

      Error prone
      Critical

      Invalid usage of output stream: '<< std::cout'.

      derefInvalidIterator

      Error prone
      Critical

      Possible dereference of an invalid iterator

      eraseDereference

      Error prone
      Critical

      Value used after being erased

      invalidContainer

      Error prone
      Critical

      Invalid container

      IOWithoutPositioning

      Error prone
      Critical

      I/O operations without positioning

      writeReadOnlyFile

      Error prone
      Critical

      Write operation on a file that was opened only for reading.