Open ISSOtm opened 2 years ago
@llvm/issue-subscribers-clang-static-analyzer
By looking at the message:
src/gfx/pal_packing.o:1:1: error: expected unqualified-id
<U+007F>ELF<U+0002><U+0001><U+0001><U+0000>[...]
I think clang tried to interpret the object file as a source text. Note the ELF
file magic at the very beginning.
However, I'm not experienced with scan-build
. It's probably misinterpreting the command line in some way and that's the reason you get this.
You could experiment with different flags to narrow down the problem space.
Yeah, that's also the conclusion I've arrived to, but running the command manually yields the same result. Note that this only happens for object files generated from C++ sources, oddly enough.
Here is the aforementioned
failures
directory, plus the object file that was treated for some reason as a C++ input file.Here is the invocation that caused the errors:
I can also provide more files as well as sources if desired.
(Arch Linux x86_64)