-
Couldn't load subscription status.
- Fork 15k
Open
Labels
Description
Description
I get an exit code of 0 when I run analyze-build --sarif --status-bugs on any codebase that has analyzer warnings. The exit code is non-zero if I use --plist or --sarif-html instead of --sarif.
The root cause seems to be that the bug reporting code only analyzes .plist and .html files for bug entries:
llvm-project/clang/tools/scan-build-py/lib/libscanbuild/report.py
Lines 348 to 357 in dd3c26a
| # get the right parser for the job. | |
| parser = parse_bug_html if html else parse_bug_plist | |
| # get the input files, which are not empty. | |
| pattern = os.path.join(output_dir, "*.html" if html else "*.plist") | |
| bug_files = (file for file in glob.iglob(pattern) if not empty(file)) | |
| for bug_file in bug_files: | |
| for bug in parser(bug_file): | |
| if not duplicate(bug): | |
| yield bug |
Version info
clang version 20.1.8 on Arch Linux