parent
39f4374446
commit
b1ca7c9a66
|
@ -3497,13 +3497,13 @@ static void valueFlowAfterMove(TokenList *tokenlist, SymbolDatabase* symboldatab
|
||||||
}
|
}
|
||||||
|
|
||||||
static void valueFlowForwardAssign(Token * const tok,
|
static void valueFlowForwardAssign(Token * const tok,
|
||||||
const Variable * const var,
|
const Variable * const var,
|
||||||
std::list<ValueFlow::Value> values,
|
std::list<ValueFlow::Value> values,
|
||||||
const bool constValue,
|
const bool constValue,
|
||||||
const bool init,
|
const bool init,
|
||||||
TokenList * const tokenlist,
|
TokenList * const tokenlist,
|
||||||
ErrorLogger * const errorLogger,
|
ErrorLogger * const errorLogger,
|
||||||
const Settings * const settings)
|
const Settings * const settings)
|
||||||
{
|
{
|
||||||
const Token * const endOfVarScope = var->typeStartToken()->scope()->bodyEnd;
|
const Token * const endOfVarScope = var->typeStartToken()->scope()->bodyEnd;
|
||||||
if (std::any_of(values.begin(), values.end(), std::mem_fn(&ValueFlow::Value::isLifetimeValue))) {
|
if (std::any_of(values.begin(), values.end(), std::mem_fn(&ValueFlow::Value::isLifetimeValue))) {
|
||||||
|
|
Loading…
Reference in New Issue