Re: [DynInst_API:] [PATCH 1/2] Reduce namespace pollution


Date: Tue, 26 Apr 2016 16:52:02 -0400
From: Peter Foley <pefoley2@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] [PATCH 1/2] Reduce namespace pollution
On Tue, Apr 26, 2016 at 1:03 PM, Josh Stone <jistone@xxxxxxxxxx> wrote:
> On 04/25/2016 10:58 AM, Bill Williams wrote:
>> I think what we want to maintain, at least for 9.x, is the following
>> guidelines:
>>
>> * No "using namespace" in public headers (foo/h/*.h); "using foo::bar"
>> may be used but prefer typedefs if you want to clean up overly long
>> namespace chains
>> * Any of "using namespace foo", "using foo::bar", and "foo::bar" is
>> acceptable in private headers and source files (foo/src/*.[hC]). "using
>> foo::bar" or explicit "foo::bar" at point of use is preferred in the
>> absence of typedefs; typedefs and auto are the preferred options we
>> should trend towards in new code.
>> * If you're already touching a type, you may replace it with the most
>> preferred form (typedefs and auto to hide implementation details).
>> * If you see something unacceptable, fix it.
>>
>> This sound good to folks?
>
> Works for me.

What's the status of this patch then?
Should I make modifications or is it fine as-is?

Thanks,

Peter
[← Prev in Thread] Current Thread [Next in Thread→]