diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 55d631d15..718bdd430 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -143,6 +143,15 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin if (fdump.is_open()) { fdump << "" << std::endl; fdump << "" << std::endl; + fdump << " \n"; fdump << " " << std::endl; for (unsigned int i = 0; i < files.size(); ++i) fdump << " " << std::endl; diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 0c10fbc7b..1ff658b11 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -3919,6 +3919,13 @@ void Tokenizer::dump(std::ostream &out) const out << " astOperand1=\"" << tok->astOperand1() << '\"'; if (tok->astOperand2()) out << " astOperand2=\"" << tok->astOperand2() << '\"'; + if (tok->valueType()) { + std::string s = tok->valueType()->str(); + std::string::size_type pos = s.find("container("); + if (pos != std::string::npos) + s.erase(pos+9, s.find(")",pos)-pos-8); + out << " valueType=\"" << s << '\"'; + } out << "/>" << std::endl; } out << " " << std::endl;