This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] C++: fix-it hints suggesting accessors for private fields


On 04/25/2017 04:01 PM, David Malcolm wrote:
On Tue, 2017-04-25 at 12:11 -0400, Nathan Sidwell wrote:
On 04/25/2017 11:58 AM, David Malcolm wrote:

    { return FIELD; }

I tried adding the kind of filtering you suggest, but the binfo doesn't
seem to have info on const vs non-const qualification of the accessor.

You need to look at the type of the function-decl. I think looking at the artifical this parm on TYPE_ARG_TYPES?


nathan

--
Nathan Sidwell


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]