From: Markus Armbruster <armbru@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-trivial@nongnu.org,
Thomas Huth <thuth@redhat.com>,
patches@linaro.org
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] CODING_STYLE: Mention preferred comment form
Date: Sat, 04 Feb 2017 11:00:13 +0100 [thread overview]
Message-ID: <87efze6zte.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <1486144722-6021-1-git-send-email-peter.maydell@linaro.org> (Peter Maydell's message of "Fri, 3 Feb 2017 17:58:42 +0000")
Peter Maydell <peter.maydell@linaro.org> writes:
> Our defacto coding style strongly prefers /* */ style comments
> over the single-line // style, and checkpatch enforces this,
> but we don't actually document this. Mention it in CODING_STYLE.
>
> Suggested-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> CODING_STYLE | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/CODING_STYLE b/CODING_STYLE
> index f53180b..2fa0c0b 100644
> --- a/CODING_STYLE
> +++ b/CODING_STYLE
> @@ -116,3 +116,10 @@ if (a == 1) {
> Rationale: Yoda conditions (as in 'if (1 == a)') are awkward to read.
> Besides, good compilers already warn users when '==' is mis-typed as '=',
> even when the constant is on the right.
> +
> +7. Comment style
> +
> +We use traditional C-style /* */ comments and avoid // comments.
> +
> +Rationale: The // form is valid in C99, so this is purely a matter of
> +consistency of style. The checkpatch script will warn you about this.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
WARNING: multiple messages have this Message-ID (diff)
From: Markus Armbruster <armbru@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-trivial@nongnu.org,
Thomas Huth <thuth@redhat.com>,
patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH] CODING_STYLE: Mention preferred comment form
Date: Sat, 04 Feb 2017 11:00:13 +0100 [thread overview]
Message-ID: <87efze6zte.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <1486144722-6021-1-git-send-email-peter.maydell@linaro.org> (Peter Maydell's message of "Fri, 3 Feb 2017 17:58:42 +0000")
Peter Maydell <peter.maydell@linaro.org> writes:
> Our defacto coding style strongly prefers /* */ style comments
> over the single-line // style, and checkpatch enforces this,
> but we don't actually document this. Mention it in CODING_STYLE.
>
> Suggested-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> CODING_STYLE | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/CODING_STYLE b/CODING_STYLE
> index f53180b..2fa0c0b 100644
> --- a/CODING_STYLE
> +++ b/CODING_STYLE
> @@ -116,3 +116,10 @@ if (a == 1) {
> Rationale: Yoda conditions (as in 'if (1 == a)') are awkward to read.
> Besides, good compilers already warn users when '==' is mis-typed as '=',
> even when the constant is on the right.
> +
> +7. Comment style
> +
> +We use traditional C-style /* */ comments and avoid // comments.
> +
> +Rationale: The // form is valid in C99, so this is purely a matter of
> +consistency of style. The checkpatch script will warn you about this.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
next prev parent reply other threads:[~2017-02-04 10:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-03 17:58 [Qemu-trivial] [PATCH] CODING_STYLE: Mention preferred comment form Peter Maydell
2017-02-03 17:58 ` [Qemu-devel] " Peter Maydell
2017-02-04 10:00 ` Markus Armbruster [this message]
2017-02-04 10:00 ` Markus Armbruster
2017-02-04 14:48 ` [Qemu-trivial] " Fam Zheng
2017-02-04 14:48 ` Fam Zheng
2017-02-05 18:02 ` [Qemu-trivial] " Laurent Vivier
2017-02-05 18:02 ` [Qemu-devel] " Laurent Vivier
2017-02-13 14:00 ` [Qemu-trivial] [Qemu-devel] " Stefan Hajnoczi
2017-02-13 14:00 ` Stefan Hajnoczi
2017-02-15 10:17 ` [Qemu-trivial] " Michael Tokarev
2017-02-15 10:17 ` [Qemu-devel] " Michael Tokarev
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=87efze6zte.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=thuth@redhat.com \
/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.