[ClavaWeaver] Adds conversion from conditional Clava node to jp
@@ -44,6 +44,7 @@ import pt.up.fe.specs.clava.ast.expr.CXXNewExpr;
import pt.up.fe.specs.clava.ast.expr.CXXThisExpr;
import pt.up.fe.specs.clava.ast.expr.CallExpr;
import pt.up.fe.specs.clava.ast.expr.CastExpr;
+import pt.up.fe.specs.clava.ast.expr.ConditionalOperator;
import pt.up.fe.specs.clava.ast.expr.DeclRefExpr;
import pt.up.fe.specs.clava.ast.expr.Expr;
import pt.up.fe.specs.clava.ast.expr.Literal;
@@ -123,6 +124,7 @@ import pt.up.fe.specs.clava.weaver.joinpoints.CxxStatement;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxStruct;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxSwitch;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxTag;
+import pt.up.fe.specs.clava.weaver.joinpoints.CxxTernaryOp;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxThis;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxTypedefDecl;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxTypedefNameDecl;
@@ -164,6 +166,7 @@ public class CxxJoinpoints {
JOINPOINT_FACTORY.put(CastExpr.class, CxxCast::new);
JOINPOINT_FACTORY.put(BinaryOperator.class, CxxBinaryOp::new);
JOINPOINT_FACTORY.put(UnaryOperator.class, CxxUnaryOp::new);
+ JOINPOINT_FACTORY.put(ConditionalOperator.class, CxxTernaryOp::new);
JOINPOINT_FACTORY.put(CXXMemberCallExpr.class, CxxMemberCall::new);
JOINPOINT_FACTORY.put(CallExpr.class, CxxCall::new);
JOINPOINT_FACTORY.put(DeclRefExpr.class, CxxVarref::new);
