Coccinelle release 0.2.5-rc8
[bpt/coccinelle.git] / parsing_cocci / get_constants2.ml
index a98463d..c471440 100644 (file)
@@ -285,6 +285,7 @@ let do_get_constants constants keywords env neg_pos =
          | nm -> constants nm)
     | Ast.MetaId(name,_,_,_) | Ast.MetaFunc(name,_,_,_)
     | Ast.MetaLocalFunc(name,_,_,_) -> bind (k i) (minherited name)
+    | Ast.DisjId(ids) -> disj_union_all (List.map r.V.combiner_ident ids)
     | _ -> k i in
 
   let rec type_collect res = function
@@ -359,6 +360,8 @@ let do_get_constants constants keywords env neg_pos =
     match Ast.unwrap d with
       Ast.MetaDecl(name,_,_) | Ast.MetaField(name,_,_) ->
        bind (k d) (minherited name)
+    | Ast.MetaFieldList(name,Ast.MetaListLen(lenname,_,_),_,_) ->
+       bind (minherited name) (bind (minherited lenname) (k d))
     | Ast.DisjDecl(decls) ->
        disj_union_all (List.map r.V.combiner_declaration decls)
     | Ast.OptDecl(decl) -> option_default
@@ -657,7 +660,6 @@ let get_constants rules neg_pos_vars =
   | Flag.Google _ ->
       let res = run rules neg_pos_vars in
       (interpret_grep true res,interpret_google true res,None)
-  | Flag.IdUtils ->
+  | Flag.IdUtils ->
       let res = run rules neg_pos_vars in
       (interpret_grep true res,None,Some res)
-