zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: allow multiple completion for gcc -Wsuggest-attribute
Date: Sun, 11 Nov 2018 02:44:10 +0100	[thread overview]
Message-ID: <48216-1541900650.063823@-d-s.vJ6h.N9Zv> (raw)

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]'

             reply	other threads:[~2018-11-11  1:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11  1:44 Oliver Kiddle [this message]
2018-11-12 13:38 ` Mikael Magnusson
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=48216-1541900650.063823@-d-s.vJ6h.N9Zv \
    --to=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).