Skip to content

Commit a013680

Browse files
committed
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
2 parents cf6f63e + f2ad545 commit a013680

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/coccinelle/commit.cocci

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ expression s;
2525
// functions, then the recommended transformation will be bogus with
2626
// repo_get_commit_tree() on the LHS.
2727
@@
28-
identifier f !~ "^(repo_get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit|set_commit_tree)$";
28+
identifier f != { repo_get_commit_tree, get_commit_tree_in_graph_one,
29+
load_tree_for_commit, set_commit_tree };
2930
expression c;
3031
@@
3132
f(...) {<...

0 commit comments

Comments
 (0)