We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d95f3bc commit fc118aaCopy full SHA for fc118aa
1 file changed
lib/vf_common.cpp
@@ -150,7 +150,7 @@ namespace ValueFlow
150
if (!tok->isTemplateArg())
151
value.setKnown();
152
setTokenValue(tok, std::move(value), settings);
153
- } else if (tok->str() == "NULL" || (tok->isCpp() && tok->str() == "nullptr")) {
+ } else if (tok->str() == "NULL" || ((tok->isCpp() || settings.standards.c >= Standards::C23) && tok->str() == "nullptr")) {
154
Value value(0);
155
156
0 commit comments