]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/commitdiff
Order Diag parameters as expected by diag_warning template
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Jan 2013 22:09:22 +0000 (23:09 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Jan 2013 22:09:22 +0000 (23:09 +0100)
The produced warnings are not so ugly now. Also see
http://clang.llvm.org/docs/InternalsManual.html#producing-the-diagnostic

src/visualizer.cpp

index 165da3ad2d5868c679dca8e8c5f0eaa308fda979..068926d57a0e3ba525d8dca131178c60263ccc23 100644 (file)
@@ -455,7 +455,7 @@ public:
            HandleReaction(*Reactions.first, RecordDecl);
        if(typedef_num == 0) {
            Diag(RecordDecl->getLocStart(), diag_warning)
-               << " missing typedef for reactions in state : " << RecordDecl->getName();
+               << RecordDecl->getName() << "state has no typedef for reactions";
            state->setNoTypedef();
        }
     }