[PATCH] D126974: [scan-build-py] Fix exception on shutdown with sarif-html output format
Anders Waldenborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 10 14:23:59 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGff4abe755279: [scan-build-py] Fix exception on shutdown with sarif-html output format (authored by wanders).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126974/new/
https://reviews.llvm.org/D126974
Files:
clang/tools/scan-build-py/lib/libscanbuild/analyze.py
Index: clang/tools/scan-build-py/lib/libscanbuild/analyze.py
===================================================================
--- clang/tools/scan-build-py/lib/libscanbuild/analyze.py
+++ clang/tools/scan-build-py/lib/libscanbuild/analyze.py
@@ -357,6 +357,7 @@
try:
yield name
finally:
+ args = (name,)
if os.listdir(name):
if output_format not in ['sarif', 'sarif-html']: # FIXME:
# 'scan-view' currently does not support sarif format.
@@ -364,6 +365,7 @@
elif output_format == 'sarif-html':
msg = "Run 'scan-view %s' to examine bug reports or see " \
"merged sarif results at %s/results-merged.sarif."
+ args = (name, name)
else:
msg = "View merged sarif results at %s/results-merged.sarif."
keep = True
@@ -372,7 +374,7 @@
msg = "Report directory '%s' contains no report, but kept."
else:
msg = "Removing directory '%s' because it contains no report."
- logging.warning(msg, name)
+ logging.warning(msg, *args)
if not keep:
os.rmdir(name)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126974.436048.patch
Type: text/x-patch
Size: 1205 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220610/ad58b1a2/attachment-0001.bin>
More information about the cfe-commits
mailing list