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

[cmd] Missing exit status description for CodeChecker check #3255

Merged
merged 1 commit into from
Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions analyzer/codechecker_analyzer/cmd/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@

from codechecker_analyzer.cmd.analyze import \
epilog_env_var as analyzer_epilog_env_var, \
epilog_issue_hashes as analyzer_epilog_issue_hashes, \
epilog_exit_status as analyzer_epilog_exit_status
epilog_issue_hashes as analyzer_epilog_issue_hashes

from codechecker_analyzer.cmd.log import \
epilog_env_var as log_epilog_env_var
Expand Down Expand Up @@ -70,7 +69,13 @@ def get_argparser_ctor_args():

{analyzer_epilog_issue_hashes}

{analyzer_epilog_exit_status}
Exit status
------------------------------------------------
0 - No report
1 - CodeChecker error
2 - At least one report emitted by an analyzer
3 - Analysis of at least one translation unit failed
128+signum - Terminating on a fatal signal whose number is signum

If you wish to reuse the logfile resulting from executing the build, see
'CodeChecker log'. To keep analysis results for later, see and use
Expand Down
3 changes: 2 additions & 1 deletion docs/analyzer/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ https://github.com/Ericsson/codechecker/blob/master/docs/analyzer/report_identif

Exit status
------------------------------------------------
0 - Successful analysis
0 - No report
1 - CodeChecker error
2 - At least one report emitted by an analyzer
3 - Analysis of at least one translation unit failed
128+signum - Terminating on a fatal signal whose number is signum

Expand Down