Instrument source code using clang

Hi all,

As a newbie to Clang, I’m trying to extract program code features like count of number of branches to insert these values back into to the original code (generate instrumented code). Is there a clang plugin that can be used for this. Or any pointers towards resources or sample projects in github could be really helpful that explain the steps in achieving this.

Cheers, Chris