mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
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:
@@ -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(...) {<...
|
||||
|
||||
Reference in New Issue
Block a user