Re: [Linux-kernel-mentees] [PATCH 10/26] parsing_cocci: single_statement: Add cases for ParenType/FunctionType
From: Julia Lawall <julia.lawall@inria.fr>
Date: 2020-03-18 18:38:06
Also in:
cocci
From: Julia Lawall <julia.lawall@inria.fr>
Date: 2020-03-18 18:38:06
Also in:
cocci
On Mon, 16 Mar 2020, Jaskaran Singh wrote:
ParenType/FunctionType are now types in the SmPL ASTs. Add cases for these types in single_statement.ml. Signed-off-by: Jaskaran Singh <redacted> --- parsing_cocci/single_statement.ml | 2 ++ 1 file changed, 2 insertions(+)diff --git a/parsing_cocci/single_statement.ml b/parsing_cocci/single_statement.ml index 46408b73..48d77b5a 100644 --- a/parsing_cocci/single_statement.ml +++ b/parsing_cocci/single_statement.ml@@ -166,6 +166,8 @@ and left_typeC t = | Ast0.Signed(sgn,ty) -> modif_before_mcode sgn | Ast0.Pointer(ty,star) -> left_typeC ty | Ast0.FunctionPointer(ty,lp1,star,rp1,lp2,params,rp2) -> left_typeC ty + | Ast0.ParenType(lp,ty,rp) -> left_typeC ty
This doesn't look correct. ty is not the leftmost thing. julia
+ | Ast0.FunctionType(ty,lp,params,rp) -> left_typeC ty
| Ast0.Array(ty,lb,size,rb) -> left_typeC ty
| Ast0.Decimal(dec,lp,length,comma,precision_opt,rp) ->
modif_before_mcode dec
--
2.21.1
_______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees