Add macrodecl attributes to the SmPL AST. This is a list of attributes in the Macrodecl type of the SmPL AST.
Signed-off-by: Jaskaran Singh <[email protected]> --- parsing_cocci/ast_cocci.ml | 3 ++- parsing_cocci/ast_cocci.mli | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/parsing_cocci/ast_cocci.ml b/parsing_cocci/ast_cocci.ml index 9b147e5c..87bd017a 100644 --- a/parsing_cocci/ast_cocci.ml +++ b/parsing_cocci/ast_cocci.ml @@ -399,7 +399,8 @@ and base_declaration = | TyDecl of fullType * string mcode (* ; *) | MacroDecl of storage mcode option * ident (* name *) * string mcode (* ( *) * - expression dots * string mcode (* ) *) * string mcode (* ; *) + expression dots * string mcode (* ) *) * + attr list * string mcode (* ; *) | MacroDeclInit of storage mcode option * ident (* name *) * string mcode (* ( *) * expression dots * string mcode (* ) *) * string mcode (*=*) * diff --git a/parsing_cocci/ast_cocci.mli b/parsing_cocci/ast_cocci.mli index c56bba88..5d04430c 100644 --- a/parsing_cocci/ast_cocci.mli +++ b/parsing_cocci/ast_cocci.mli @@ -381,7 +381,8 @@ and base_declaration = | TyDecl of fullType * string mcode (* ; *) | MacroDecl of storage mcode option * ident (* name *) * string mcode (* ( *) * - expression dots * string mcode (* ) *) * string mcode (* ; *) + expression dots * string mcode (* ) *) * + attr list * string mcode (* ; *) | MacroDeclInit of storage mcode option * ident (* name *) * string mcode (* ( *) * expression dots * string mcode (* ) *) * string mcode (*=*) * -- 2.21.1 _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
