[Linux-kernel-mentees] [PATCH v2 02/32] parsing_cocci: ast0_cocci: Add cast attributes
From: Jaskaran Singh <hidden>
Date: 2020-05-11 10:08:06
Also in:
cocci
Subsystem:
the rest · Maintainer:
Linus Torvalds
Add cast attributes to AST0 of SmPL. This is a list of attributes in the Cast type of AST0. Signed-off-by: Jaskaran Singh <redacted> --- parsing_cocci/ast0_cocci.ml | 4 ++-- parsing_cocci/ast0_cocci.mli | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/parsing_cocci/ast0_cocci.ml b/parsing_cocci/ast0_cocci.ml
index a06d99ae..b65400be 100644
--- a/parsing_cocci/ast0_cocci.ml
+++ b/parsing_cocci/ast0_cocci.ml@@ -123,8 +123,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * typeC * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * typeC * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * string mcode (* ( *) * typeC * string mcode (* ) *)
diff --git a/parsing_cocci/ast0_cocci.mli b/parsing_cocci/ast0_cocci.mli
index 5c2520be..08a4b33b 100644
--- a/parsing_cocci/ast0_cocci.mli
+++ b/parsing_cocci/ast0_cocci.mli@@ -114,8 +114,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * typeC * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * typeC * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * string mcode (* ( *) * typeC * string mcode (* ) *)
--
2.21.1
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees