The clang static analyzer and SSAF (scalable static analysis framework) are independent projects, they should have separate test directories and separate “run the tests” targets.
To ensure this, I propose the following changes:
- Move the SSAF tests from
clang/test/Analysis/Scalableto e.g.clang/test/SSAFor any other name preferred by the SSAF developers. - Rename
clang/test/Analysistoclang/test/StaticAnalyzerto reflect the fact that apart from the recently added SSAF tests it only contains tests for the static analyzer (see this older discourse thread where I verified this and removed a handful of misplaced tests). - Restore that
check-clang-analysisonly runs the static analyzer tests.- Alternatively, if you think that this traditional name is too general, introduce a target e.g.
check-clang-static-analyzerthat only runs the static analyzer tests.
- Alternatively, if you think that this traditional name is too general, introduce a target e.g.
- Introduce a target that only runs the SSAF tests (if there isn’t one already existing).
See also [SSAF] Mark two failing tests as unsupported by NagyDonat · Pull Request #223976 · llvm/llvm-project · GitHub where the testing of these two projects interfere with each other.
@steakhal @Xazax-hun @NoQ @necto @ziqingluo-90 What do you think about this?
(Please also forward this topic to anybody on the SSAF team who may be interested but doesn’t follow the static analyzer discourse.)