This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFA 02/22] Use RAII to save and restore scalars


On 09/30/2016 03:02 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
> 
> Pedro> template<class T>
> Pedro> scoped_restore_<T> make_scoped_restore (T *var)
> Pedro> {
> Pedro>   return scoped_restore_<T> (var);
> Pedro> }
> 
> Yeah, I'll do this.  I don't know why I didn't remember this when
> writing the patches.

Great, thanks.

> 
> I'd also appreciate it if you could say whether you want "m_" member
> naming.
> 

Unless there's a good reason to deviate, I think it's a good idea
to follow gcc's coding conventions.  For that reason, my preference
is to use "m_" for private data members.

Thanks,
Pedro Alves


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