[openssl-project] Style guide updates
Salz, Rich
rsalz at akamai.com
Fri Jan 26 13:26:58 UTC 2018
Some things I think we should add to the style guide. Let’s discuss here.
No space after sizeof, use parens. (But see ssl/record/rec_layer_{d1,s3}.c )
Multiline conditionals, such as in an if, should be broken before the logical connector and indented an extra tabstop. For example:
while (this_is_true
&& that_is_not_false) {
frobit();
more_stuff();
}
When dealing with long lines, try to avoid breaking across a function call. Don’t do this:
If (some_long_text && foo(a,
b, c) && bar()) {
Instead do this:
If (some_long_text
&& foo(a, b, c,)
&& bar())
What else needs to be updated?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-project/attachments/20180126/71bf6425/attachment.html>
More information about the openssl-project
mailing list