Move cppcheck logic from Makefile and CMakeLists.txt to tools/check-cppcheck.sh
The legacy approach executed cppcheck for every build target, which resulted in a huge number of re-checks of the sources if more than one targets were built. The main reason behind that was to get the right macro-guarded code paths analyzed. However, cppcheck can analyze every configuration of the sources in one go. (The patch also contains some aesthetic changes around the way vera++ is called and how errors are reported.) JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ install: make prerequisites
|
||||
script: "make -j VERBOSE=1 NINJA=1 $TARGET"
|
||||
|
||||
env:
|
||||
- TARGET="check-signed-off check-vera check-cpp"
|
||||
- TARGET="check-signed-off check-vera check-cppcheck"
|
||||
- TARGET="build.linux test-js-precommit"
|
||||
- TARGET=build.mcu_stm32f3
|
||||
- TARGET=build.mcu_stm32f4
|
||||
|
||||
Reference in New Issue
Block a user