Tool similar to llvm-extract?

Hi all,

I would like to know if there's any tool for C/C++ that provides functionality similar to the llvm-extract tool, ie. extract C/C++ functions from a source file. If there's not such tool available then which library/libraries from the Clang project are best suited for this type of task?