Skip to contentSkip to conversation

tests: Add test case to match meta attribute

PATCH Markus Elfring 1 participant 1 message Jul 26, 2020

lore
Share & tools
lore
#0 lore raw

…

Review line 9

Quoted 11 lines

+++ b/tests/metaattr.cocci

(quoted diff) +9 -0
@@ -0,0 +1,9 @@
+@@
+attribute name __attr__;
+attribute a;
+identifier b;
+@@
+
+-	int
++	char
+  b a = 1;

I have got understanding difficulties for this test SmPL script. I interpret such SmPL code in the way that the metavariable “__attr__” is declared while it is not used further.

Will the distinction between the metavariable types “attribute” and “attribute name” trigger any extensions for the software documentation?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci