Skip to content

Conversation

esyr
Copy link

@esyr esyr commented Aug 11, 2025

No description provided.

esyr added 2 commits August 11, 2025 14:27
…rray

[1] has introduced array allocation routines, and, since those
are available, it is prudent to use where they are appropriate,
like in this example.

[1] openssl/openssl#28059

Signed-off-by: Eugene Syromiatnikov <[email protected]>
Mention aligned, clear, and array allocation routines.

Signed-off-by: Eugene Syromiatnikov <[email protected]>
esyr referenced this pull request in openssl/openssl Sep 3, 2025
This puts the style guide into the repository which is sort of
the modern "norm". This has taken the text from the existing
style guide in the web page and adapted it to how things
will be with an automatic clang-format enforcement.

What I have done is:

- Referenced the Linux kernel style guide as the base we are using
including the link to it.

- Removed any reference to spacing, indenting, continuations, etc
etc. which are contained in the Linux kernel style guide and
enforced by clang-format.

- Added a section on Integers.

- Added a section for "new code" to Function return values
  preserving the existing advice for legacy code.

- Added a secion on Header Files
  As I believe we can move to cleaner header files soon, this
  merely documents the expectation that I believe we can get to
  (clang-format does not yet do any header re-ordering)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants