HomePhabricator

[CFG] Provide construction contexts for lifetime-extended temporaries.

Description

[CFG] Provide construction contexts for lifetime-extended temporaries.

When constructing a temporary that is going to be lifetime-extended through a
MaterializeTemporaryExpr later, CFG elements for the respective constructor
can now be queried to obtain the reference to that MaterializeTemporaryExpr
and therefore gain information about lifetime extension.

This may produce multi-layered construction contexts when information about
both temporary destruction and lifetime extension is available.

Differential Revision: https://reviews.llvm.org/D43477

Details

Committed
dergachevFeb 23 2018, 6:00 PM
Differential Revision
D43477: [CFG] [analyzer] Add MaterializeTemporaryExpr into the construction context.
Branches
Unknown
Tags
Unknown