diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index be9f809f9..29c8d57cc 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -982,7 +982,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, Alloc al if (possibleParent && possibleParent->isUnaryOp("*")) { while (possibleParent && possibleParent->isUnaryOp("*")) possibleParent = getAstParentSkipPossibleCastAndAddressOf(possibleParent, &unknown); - if (possibleParent && Token::Match(possibleParent->previous(), "sizeof (")) + if (possibleParent && Token::Match(possibleParent->previous(), "decltype|sizeof (")) return false; } if (Token::Match(possibleParent, "[(,]")) {