diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 08baf05b1..5a9a4623d 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1493,6 +1493,9 @@ void Scope::getVariableList() else if (Token::Match(tok, "goto %var% ;")) { tok = tok->tokAt(2); continue; + } else if (check->_tokenizer->isCSharp() && Token::Match(tok, "using %var% ;")) { + tok = tok->tokAt(2); + continue; } tok = checkVariable(tok, varaccess);