From 4e076e18542894f3ed14529bc2b159bb63b8d84e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 12 Sep 2019 19:06:42 +0200 Subject: [PATCH] Fix travis build --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "[(,]")) {