Macrodecl attributes are added to the SmPL AST. Reflect these changes in ast0toast.ml.
Signed-off-by: Jaskaran Singh <jaskaransingh7654...@gmail.com> --- parsing_cocci/ast0toast.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parsing_cocci/ast0toast.ml b/parsing_cocci/ast0toast.ml index 09c28c06..7ca7bd3f 100644 --- a/parsing_cocci/ast0toast.ml +++ b/parsing_cocci/ast0toast.ml @@ -657,15 +657,16 @@ and declaration d = let rp = mcode rp in let sem = mcode sem in Ast.FunProto(fi,name,lp,params,va,rp,sem) - | Ast0.MacroDecl(stg,name,lp,args,rp,sem) -> + | Ast0.MacroDecl(stg,name,lp,args,rp,attr,sem) -> (* this would seem to need allminus... *) let stg = get_option mcode stg in let name = ident name in let lp = mcode lp in let args = dots expression args in let rp = mcode rp in + let attr = List.map mcode attr in let sem = mcode sem in - Ast.MacroDecl(stg,name,lp,args,rp,sem) + Ast.MacroDecl(stg,name,lp,args,rp,attr,sem) | Ast0.MacroDeclInit(stg,name,lp,args,rp,eq,ini,sem) -> (* this would seem to need allminus... *) let stg = get_option mcode stg in -- 2.21.1 _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci