In Perl, -z is defined as checking if a "file has zero size" and makes no mention what it does when given a directory. It looks like the behavior differs across platforms, which is why on Windows the SARIF file was always being deleted.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Oops. It looks like there's another place where this pattern shows up (see rC139382). The other one should probably be changed as well.
(Thanks for diverging from test(1), perl…)
clang/tools/scan-build/libexec/ccc-analyzer | ||
---|---|---|
121 | Whoops. I suspect that we're now unconditionally deleting all plist output, which isn't exactly what we wanted. I think we actually wanted to delete empty plist files here. |
Whoops. I suspect that we're now unconditionally deleting all plist output, which isn't exactly what we wanted. I think we actually wanted to delete empty plist files here.