Re: RFC: change in policy for include guards

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 12 Feb 2014 11:30:11 -0700

On 02/12/2014 01:41 AM, Kinkie wrote:
>> These provide some very useful info:
>> http://stackoverflow.com/questions/2027991/list-of-standard-header-files-in-c-and-c
>> http://www.cplusplus.com/reference/
>>
>> I would draw the line at ANSI C-style and C++ headers.
>>
>> Proposal:
>>
>> * system C headers (with a .h suffix):
>> - always include with <>
>> - mandatory HAVE_FOO_H wrapper
>> - avoid where C++ alternative is available
>>
>> * system C++ headers (without any extension suffix):
>> - always include with <>
>> - omit any HAVE_ wrapper
>> - if the file is not portable, do not use it
>>
>> * custom headers provided by Squid:
>> - omit wrappers
>> - always include with ""
>> - use full path (only src/ prefix may be omitted)
>>
>>
>> Also, for now restricting ourselves to the C++98 set of headers since we
>> have not made C++11 support mandatory yet.
>
> Hi,
> perfectly in line with what I had in mind. +1 from me.

Sounds good to me too.

Alex.
Received on Wed Feb 12 2014 - 18:30:25 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 21 2014 - 12:00:15 MST