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 02/89] Introduce gimple_switch and use it in various places


On 04/22/2014 10:17 PM, David Malcolm wrote:

or indeed, something like:

	      else if (gimple_switch switch_stmt =
		          dyn_cast <gimple_switch> (stmt))
                {


to avoid an 83-character-wide line :)

Hope that's the appropriate way to split such a line; I can never
remember if one is supposed to put the linebreak before or after the =.

It's supposed to come before, so that the equal sign is at the start of the line. Operators are also supposed to be at the start and not the end. At least the operator part is covered in the coding standards:

<http://www.gnu.org/prep/standards/html_node/Formatting.html>

--
Florian Weimer / Red Hat Product Security Team


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