<div dir="ltr">Hi,<div><br></div><div>I want to add code just before a certain function deceleration.</div><div><br></div><div>I do this by visiting the FunctionDecl and using it's start location for InsertTextBefore.</div>

<div><br></div><div>The problem is that GetLocStart returns the location of the Function's name and not the entire prototype i.e. if i have this function:</div><div><br></div><div>static int f() {</div><div>}</div><div>

<br></div><div>i will get the location of "f" and not the location of "static".</div><div><br></div><div>Help?</div><div><br></div><div>Thanks.</div></div>