How can we extract Loop Conditions from a program using Clang?

I have generated abstract syntax tree using Clang Compiler using the command : clang -Xclang -ast-dump filename.c. Now, I want to extract Loop Conditions from a program using Clang. I have gone through several resources, but I couldn’t find proper answer. KIndly help me to solve this.