(no subject)

As the preprocessor has a set of callback function which can be overridden to get notifications,
Is there way to get notified whenever a function declaration is encountered by the Parser.
I saw one function in the class Sema.

Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D);

Is there a way to define my own function which does the same thing.

As the preprocessor has a set of callback function which can be overridden to get notifications,
Is there way to get notified whenever a function declaration is encountered by the Parser.
I saw one function in the class Sema.

Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D);

Is there a way to define my own function which does the same thing.