[cfe-dev] Qualifiers of a function (was: SourceLocation of FunctionDecl)

Nimrod Partush nimrodpar at gmail.com
Fri Nov 5 08:19:57 PDT 2010


Hi,

Well, i tried various ways: Getting the FuncDecl qualifiers, Getting the
ResultType qualifiers, Getting the TypeLoc and through that...

Why don't you tell me how you did it? :)

On Fri, Nov 5, 2010 at 2:49 PM, Jan Bierbaum <s3306700 at inf.tu-dresden.de>wrote:

> Hi!
>
>
> Nimrod Partush meinte am 03.11.2010 10:24:
> > When asking for the qualifiers of:
> >
> > const int f();
> >
> > I get null. Am i doing something wrong?
>
> Well, you don't say how you do it... ;-)
>
> Probably you're making the same mistake I did some time ago. What you
> want is not the qualifiers of the function (it has none) but those of
> its return type.
>
>
> Regards, Jan.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101105/31400b2b/attachment.html>


More information about the cfe-dev mailing list