Merge branch 'jc/cocci-avoid-regexp-constraint'

Avoid regexp_constraint and instead use comparison_constraint when
listing functions to exclude from application of coccinelle rules,
as spatch can be built with different regexp engine X-<.

* jc/cocci-avoid-regexp-constraint:
  cocci: matching (multiple) identifiers
This commit is contained in:
Junio C Hamano
2025-06-30 14:30:30 -07:00

View File

@@ -25,7 +25,8 @@ expression s;
// functions, then the recommended transformation will be bogus with
// repo_get_commit_tree() on the LHS.
@@
identifier f !~ "^(repo_get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit|set_commit_tree)$";
identifier f != { repo_get_commit_tree, get_commit_tree_in_graph_one,
load_tree_for_commit, set_commit_tree };
expression c;
@@
f(...) {<...