From 54cc1a9fadc7ebc79d8c122cd4b5743cc68c7d56 Mon Sep 17 00:00:00 2001 From: bruntib Date: Tue, 6 Apr 2021 12:18:49 +0200 Subject: [PATCH] [cmd] Missing exit status description for CodeChecker check --- analyzer/codechecker_analyzer/cmd/check.py | 4 ++-- docs/analyzer/user_guide.md | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/analyzer/codechecker_analyzer/cmd/check.py b/analyzer/codechecker_analyzer/cmd/check.py index c03862c910..7bc3a42040 100644 --- a/analyzer/codechecker_analyzer/cmd/check.py +++ b/analyzer/codechecker_analyzer/cmd/check.py @@ -110,9 +110,9 @@ def get_argparser_ctor_args(): Exit status ------------------------------------------------ -0 - Successful analysis and no new reports +0 - No report 1 - CodeChecker error -2 - At least one report emitted by an analyzer and there is no analyzer failure +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 diff --git a/docs/analyzer/user_guide.md b/docs/analyzer/user_guide.md index 70e60babac..9e02d978ab 100644 --- a/docs/analyzer/user_guide.md +++ b/docs/analyzer/user_guide.md @@ -465,8 +465,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