ExprEngine: Improve output

This commit is contained in:
Daniel Marjamäki 2019-09-26 21:00:36 +02:00
parent f1b42fe05c
commit f47aaed21e
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,6 @@ namespace {
class TrackExecution { class TrackExecution {
public: public:
TrackExecution() : mDataIndex(0) {} TrackExecution() : mDataIndex(0) {}
std::set<std::string> symbols;
std::map<const Token *, std::vector<std::string>> map; std::map<const Token *, std::vector<std::string>> map;
int getNewDataIndex() { int getNewDataIndex() {
return mDataIndex++; return mDataIndex++;
@ -91,6 +90,8 @@ namespace {
const Token *tok = it.first; const Token *tok = it.first;
if (lineNumber != tok->linenr()) if (lineNumber != tok->linenr())
continue; continue;
if (column != tok->column())
continue;
const std::vector<std::string> &dumps = it.second; const std::vector<std::string> &dumps = it.second;
for (const std::string &dump : dumps) for (const std::string &dump : dumps)
std::cout << lineNumber << ":" << column << ": " << dump << "\n"; std::cout << lineNumber << ":" << column << ": " << dump << "\n";
@ -99,6 +100,7 @@ namespace {
} }
private: private:
int mDataIndex; int mDataIndex;
std::set<std::string> symbols;
}; };
class Data { class Data {