[Linux-kernel-mentees] [PATCH 18/30] parsing_cocci: unify_ast: Reflect Macrodecl attributes
Jaskaran Singh
jaskaransingh7654321 at gmail.com
Sun May 24 17:19:23 UTC 2020
Macrodecl attributes are added to the SmPL AST. Reflect these changes in
unify_ast.ml.
Signed-off-by: Jaskaran Singh <jaskaransingh7654321 at gmail.com>
---
parsing_cocci/unify_ast.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/parsing_cocci/unify_ast.ml b/parsing_cocci/unify_ast.ml
index 68cb6613..c4a6e0ce 100644
--- a/parsing_cocci/unify_ast.ml
+++ b/parsing_cocci/unify_ast.ml
@@ -409,8 +409,8 @@ and unify_declaration d1 d2 =
unify_ident nm1 nm2 &&
unify_dots unify_parameterTypeDef pdots params1 params2
else false
- | (Ast.MacroDecl(s1,n1,lp1,args1,rp1,sem1),
- Ast.MacroDecl(s2,n2,lp2,args2,rp2,sem2)) ->
+ | (Ast.MacroDecl(s1,n1,lp1,args1,rp1,attr1,sem1),
+ Ast.MacroDecl(s2,n2,lp2,args2,rp2,attr2,sem2)) ->
if bool_unify_option unify_mcode s1 s2
then
unify_ident n1 n2 &&
--
2.21.1
More information about the Linux-kernel-mentees
mailing list