clad icon indicating copy to clipboard operation
clad copied to clipboard

[Feature Request] Add a generic interface to support plugins in clad.

Open grimmmyshini opened this issue 3 years ago • 1 comments

It might be useful to employ a callback-based approach to implement a generic interface that all plugins to clad can implement, this will maintain uniformity and ensure that access rights are not being misused. This may be implemented as an abstract class that can be extended by the specific plugin.

How we would go about implementing this is having well-defined "hooks" or "events" that would trigger a call to one of the functions in our callback interface. An example of an event in clad may be after calculating the derivative of a BinOp expression (or other similar events that can be clearly identified in the code).

Inspiration from clang PPCallbacks.

grimmmyshini avatar Jul 10 '21 20:07 grimmmyshini

#304 tracks this.

grimmmyshini avatar Oct 29 '21 10:10 grimmmyshini

Resolved by #304.

vgvassilev avatar Dec 29 '23 13:12 vgvassilev