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.

      assignIfError

      Error prone
      Minor

      Mismatching assignment and comparison

      class_X_Y

      Error prone
      Minor

      Code not handled

      knownEmptyContainer

      Error prone
      Minor

      Container is always empty

      redundantInitialization

      Error prone
      Minor

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

      truncLongCastReturn

      Error prone
      Minor

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

      nonStandardCharLiteral

      Error prone
      Minor

      Non-standard character literal