tools to extract function declaration and typedef