From 5d8bf1d62af2e35c69d58ee95fd2d52127b878c4 Mon Sep 17 00:00:00 2001 From: bruntib Date: Fri, 18 Mar 2022 15:54:32 +0100 Subject: [PATCH] [bugfix] Determine stats capability in pre-analysis get_analyzer_checkers() should be used for querying checker list because this can be used for getting modeling checkers too. Pre-analysis depends on the existence of some modeling checkers. --- analyzer/codechecker_analyzer/analyzers/clangsa/statistics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/analyzer/codechecker_analyzer/analyzers/clangsa/statistics.py b/analyzer/codechecker_analyzer/analyzers/clangsa/statistics.py index ba202dc2c8..150d2bd1e8 100644 --- a/analyzer/codechecker_analyzer/analyzers/clangsa/statistics.py +++ b/analyzer/codechecker_analyzer/analyzers/clangsa/statistics.py @@ -17,6 +17,7 @@ from codechecker_statistics_collector.collectors.return_value import \ ReturnValueCollector +from .analyzer import ClangSA from ..flag import has_flag from ..flag import prepend_all @@ -47,7 +48,8 @@ def build_stat_coll_cmd(action, config, source): # Enable the statistics collector checkers only. collector_checkers = [] - for checker_name, _ in config.checks().items(): + checks = ClangSA.get_analyzer_checkers(config, config.environ, True, True) + for checker_name, _ in checks: if SpecialReturnValueCollector.checker_collect in checker_name: collector_checkers.append(checker_name)