The static analyzer's scan-build script is critical infrastructure but
is not well tested. To start to address this, add a new test directory under
tests/Analysis for scan-build lit tests and seed it with several tests. The
goal is that future scan-build changes will be accompanied by corresponding
tests.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
If CLANG_INSTALL_SCANBUILD=NO, then this tries to run scan-build from PATH, where it might not exist. Does this need some lit feature to check if scan-build is being copied to the bin dir by the build system?
Comment Actions
Also, you probably need to make clang/test/CMakeLists.txt depend on the install target, to make sure scan-build is in bin/.
Comment Actions
I'll try to re-land this. I heard there were a lot more issues than just honoring CLANG_INSTALL_SCANBUILD=NO (which i'll do my best to test before pushing), so i'll monitor the buildbots carefully and try to unbreak everything quickly.
Clever!