zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: Zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: allow multiple completion for gcc -Wsuggest-attribute
Date: Mon, 12 Nov 2018 14:38:26 +0100	[thread overview]
Message-ID: <CAHYJk3TBacH7jOv0UXpgXu8NeP0AnAue5Qhav3shi8_HfDovZQ@mail.gmail.com> (raw)
In-Reply-To: <48216-1541900650.063823@-d-s.vJ6h.N9Zv>

On 11/11/18, Oliver Kiddle <okiddle@yahoo.co.uk> wrote:
> gcc allows the -Wsuggest-attribute option to be repeated because it can
> be used with each of the four possible values.
>
> Oliver
>
> diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
> index 8687adc6e..1052967c7 100644
> --- a/Completion/Unix/Command/_gcc
> +++ b/Completion/Unix/Command/_gcc
> @@ -628,7 +628,7 @@ args+=(
>    '-Wstrict-selector-match[Warn if type signatures of candidate methods do
> not match exactly]'
>    '-Wstringop-overflow[Warn about buffer overflow in string manipulation
> functions like memcpy and strcpy.  Same as  -Wstringop-overflow=]'
>    '-Wsubobject-linkage[Warn if a class type has a base or a field whose
> type uses the anonymous namespace or depends on a type with no linkage]'
> -  '-Wsuggest-attribute=-[Warn about functions which might be candidates for
> __attribute__((const))]:const:(pure const noreturn format)'
> +  '*-Wsuggest-attribute=-[warn about functions which might be candidates
> for __attribute__((const))]:const:(pure const noreturn format)'
>    '-Wsuggest-final-methods[Warn about C++ virtual methods where adding
> final keyword would improve code quality]'
>    '-Wsuggest-final-types[Warn about C++ polymorphic types where adding
> final keyword would improve code quality]'
>    '-Wsuggest-override[Suggest that the override keyword be used when the
> declaration of a virtual function overrides another]'

Is there a specific reason you changed "Warn" to be lower case
inconsistent with all the other descriptions here?

-- 
Mikael Magnusson

  reply	other threads:[~2018-11-12 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11  1:44 Oliver Kiddle
2018-11-12 13:38 ` Mikael Magnusson [this message]
2018-11-13 11:29   ` Oliver Kiddle

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=CAHYJk3TBacH7jOv0UXpgXu8NeP0AnAue5Qhav3shi8_HfDovZQ@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).