[ClavaWeaver] Add mapping for remaining common stmts
@@ -25,6 +25,7 @@ import pt.up.fe.specs.clava.ast.decl.VarDecl;
import pt.up.fe.specs.clava.ast.expr.BinaryOperator;
import pt.up.fe.specs.clava.ast.expr.CXXConstructExpr;
import pt.up.fe.specs.clava.ast.expr.CXXMemberCallExpr;
+import pt.up.fe.specs.clava.ast.expr.CXXThrowExpr;
import pt.up.fe.specs.clava.ast.expr.CallExpr;
import pt.up.fe.specs.clava.ast.expr.ConditionalOperator;
import pt.up.fe.specs.clava.ast.expr.DeclRefExpr;
@@ -32,7 +33,13 @@ import pt.up.fe.specs.clava.ast.expr.Expr;
import pt.up.fe.specs.clava.ast.expr.MemberExpr;
import pt.up.fe.specs.clava.ast.extra.App;
import pt.up.fe.specs.clava.ast.extra.TranslationUnit;
+import pt.up.fe.specs.clava.ast.stmt.BreakStmt;
+import pt.up.fe.specs.clava.ast.stmt.CXXCatchStmt;
+import pt.up.fe.specs.clava.ast.stmt.CXXTryStmt;
import pt.up.fe.specs.clava.ast.stmt.CaseStmt;
+import pt.up.fe.specs.clava.ast.stmt.ContinueStmt;
+import pt.up.fe.specs.clava.ast.stmt.DefaultStmt;
+import pt.up.fe.specs.clava.ast.stmt.GotoStmt;
import pt.up.fe.specs.clava.ast.stmt.IfStmt;
import pt.up.fe.specs.clava.ast.stmt.LoopStmt;
import pt.up.fe.specs.clava.ast.stmt.Stmt;
@@ -45,6 +52,13 @@ public class ClavaCommonLanguage {
private static final FunctionClassMap<ClavaNode, String> JOINPOINT_MAPPER;
static {
JOINPOINT_MAPPER = new FunctionClassMap<>();
+ JOINPOINT_MAPPER.put(GotoStmt.class, node -> "GotoJp");
+ JOINPOINT_MAPPER.put(DefaultStmt.class, node -> "DefaultJp");
+ JOINPOINT_MAPPER.put(ContinueStmt.class, node -> "ContinueJp");
+ JOINPOINT_MAPPER.put(BreakStmt.class, node -> "BreakJp");
+ JOINPOINT_MAPPER.put(CXXThrowExpr.class, node -> "ThrowJp");
+ JOINPOINT_MAPPER.put(CXXCatchStmt.class, node -> "CatchJp");
+ JOINPOINT_MAPPER.put(CXXTryStmt.class, node -> "TryJp");
// JOINPOINT_MAPPER.put(ForStmt.class, node -> "ForJp");
// JOINPOINT_MAPPER.put(DoStmt.class, node -> "DoJp");
// JOINPOINT_MAPPER.put(WhileStmt.class, node -> "WhileJp");
