[cfe-dev] optional warning on member access without this

Douglas Gregor dgregor at apple.com
Mon Jan 18 10:36:12 PST 2010


On Jan 15, 2010, at 2:19 PM, Jochen Wilhelmy wrote:

> Hi!
>
> when accessing members, I use this-> since it shows the
> member access in terms of the language. other common
> ways are e.g. using a prefix like m_.
>
> it would be cool if there is an optional warning if a member
> is accessed without this->


It would be easy to implement, although we would get strangled if it  
wasn't completely opt-in :)

	- Doug



More information about the cfe-dev mailing list