[ClavaWeaver] Adds rule for CxxMethod in CxxJoinpoints
@@ -19,6 +19,7 @@ import pt.up.fe.specs.clang.clava.lara.LaraMarkerPragma;
import pt.up.fe.specs.clang.clava.lara.LaraTagPragma;
import pt.up.fe.specs.clava.ClavaNode;
import pt.up.fe.specs.clava.ast.comment.Comment;
+import pt.up.fe.specs.clava.ast.decl.CXXMethodDecl;
import pt.up.fe.specs.clava.ast.decl.CXXRecordDecl;
import pt.up.fe.specs.clava.ast.decl.Decl;
import pt.up.fe.specs.clava.ast.decl.FunctionDecl;
@@ -66,6 +67,7 @@ import pt.up.fe.specs.clava.weaver.joinpoints.CxxIf;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxLoop;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxMarker;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxMemberAccess;
+import pt.up.fe.specs.clava.weaver.joinpoints.CxxMethod;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxNamedDecl;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxOmp;
import pt.up.fe.specs.clava.weaver.joinpoints.CxxParam;
@@ -108,6 +110,7 @@ public class CxxJoinpoints {
JOINPOINT_FACTORY.put(LoopStmt.class, CxxLoop::new);
JOINPOINT_FACTORY.put(CompoundStmt.class, CxxScope::new);
JOINPOINT_FACTORY.put(Stmt.class, CxxStatement::new);
+ JOINPOINT_FACTORY.put(CXXMethodDecl.class, CxxMethod::new);
JOINPOINT_FACTORY.put(FunctionDecl.class, CxxFunction::new);
JOINPOINT_FACTORY.put(RecordDecl.class, CxxJoinpoints::recordDeclFactory);
JOINPOINT_FACTORY.put(ParmVarDecl.class, CxxParam::new);
