Skip to contentSkip to conversation

tests: Add test case for matching pointers to const pointers (and variants)

PATCH Markus Elfring 3 participants 7 messages Feb 5, 2020 – Feb 7, 2020

lore
Share & tools
lore
#1 lore raw
Quoted 2 lines · Markus Elfring

Would you like to avoid any abbreviations in the patch subject?

I used abbreviations to keep the patch subject short but still clear.

Would the following be a better subject?

"tests: Add test case to match const pointer variants"

Cheers,
Jaskaran.

Quoted 9 lines
Quoted 2 lines

These types would not match previously.

I imagine that this information can be improved for a nicer patch description,
can't it?

Regards,
Markus

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#2 lore raw
Quoted 9 lines · Jaskaran Singh
Quoted 2 lines · Markus Elfring

Would you like to avoid any abbreviations in the patch subject?

I used abbreviations to keep the patch subject short but still clear.

Would the following be a better subject?

"tests: Add test case to match const pointer variants"

OK for me.

julia

Quoted 15 lines

Cheers,
Jaskaran.

Quoted 9 lines
Quoted 2 lines

These types would not match previously.

I imagine that this information can be improved for a nicer patch description,
can't it?

Regards,
Markus

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#4 lore raw

Re: [Cocci] [2/2] tests: Add test case to match const pointer variants

In reply to Jaskaran Singh
Quoted 1 line

Would the following be a better subject?

The alternative is nicer.

Will other implementation details become also more interesting?

The information “Align C AST and Cocci AST” was provided.
https://lore.kernel.org/cocci/[email protected]/
https://systeme.lip6.fr/pipermail/cocci/2020-February/006840.html

* Should the potential for differences in these “AST” be checked any more?

* How can such items be compared safely?

Is there a need to extend the test format?
https://github.com/coccinelle/coccinelle/issues/134

Regards,
Markus
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#5 lore raw

Re: [Cocci] [2/2] tests: Add test case to match const pointer variants

Quoted 5 lines · Markus Elfring
Quoted 1 line

Would the following be a better subject?

The alternative is nicer.

Quoted 9 lines

Will other implementation details become also more interesting?

The information “Align C AST and Cocci AST” was provided.
https://lore.kernel.org/cocci/[email protected]/
https://systeme.lip6.fr/pipermail/cocci/2020-February/006840.html

* Should the potential for differences in these “AST” be checked any more?

An effort is already being made to do this by me and Julia :)

Quoted 2 lines

* How can such items be compared safely?

Not sure what you mean. If you mean how the two ASTs can be compared, it's just a process of data collection and debugging.

Cheers,
Jaskaran.

Quoted 6 lines

Is there a need to extend the test format?
https://github.com/coccinelle/coccinelle/issues/134

Regards,
Markus

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#6 lore raw

Re: [Cocci] [2/2] tests: Add test case to match const pointer variants

Quoted 3 lines
Quoted 1 line

* Should the potential for differences in these “AST” be checked any more?

An effort is already being made to do this by me and Julia :)

I am curious how this collaboration will evolve further.

Quoted 4 lines
Quoted 1 line

* How can such items be compared safely?

Not sure what you mean. If you mean how the two ASTs can be compared, it's just a process of data collection and debugging.

Which programming interfaces do you use for this purpose at the moment?

Regards,
Markus
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees