| Issue |
162037
|
| Summary |
analyze-build: incorrect exit code when using --sarif and --status-bugs
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
correctmost
|
### 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:
https://github.com/llvm/llvm-project/blob/dd3c26a045c081620375a878159f536758baba6e/clang/tools/scan-build-py/lib/libscanbuild/report.py#L348-L357
### Version info
clang version 20.1.8 on Arch Linux
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs