This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -Weffc++ rule 12
- From: Ian Lance Taylor <iant at google dot com>
- To: Yang Zhang <yanghatespam at gmail dot com>
- Cc: GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 23 Feb 2009 12:53:26 -0800
- Subject: Re: -Weffc++ rule 12
- References: <49A0EDE6.10209@gmail.com>
Yang Zhang <yanghatespam@gmail.com> writes:
> Hi, I was reading through the following thread, and I'm finding the
> current interpretation of Rule 12 to be harmful. It encourages the
> addition of a lot of noise and repetition to the code, in the form of
> init-list boilerplate that re-list all member variables - a Bad Thing
> from a software maintainability perspective.
>
> http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00605.html
>
> Is there any way to at least just disable Rule 12 from -Weffc++?
No. Sorry.
Ian