Add cast attributes to the C AST. This is a list of attributes in the Macrodecl type of the C AST.
Signed-off-by: Jaskaran Singh <jaskaransingh7654...@gmail.com> --- parsing_c/ast_c.ml | 3 ++- parsing_c/ast_c.mli | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/parsing_c/ast_c.ml b/parsing_c/ast_c.ml index 204bd412..f666d33c 100644 --- a/parsing_c/ast_c.ml +++ b/parsing_c/ast_c.ml @@ -561,7 +561,8 @@ and declaration = (* cppext: *) (* bool is true if there is a ; at the end *) | MacroDecl of - (storagebis * string * argument wrap2 list * bool) wrap (* fakestart *) + (storagebis * string * argument wrap2 list * attribute list * bool) + wrap (* fakestart *) | MacroDeclInit of (storagebis * string * argument wrap2 list * initialiser) wrap (* fakestart *) diff --git a/parsing_c/ast_c.mli b/parsing_c/ast_c.mli index 5411bbb3..95da1f5f 100644 --- a/parsing_c/ast_c.mli +++ b/parsing_c/ast_c.mli @@ -201,7 +201,9 @@ and exec_code_bis = ExecEval of expression | ExecToken and exec_code = exec_code_bis wrap and declaration = DeclList of onedecl wrap2 list wrap - | MacroDecl of (storagebis * string * argument wrap2 list * bool) wrap + | MacroDecl of + (storagebis * string * argument wrap2 list * attribute list * bool) + wrap | MacroDeclInit of (storagebis * string * argument wrap2 list * initialiser) wrap and onedecl = { -- 2.21.1 _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci