[ClavaWeaver] Updates C++ weaver test ArrayAccess to use Query
+import weaver.Query;
+
aspectdef ArrayAccess
/*
@@ -6,10 +8,16 @@ aspectdef ArrayAccess
println("STMT:" + $stmt.code);
end
*/
+/*
select stmt.arrayAccess end
apply
println("Array var: " + $arrayAccess.arrayVar.name);
println($arrayAccess.code + "->" + $arrayAccess.use);
end
+*/
+ for(var $arrayAccess of Query.search("arrayAccess")) {
+ println("Array var: " + $arrayAccess.arrayVar.name);
+ println($arrayAccess.code + "->" + $arrayAccess.use);
+ }
end
\ No newline at end of file
