Skip to content

Commit

Permalink
Merge pull request #3633 from bruntib/stat_check_pre_analysis
Browse files Browse the repository at this point in the history
[bugfix] Determine stats capability in pre-analysis
  • Loading branch information
csordasmarton authored Mar 18, 2022
2 parents e635e49 + 5d8bf1d commit 5adc515
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 5adc515

Please sign in to comment.