enum PathLifetimeKind

Description

Whether a path to an object supports lifetime extension.

Declared at: clang/lib/Sema/SemaInit.cpp:7531

Enumerators

NameValueComment
Extend0Lifetime-extend along this path.
ShouldExtend1We should lifetime-extend, but we don't because (due to technical limitations) we can't. This happens for default member initializers, which we don't clone for every use, so we don't have a unique MaterializeTemporaryExpr to update.
NoExtend2Do not lifetime extend along this path.