I recently spent some time resolving an issue where the --status-bugs parameter conflicted with -plist, and scan-build always returned 0 even when there were errors.
This change means that scan-build rejects these as incompatible arguments.
I've tested that this works with this test program:
$ cat test.c int abcd(char* x, char* y) { strcpy(x, y); } int main() { return 0; }
and these two commands:
./bin/scan-build --status-bugs -enable-checker security --use-analyzer /usr/bin/clang clang test.c; echo $?
./bin/scan-build --status-bugs -plist -enable-checker security --use-analyzer /usr/bin/clang clang test.c; echo $?