Fix issue 9390: valueFlowTerminatingCondition bailout: Skipping function due to incomplete variable NULL (#2412)
* Fix issue 9390: valueFlowTerminatingCondition bailout: Skipping function due to incomplete variable NULL * Uncomment keyword * Add nullptr as well
This commit is contained in:
parent
6bacc1987c
commit
2bdb7dc236
|
@ -1331,6 +1331,7 @@ void SymbolDatabase::createSymbolDatabaseIncompleteVars()
|
||||||
"namespace",
|
"namespace",
|
||||||
"new",
|
"new",
|
||||||
"noexcept",
|
"noexcept",
|
||||||
|
"nullptr",
|
||||||
"override",
|
"override",
|
||||||
"private",
|
"private",
|
||||||
"protected",
|
"protected",
|
||||||
|
@ -1353,6 +1354,7 @@ void SymbolDatabase::createSymbolDatabaseIncompleteVars()
|
||||||
"virtual",
|
"virtual",
|
||||||
"void",
|
"void",
|
||||||
"volatile",
|
"volatile",
|
||||||
|
"NULL",
|
||||||
};
|
};
|
||||||
for (const Token* tok = mTokenizer->list.front(); tok != mTokenizer->list.back(); tok = tok->next()) {
|
for (const Token* tok = mTokenizer->list.front(); tok != mTokenizer->list.back(); tok = tok->next()) {
|
||||||
const Scope * scope = tok->scope();
|
const Scope * scope = tok->scope();
|
||||||
|
|
Loading…
Reference in New Issue