SmPL attributes need to be wrapped to provide support for meta attributes. Wrap attributes in the SmPL AST.
Signed-off-by: Jaskaran Singh <[email protected]> --- parsing_cocci/ast_cocci.ml | 5 ++++- parsing_cocci/ast_cocci.mli | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/parsing_cocci/ast_cocci.ml b/parsing_cocci/ast_cocci.ml index 403756c4..be6731ab 100644 --- a/parsing_cocci/ast_cocci.ml +++ b/parsing_cocci/ast_cocci.ml @@ -624,7 +624,10 @@ and fninfo = | FInline of string mcode | FAttr of attr -and attr = string mcode +and base_attr = + Attribute of string mcode + +and attr = base_attr wrap and metaStmtInfo = NotSequencible | SequencibleAfterDots of dots_whencode list | Sequencible diff --git a/parsing_cocci/ast_cocci.mli b/parsing_cocci/ast_cocci.mli index 873e1d31..6fc961b7 100644 --- a/parsing_cocci/ast_cocci.mli +++ b/parsing_cocci/ast_cocci.mli @@ -604,7 +604,10 @@ and fninfo = | FInline of string mcode | FAttr of attr -and attr = string mcode +and base_attr = + Attribute of string mcode + +and attr = base_attr wrap and metaStmtInfo = NotSequencible | SequencibleAfterDots of dots_whencode list | Sequencible -- 2.21.3 _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
