| 18 | public: |
| 19 | TypeDeclVisitor ( TypeDecl * td ) : tracedType(td) {} |
| 20 | virtual void preVisit ( TypeDecl * td ) override { |
| 21 | Visitor::preVisit(td); |
| 22 | if ( td==tracedType ) { |
| 23 | os_debug_break(); // C++ stack contains the location (breakpoint goes here too) |
| 24 | } |
| 25 | } |
| 26 | virtual bool canVisitStructure ( Structure * ) override { return true; } |
| 27 | virtual bool canVisitGlobalVariable ( Variable * ) override { return true; } |
| 28 | virtual bool canVisitFunction ( Function * ) override { return true; } |
no test coverage detected