[Linux-kernel-mentees] [PATCH 05/23] parsing_cocci: check_meta: Reflect Parameter attributes

Julia Lawall julia.lawall at inria.fr
Mon Apr 27 17:00:22 UTC 2020



On Mon, 27 Apr 2020, Jaskaran Singh wrote:

> Parameter attributes are added to the SmPL AST. Reflect these changes in
> check_meta.ml.

Maybe add a comment that for the moment there are no metavariables for
attributes.

julia

>
> Signed-off-by: Jaskaran Singh <jaskaransingh7654321 at gmail.com>
> ---
>  parsing_cocci/check_meta.ml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/parsing_cocci/check_meta.ml b/parsing_cocci/check_meta.ml
> index 5a348ba3..ab1d357e 100644
> --- a/parsing_cocci/check_meta.ml
> +++ b/parsing_cocci/check_meta.ml
> @@ -374,7 +374,7 @@ and initialiser_list old_metas table minus =
>
>  and parameterTypeDef old_metas table minus param =
>    match Ast0.unwrap param with
> -    Ast0.Param(ty,id) ->
> +    Ast0.Param(ty,id,attr) ->
>        get_opt (ident ID old_metas table minus) id;
>        typeC old_metas table minus ty
>    | Ast0.MetaParam(name,_,_) ->
> --
> 2.21.1
>
>


More information about the Linux-kernel-mentees mailing list