Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] completion: _gcc: Add `c1x` `c2x` `c23` `c2y` `gnu2x` `gnu23` `gnu2y`
- X-seq: zsh-workers 53677
- From: Ling Wang <lingwang@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: Ling Wang <lingwang@xxxxxxxxxxx>
- Subject: [PATCH] completion: _gcc: Add `c1x` `c2x` `c23` `c2y` `gnu2x` `gnu23` `gnu2y`
- Date: Mon, 26 May 2025 03:49:47 +0800
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=wcysite.com; spf=pass smtp.mailfrom=lingwang@xxxxxxxxxxx; dmarc=pass header.from=<lingwang@xxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1748203302; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=SuPwFkUolkkZF9YLLEO3c6XNRO+hHjrAk+mT0AgPH+M=; b=BzojjzVcJGd0IkcOPdyzYRtkSo4zClDxe1TJrw/Ge9KMOASkjPKqIU6WBZ+Qknd2laYrME0JL/0/+wCWNpncRZ0r91kLsPkwwVaRGrPt6kAnZN5/d1yp2WhPm5Pa2X+vnPM1r7MaAsZGoL7Qe77axHwPhkc0hYgzc7zwaxunivo=
- Arc-seal: i=1; a=rsa-sha256; t=1748203302; cv=none; d=zohomail.com; s=zohoarc; b=USfV/iaT8ETz9V9XJD0gJAGmywuL0I/szSIlzP3wSXqcoPR4eY06o59wmvA1q92BBWKQQGfTAvBkkm26AXZGazCUgSXYqpPKu2BRnVhm6e9Tgdeb/1GaEmXLpbL4kKRjBXkP7Z4noPolIMspirD7oZ+SqT2u8mH2k3AXD0C3Skg=
- Archived-at: <https://zsh.org/workers/53677>
- List-id: <zsh-workers.zsh.org>
Seems `c23` and `gnu23` is missing though `c++23` exists. Besides, accroding
to gcc, `c1x` `c2x` etc are also valid `--std` options, so I add them,
too.
Signed-off-by: Ling Wang <lingwang@xxxxxxxxxxx>
---
Completion/Unix/Command/_gcc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
index b7c9ba08a..d81f31cf5 100644
--- a/Completion/Unix/Command/_gcc
+++ b/Completion/Unix/Command/_gcc
@@ -2111,7 +2111,7 @@ args+=(
'-s[remove all symbol table and relocation information from the executable]'
'-static-libgcc[force static libgcc]'
'-static[on systems that support dynamic linking, this prevents linking with the shared libraries]'
- {'-std=-','--std='}'[assume that the input sources are for specified standard]:standard:(c90 c89 iso9899\:1990 iso9899\:199409 c99 iso9899\:1999 c11 iso9899\:2011 c17 iso9899\:2017 c18 iso9899\:2018 gnu90 gnu89 gnu99 gnu11 gnu17 gnu18 c++98 c++03 gnu++98 gnu++03 c++11 gnu++11 c++1y gnu++1y c++14 gnu++14 c++1z gnu++1z c++17 iso9899\:2017 gnu++17 c++2a gnu++2a c++20 gnu++20 c++23 gnu++23)'
+ {'-std=-','--std='}'[assume that the input sources are for specified standard]:standard:(c90 c89 iso9899\:1990 iso9899\:199409 c99 iso9899\:1999 c1x c11 iso9899\:2011 c17 iso9899\:2017 c18 iso9899\:2018 c2x iso9899\:2024 c23 c2y gnu90 gnu89 gnu99 gnu1x gnu11 gnu17 gnu18 gnu2x gnu23 gnu2y c++98 c++03 gnu++98 gnu++03 c++11 gnu++11 c++1y gnu++1y c++14 gnu++14 c++1z gnu++1z c++17 iso9899\:2017 gnu++17 c++2a gnu++2a c++20 gnu++20 c++23 gnu++23)'
'-symbolic[bind references to global symbols when building a shared object]'
'--sysroot=-[use <directory> as the root directory for headers and libraries]:directory:_files -/'
'--target-help[display target specific command line options]'
--
2.49.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author