[cfe-dev] SourceLocation of FunctionDecl
jahanian
fjahanian at apple.com
Tue Nov 2 09:14:26 PDT 2010
Can't you do this by adding code *after* the previous declaration entity?
- Fariborz
On Nov 2, 2010, at 7:54 AM, Nimrod Partush wrote:
> Hi,
>
> I want to add code just before a certain function deceleration.
>
> I do this by visiting the FunctionDecl and using it's start location for InsertTextBefore.
>
> 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:
>
> static int f() {
> }
>
> i will get the location of "f" and not the location of "static".
>
> Help?
>
> Thanks.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list