Skip to content

Commit 805265f

Browse files
committed
Merge branch 'ab/fewer-the-index-macros'
Squelch warnings from Coccinelle * ab/fewer-the-index-macros: cocci: avoid "should ... be a metavariable" warnings
2 parents 215ae4f + cddd68a commit 805265f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

contrib/coccinelle/index-compatibility.cocci

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
// the_index.* variables
22
@@
3+
identifier AC = active_cache;
4+
identifier ACC = active_cache_changed;
5+
identifier ACT = active_cache_tree;
36
@@
47
(
5-
- active_cache
8+
- AC
69
+ the_index.cache
710
|
8-
- active_cache_changed
11+
- ACC
912
+ the_index.cache_changed
1013
|
11-
- active_cache_tree
14+
- ACT
1215
+ the_index.cache_tree
1316
)
1417

1518
@@
19+
identifier AN = active_nr;
1620
identifier f != prepare_to_commit;
1721
@@
1822
f(...) {<...
19-
- active_nr
23+
- AN
2024
+ the_index.cache_nr
2125
...>}
2226

0 commit comments

Comments
 (0)