Users outside of the clang repo may use different googletest versions. So, it's
better not to depend on llvm's googletest. This patch removes the dependency by
having checkDataflow return an llvm::Error instead of calling googletest's
FAIL or ASSERT... macros.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/unittests/Analysis/FlowSensitive/TestingSupport.h | ||
---|---|---|
144 | any_cast already performs an assert. |
Comment Actions
Users outside of the clang repo may use different googletest versions.
I don't understand what that means.
Why does it matter what version outside users are using -- these are clang unit-tests, not a public API, right?
Comment Actions
Why does it matter what version outside users are using -- these are clang unit-tests, not a public API, right?
clang/unittests/Analysis/FlowSensitive/TestingSupport.h is a public API for writing tests for dataflow analyses.
any_cast already performs an assert.