From: Petr Silhavik Date: Fri, 5 Apr 2013 11:37:32 +0000 (+0200) Subject: Fix few problems. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/boost-statechart-viewer.git/commitdiff_plain/233d68c07f739598ceed61f76c2ac201cc003645 Fix few problems. The assynchronous state machine is not printed to console as new state machine. Change from diag_unhandled_reaction_decl to diag_no_history. --- diff --git a/src/visualizer.cpp b/src/visualizer.cpp index 102e356..5efc4d0 100644 --- a/src/visualizer.cpp +++ b/src/visualizer.cpp @@ -314,7 +314,7 @@ public: Diags.getCustomDiagID(DiagnosticsEngine::Error, "Unhandled reaction type '%0'"); diag_unhandled_reaction_decl = Diags.getCustomDiagID(DiagnosticsEngine::Error, "Unhandled reaction decl '%0'"); - diag_unhandled_reaction_decl = + diag_no_history = Diags.getCustomDiagID(DiagnosticsEngine::Error, "History is not yet supported"); diag_missing_reaction = Diags.getCustomDiagID(DiagnosticsEngine::Error, "Missing react method for event '%0'"); @@ -523,8 +523,9 @@ public: return true; if (Declaration->getQualifiedNameAsString() == "boost::statechart::state" || Declaration->getQualifiedNameAsString() == "TimedState" || - Declaration->getQualifiedNameAsString() == "TimedSimpleState") - return true; // This is an "abstract class" not a real state + Declaration->getQualifiedNameAsString() == "TimedSimpleState" || + Declaration->getQualifiedNameAsString() == "boost::statechart::assynchronous_state_machine") + return true; // This is an "abstract class" not a real state or real state machine MyCXXRecordDecl *RecordDecl = static_cast(Declaration); const CXXBaseSpecifier *Base;