fix a large number of valgrind warnings in testrunner (#2920)
Co-authored-by: Robert Reif <reif@FX6840>
This commit is contained in:
parent
f145ae967d
commit
43ce1607c7
|
@ -3547,11 +3547,12 @@ static void valueFlowLifetimeConstructor(Token* tok, TokenList* tokenlist, Error
|
||||||
|
|
||||||
struct Lambda {
|
struct Lambda {
|
||||||
enum class Capture {
|
enum class Capture {
|
||||||
|
Undefined,
|
||||||
ByValue,
|
ByValue,
|
||||||
ByReference
|
ByReference
|
||||||
};
|
};
|
||||||
explicit Lambda(const Token * tok)
|
explicit Lambda(const Token * tok)
|
||||||
: capture(nullptr), arguments(nullptr), returnTok(nullptr), bodyTok(nullptr), explicitCaptures() {
|
: capture(nullptr), arguments(nullptr), returnTok(nullptr), bodyTok(nullptr), explicitCaptures(), implicitCapture(Capture::Undefined) {
|
||||||
if (!Token::simpleMatch(tok, "[") || !tok->link())
|
if (!Token::simpleMatch(tok, "[") || !tok->link())
|
||||||
return;
|
return;
|
||||||
capture = tok;
|
capture = tok;
|
||||||
|
|
Loading…
Reference in New Issue