How to get abstract syntax tree of a C program with GCC?
I'm trying to automatically insert OpenMP pragmas to the input C program. I need to analyze nested for loops to find dependencies so that I can insert appropriate OpenMP pragmas.
So basically what I want to traverse and analyze the abstract syntax tree of the input C program.
How do I achieve this?