From: Patrick Williams <patrick@stwcx.xyz>
To: OpenBMC List <openbmc@lists.ozlabs.org>
Subject: Unix-mode newlines
Date: Fri, 12 Nov 2021 10:17:17 -0600 [thread overview]
Message-ID: <YY6TjcddpoYGmEK2@heinlein> (raw)
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
Hello,
Generally we've had a preference for Unix-style newlines (\n) and not DOS-style
newlines (\r\n), but it has never been documented. I've recently found
a small number of files that are either DOS-style or mixed-styles and I've been
fixing them as I've ran into them.
I recently discovered that clang-format has options that allow us to force
Unix-style newlines. I've pushed up a commit to docs that makes two changes to
our C++ style guidelines:
1) Document expectation of using Unix-style newlines.
2) Update .clang-format to enforce Unix-style newlines.
See https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/48770 .
I'll leave this commit open until early next week and then merge it if I don't
hear any concerns.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2021-11-12 16:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 16:17 Patrick Williams [this message]
2021-11-12 22:49 ` Unix-mode newlines Michael Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YY6TjcddpoYGmEK2@heinlein \
--to=patrick@stwcx.xyz \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.