We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d63553 commit 940a8cfCopy full SHA for 940a8cf
1 file changed
lib/vf_common.cpp
@@ -154,7 +154,7 @@ namespace ValueFlow
154
if (!tok->isTemplateArg())
155
value.setKnown();
156
setTokenValue(tok, std::move(value), settings);
157
- } else if ((tok->isCpp() || settings.standards.c >= Standards::C23) && (tok->isName() && !tok->varId() && Token::Match(tok, "%bool%"))) {
+ } else if ((tok->isCpp() || settings.standards.c >= Standards::C23) && (tok->isName() && tok->varId() == 0 && Token::Match(tok, "%bool%"))) {
158
Value value(tok->str() == "true");
159
160
0 commit comments