ParenType and FunctionType are now added to the SmPL ASTs. Add cases for these types in position_generator.ml.
Signed-off-by: Jaskaran Singh <jaskaransingh7654...@gmail.com> --- tools/spgen/source/position_generator.ml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/spgen/source/position_generator.ml b/tools/spgen/source/position_generator.ml index 31d6cb5e..2fa630fb 100644 --- a/tools/spgen/source/position_generator.ml +++ b/tools/spgen/source/position_generator.ml @@ -195,6 +195,12 @@ let rec type_pos t snp | Ast0.FunctionPointer(t,lp,star,rp,lp2,params,rp2) -> let constructor ~mc = Ast0.FunctionPointer(t,lp,star,rp,lp2,params,mc) in mcode_wrap ~mc:rp2 ~constructor snp + | Ast0.ParenType(lp,t,rp) -> + let constructor ~mc = Ast0.ParenType(lp,t,rp) in + mcode_wrap ~mc:rp ~constructor snp + | Ast0.FunctionType(t,lp,params,rp) -> + let constructor ~mc = Ast0.FunctionType(t,lp,params,rp) in + mcode_wrap ~mc:rp ~constructor snp | Ast0.Array(t,lb,expr,rb) -> let constructor ~mc = Ast0.Array(t,lb,expr,mc) in mcode_wrap ~mc:rb ~constructor snp -- 2.21.1 _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci