We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 929f95c commit a511b33Copy full SHA for a511b33
1 file changed
lib/vf_common.cpp
@@ -230,9 +230,7 @@ namespace ValueFlow
230
setTokenValue(tok->tokAt(4), std::move(value), settings);
231
}
232
} else if (Token::Match(tok2, "%var% )")) {
233
- const Variable *var = tok2->variable();
234
- // only look for single token types (no pointers or references yet)
235
- if (var && var->typeStartToken() == var->typeEndToken()) {
+ if (const Variable *var = tok2->variable()) {
236
// find the size of the type
237
size_t size = 0;
238
if (var->isEnumType()) {
0 commit comments