Re: RFC: change in policy for include guards

From: Kinkie <gkinkie_at_gmail.com>
Date: Wed, 12 Feb 2014 09:41:33 +0100

> 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.

-- 
    Kinkie
Received on Wed Feb 12 2014 - 08:41:42 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 12 2014 - 12:00:12 MST