Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move cppcheck logic from Makefile and CMakeLists.txt to tools/check-cppcheck.sh #903

Merged

Conversation

akosthekiss
Copy link
Member

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 [email protected]

…ppcheck.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 [email protected]
@akosthekiss
Copy link
Member Author

Runtime of checks on Travis drop from ~350 secs to ~260 secs (25% improvement, or 1.34x speedup)

@akosthekiss akosthekiss added enhancement An improvement infrastructure Related to GH Actions or the tested targets tools Related to the tooling scripts labels Feb 19, 2016
@LaszloLango
Copy link
Contributor

Nice improvement. LGTM

@zherczeg
Copy link
Member

LGTM

@akosthekiss akosthekiss merged commit b2edaaf into jerryscript-project:master Feb 19, 2016
@akosthekiss akosthekiss deleted the cppcheck-simplify branch February 19, 2016 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement infrastructure Related to GH Actions or the tested targets tools Related to the tooling scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants