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