Now, instead of passing the reference to a shared_ptr, we pass the shared_ptr instead.
I've also removed the check if Z3 is present in CreateZ3ConstraintManager as this function already calls CreateZ3Solver that performs the exactly same check.
Paths
| Differential D54976
[analyzer] Got rid of the `Z3ConstraintManager` class ClosedPublic Authored by mikhail.ramalho on Nov 27 2018, 2:33 PM.
Details Summary Now, instead of passing the reference to a shared_ptr, we pass the shared_ptr instead. I've also removed the check if Z3 is present in CreateZ3ConstraintManager as this function already calls CreateZ3Solver that performs the exactly same check.
Diff Detail Event TimelineHerald added subscribers: dkrupp, donat.nagy, Szelethus and 4 others. · View Herald TranscriptNov 27 2018, 2:33 PM mikhail.ramalho added a parent revision: D54975: [analyzer] Generalised the SMT state constraints .Nov 27 2018, 2:33 PM mikhail.ramalho added a child revision: D54977: [analyzer] Moved the whole SMT API to a single file. NFC..Nov 27 2018, 2:35 PM Comment Actions Moved CreateZ3Solver to SMTConstraintManager. In the future, CreateZ3Solver should be renamed CreateSMTSolver to handle all backends. Comment Actions Makes perfect sense to me.
This revision is now accepted and ready to land.Nov 30 2018, 5:27 PM mikhail.ramalho added inline comments.
Closed by commit rC353371: Got rid of the `Z3ConstraintManager` class (authored by mramalho). · Explain WhyFeb 6 2019, 7:18 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 175584 clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
clang/lib/StaticAnalyzer/Core/Z3ConstraintManager.cpp
|
Why are we even passing StMgr into this callback when it can be easily retrieved from Eng? :)