diff --git a/cppcheck.cpp b/cppcheck.cpp index f91dbefce..8b7f28532 100644 --- a/cppcheck.cpp +++ b/cppcheck.cpp @@ -214,6 +214,9 @@ void CppCheck::checkFile(const std::string &code, const char FileName[]) std::istringstream istr(code); _tokenizer.tokenize(istr, FileName); } + + // Set variable id + _tokenizer.setVarId(); _tokenizer.fillFunctionList();