]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/commitdiff
Fix few problems.
authorPetr Silhavik <silhavik.p@gmail.com>
Fri, 5 Apr 2013 11:37:32 +0000 (13:37 +0200)
committerPetr Silhavik <silhavik.p@gmail.com>
Fri, 5 Apr 2013 11:37:32 +0000 (13:37 +0200)
The assynchronous state machine is not printed to console as new state machine.

Change from diag_unhandled_reaction_decl to diag_no_history.

src/visualizer.cpp

index 102e356775167af0fa002c3656a2f2e2d47f59b5..5efc4d0a218dd923a7a2a507a74952053c0eccd7 100644 (file)
@@ -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<MyCXXRecordDecl*>(Declaration);
        const CXXBaseSpecifier *Base;