4 Commits

Author SHA1 Message Date
Adam Balogh
facad21b29 [Analyzer] Fix for ExprEngine::computeObjectUnderConstruction() for base and delegating consturctor initializers
For /C++/ constructor initializers `ExprEngine:computeUnderConstruction()`
asserts that they are all member initializers. This is not neccessarily
true when this function is used to get the return value for the
construction context thus attempts to fetch return values of base and
delegating constructor initializers result in assertions. This small
patch fixes this issue.

Differential Revision: https://reviews.llvm.org/D85351
2020-09-25 13:28:22 +02:00
Adam Balogh
54f9ddd806 [Analyzer] Remove warning caused by commit rGe22ace8ba2b0 2020-06-09 15:46:15 +02:00
Adam Balogh
e22ace8ba2 [Analyzer] Fix buildbot failure caused by commit rG813734dad7e8b526c39806d1a88820b1f0706fb1 2020-06-09 14:50:27 +02:00
Adam Balogh
813734dad7 [Analyzer] Add getReturnValueUnderConstruction() to CallEvent
Checkers should be able to get the return value under construction for a
`CallEvenet`. This patch adds a function to achieve this which retrieves
the return value from the construction context of the call.

Differential Revision: https://reviews.llvm.org/D80366
2020-06-09 12:08:56 +02:00