About CFG Generation

Hi, I am a beginner in Clang front end, and currently I can use AST consumer to traverse the AST tree. But is it possible for me to generate a CFG of the code out of AST so that I can do static analysis on it? I did not find out any CFG related FrontendAction yet:(
Thank you!!!