The SmPL AST visitor has a function for attributes. Reflect these
changes in get_constants2.ml.

Signed-off-by: Jaskaran Singh <[email protected]>
---
 parsing_cocci/get_constants2.ml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/parsing_cocci/get_constants2.ml b/parsing_cocci/get_constants2.ml
index d1d77f65..8fffe195 100644
--- a/parsing_cocci/get_constants2.ml
+++ b/parsing_cocci/get_constants2.ml
@@ -646,6 +646,7 @@ let do_get_constants constants keywords env (neg_pos,_) =
     ident expression string_fragment string_format donothing donothing
     fullType typeC initialiser parameter define_parameter declaration donothing
     field ann_field donothing rule_elem statement donothing donothing donothing
+    donothing
 
 (* ------------------------------------------------------------------------ *)
 
@@ -714,7 +715,7 @@ let all_context =
     donothing donothing donothing donothing donothing donothing donothing
     donothing
     initialiser donothing donothing donothing donothing donothing donothing
-    donothing rule_elem statement donothing donothing donothing
+    donothing rule_elem statement donothing donothing donothing donothing
 
 (* ------------------------------------------------------------------------ *)
 
-- 
2.21.3

_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to