[scan-build-py] Fix exception on shutdown with sarif-html output format
authorAnders Waldenborg <anders@0x63.nu>
Fri, 3 Jun 2022 08:28:22 +0000 (10:28 +0200)
committerAnders Waldenborg <anders@0x63.nu>
Fri, 10 Jun 2022 21:21:09 +0000 (23:21 +0200)
commitff4abe755279a3a47cc416ef80dbc900d9a98a19
tree8e121da2192ea05e8d205202aca7010c502e9e86
parent6f27eb6ece324779d4d6a06b5685887afbc9465c
[scan-build-py] Fix exception on shutdown with sarif-html output format

When running scan-build-py's analyze-build script with output format set
to sarif & html it wants to print a message on how to look at the
defects mentioning the directory name twice.

But the path argument was only given once to the logging function,
causing "TypeError: not enough arguments for format string" exception.

Differential Revision: https://reviews.llvm.org/D126974
clang/tools/scan-build-py/lib/libscanbuild/analyze.py