Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve software documentation for safer combination of desired functionality #354

Open
elfring opened this issue Feb 12, 2024 · 0 comments

Comments

@elfring
Copy link
Contributor

elfring commented Feb 12, 2024

💭 I hope that some functionality can be clarified better also together with an example script (like the following) for the semantic patch language according to the development status of the software combination “Coccinelle 1.1.1-00676-g99513ec1”.

@special_selection disable decl_init@
expression action;
identifier var;
position call_pos, declaration_pos;
declaration declaration1;
statement statement1;
type t;
@@
(
(t * var@declaration_pos;
&declaration1
)
 ... when != var
     when any
(action@call_pos(..., &var, ...);
&statement1
)
 ... when exists
 var
|
*declaration1
 ... when != var
     when any
*statement1
)

🔮 Will the chances grow to improve the software documentation in ways which will make it easier to reason about desirable behaviour (also for such a test case)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant