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.

      knownEmptyContainerLoop

      Performance
      Minor

      Iterating over a container that is always empty.

      pointerPositive

      Performance
      Minor

      A pointer can not be negative so it is either pointless or an error to check if it is not.