Skip to content

Commit

Permalink
Merge pull request #3255 from bruntib/exit_code
Browse files Browse the repository at this point in the history
[cmd] Missing exit status description for CodeChecker check
  • Loading branch information
csordasmarton authored Apr 6, 2021
2 parents e0912f5 + a620168 commit 39a7676
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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

0 comments on commit 39a7676

Please sign in to comment.