Hi dear list,<br /><br />I have 2 questions please:<br /><br />1. I want to insert some global data right after the includes list using the Rewriter. How can I find out the right SourceLocation?<br />2. I want to insert some code just before the main function. I'm able to find the SourceLocation of main FunctionDecl, and the method getLocStart gives me the location between the int and the main (int ^main()...). How can get the location of the line just above the main?<br /><br /><br />Thanks,<br />Ilya