Fix spurious warnings about unused private field

Authored by ogoffart on May 8 2016, 4:08 AM.



If the address of a field is taken as a pointer to member, we should
not warn that the field is not used.

Normaly, yse of fields are done from MemberExpr, but in case of pointer to
member, it is in a DeclRefExpr

Diff Detail

ogoffart retitled this revision from to Fix spurious warnings about unused private field.May 8 2016, 4:08 AM
ogoffart updated this object.
ogoffart added reviewers: cfe-commits, djasper.
djasper accepted this revision.May 8 2016, 10:52 AM

Looks good.

This revision is now accepted and ready to land.May 8 2016, 10:52 AM
This revision was automatically updated to reflect the committed changes.