Disable valueFlowGlobalConstVar until #9099 is fixed

This commit is contained in:
Daniel Marjamäki 2019-04-30 20:51:59 +02:00
parent 1d12136b59
commit 66064fb2bb
2 changed files with 4 additions and 1 deletions

View File

@ -1460,6 +1460,9 @@ static void valueFlowOppositeCondition(SymbolDatabase *symboldatabase, const Set
static void valueFlowGlobalConstVar(TokenList* tokenList, const Settings *settings)
{
// TODO: danmar: This is commented out until #9099 is fixed
return;
// Get variable values...
std::map<const Variable*, ValueFlow::Value> vars;
for (const Token* tok = tokenList->front(); tok; tok = tok->next()) {

View File

@ -3174,7 +3174,7 @@ private:
"void f() {\n"
" a = x;\n"
"}";
ASSERT_EQUALS(true, testValueOfX(code, 3U, 321));
TODO_ASSERT_EQUALS(true, false, testValueOfX(code, 3U, 321));
}
void valueFlowGlobalStaticVar() {