Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
Some of the consecutive return statements pointed by cppcheck could be false positives due to them being in the body of an if-else branch, but for the most part it seems like the automatic update of the lua bindings generated many unneeded return statements.
For the following files,
cppcheck
is reporting duplicate consecutive return statements:Some of the consecutive
return
statements pointed bycppcheck
could be false positives due to them being in the body of an if-else branch, but for the most part it seems like the automatic update of the lua bindings generated many unneededreturn
statements.See attached file for more details: cppcheck_consecutive_statements.txt