This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: PATCH: make warnings more reasonable for aggregate classes


On Wednesday, October 2, 2002, at 12:37 PM, David Edelsohn wrote:

	The GCC coding style places logical operators related to
continuation lines on those new lines.

if (! TYPE_HAS_CONSTRUCTOR (t) && CLASSTYPE_NON_AGGREGATE (t)
    && extra_warnings)

NOT

if (! TYPE_HAS_CONSTRUCTOR (t) && CLASSTYPE_NON_AGGREGATE (t) &&
    extra_warnings)

	This is the opposite of some Apple coding standard, I presume.
Not that I know of, but the GNU code is the only place I've
seen the operator put on the new line, so it's a natural
mistake.  My fingers automatically type it matt's way,
although I usually catch it before submission nowadays.


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