Instrumentation with Clang

Hi Clang developers,

May I know how to insert an extra function declaration at the very beginning of the compilation?

For example, I want to add a call to function “foo”, which is not defined by the source code. Instead of adding “extern void foo()” to each source code manually, I’d like to use clang to do it automatically.