On Mon, 16 Mar 2020, Jaskaran Singh wrote: > ParenType and FunctionType are now added to the SmPL ASTs. Add > cases for these types in index.ml. > > Signed-off-by: Jaskaran Singh <[email protected]> > --- > parsing_cocci/index.ml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/parsing_cocci/index.ml b/parsing_cocci/index.ml > index a1103503..5c91f620 100644 > --- a/parsing_cocci/index.ml > +++ b/parsing_cocci/index.ml > @@ -93,6 +93,8 @@ let typeC t = > | Ast0.Signed(sign,ty) -> [129] > | Ast0.Pointer(ty,star) -> [49] > | Ast0.FunctionPointer(ty,lp1,star,rp1,lp2,params,rp2) -> [131] > + | Ast0.ParenType(lp,ty,rp) -> [138] > + | Ast0.FunctionType(ty,lp,params,rp) -> [139]
You should indicate at the top of the file that these numbers aren't available any more. julia > | Ast0.Array(ty,lb,size,rb) -> [50] > | Ast0.Decimal(dec,lp,length,comma,precision_opt,rp) -> [160] > | Ast0.EnumName(kind,name) -> [146] > -- > 2.21.1 > > _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
