cocos2d/cocos2d-x — pull request #8080 by fnz (2014-09-16 15:28:05+00:00)
Title: Cpp Check

CppCheck is a popular static analysis tool which detects a variety of nasty bugs. This commit adds a target to cocos2d_tests.xcodeproj consisting of a python script that executes cppcheck v 1.66 (latest one) with all necessary settings. Output is set to be XCode-friendly, so one can jump to the error causing place instantly like it was a regular c++ error. CppCheck takes it's time to run, so be sure to wait until the script finishes.

XCode has a certain limit on custom error/warning messages. If there are more than 200 than messages, the script can be run manually and the output will be seen in console or channeled to a file.