From 4f1544a6287d2b1c14730826ac9a5822ea928b7c Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Sat, 17 Dec 2022 23:45:09 +0900 Subject: 51233: Update sanitizer list to GCC 12 Add following sanitizers - bounds-strict - hwaddress - kernel-address - kernel-hwaddress - leak - pointer-compare - pointer-subtract - shadow-call-stack - shift-base - shift-exponent - thread - undefined And sort the list in alphabetical order --- Completion/Unix/Command/_gcc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Completion/Unix/Command/_gcc') diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc index ac0e8fda3..f10000391 100644 --- a/Completion/Unix/Command/_gcc +++ b/Completion/Unix/Command/_gcc @@ -1318,11 +1318,13 @@ fi local -a sanitizers sanitizers=( - address alignment bool bounds enum float-cast-overflow float-divide-by-zero - integer-divide-by-zero memory nonnull-attribute null nullability-arg - nullability-assign nullability-return object-size pointer-overflow return - unsigned-integer-overflow returns-nonnull-attribute shift signed-integer-overflow - unreachable vla-bound vptr + address alignment bool bounds bounds-strict enum builtin float-cast-overflow + float-divide-by-zero hwaddress integer-divide-by-zero kernel-address + kernel-hwaddress leak memory nonnull-attribute null nullability-arg nullability-assign + nullability-return object-size pointer-compare pointer-overflow pointer-subtract return + returns-nonnull-attribute shadow-call-stack shift shift-base shift-exponent + signed-integer-overflow thread undefined unsigned-integer-overflow unreachable + vla-bound vptr ) local -a languages -- cgit v1.2.3 From ba834fa53c4f6919eebd4b5feee69f720ffe3e7e Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 24 Jan 2023 11:08:32 +0900 Subject: 51326: Improve -fsanitize option completion - Support comma separated completion - Accept multiple `-fsanitize` options --- ChangeLog | 5 +++++ Completion/Unix/Command/_gcc | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_gcc') diff --git a/ChangeLog b/ChangeLog index 8e71f1ced..2bbddeccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-01-24 Shohei YOSHIDA + + * 51326: Completion/Unix/Command/_gcc: Improve -fsanitize + option completion + 2023-01-22 Shohei YOSHIDA * 51322 (+ minor tweak): Completion/Unix/Command/_make: Update gnu diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc index f10000391..8690c5599 100644 --- a/Completion/Unix/Command/_gcc +++ b/Completion/Unix/Command/_gcc @@ -1894,7 +1894,7 @@ args+=( '-freschedule-modulo-scheduled-loops[enable/disable the traditional scheduling in loops that already passed modulo scheduling]' '-frounding-math[disable optimizations that assume default FP rounding behavior]' '-frtti[generate run time type descriptor information]' - "-fsanitize=-[enable AddressSanitizer, a memory error detector]:style:($sanitizers)" + "*-fsanitize=-[enable AddressSanitizer, a memory error detector]:style:->sanitize" '-fsched2-use-superblocks[if scheduling post reload, do superblock scheduling]' '-fsched-critical-path-heuristic[enable the critical path heuristic in the scheduler]' '-fsched-dep-count-heuristic[enable the dependent count heuristic in the scheduler]' @@ -2284,6 +2284,9 @@ archgeneric) arch+=(generic) _wanted cputypes expl "CPU type" compadd -a arch && ret=0 ;; +sanitize) + _values -s , 'sanitizer' $sanitizers + ;; esac return ret -- cgit v1.2.3 From cdb457841ce4b61993a794c2eeacda3a56493723 Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Mon, 23 Sep 2024 13:53:55 +0800 Subject: github #122: Add c17, iso9899:2017, c18, iso9899:2018, gnu17, gnu18, c++20, gnu++20, c++23, gnu++23 to gcc completion --- ChangeLog | 3 +++ Completion/Unix/Command/_gcc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_gcc') diff --git a/ChangeLog b/ChangeLog index 543876167..b453b1408 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2024-11-23 Oliver Kiddle + * github #122: Wu, Zhenyu: Completion/Unix/Command/_gcc: Add + newer C and C++ language standards to gcc completion + * github #123: Shlomi Fish: Completion/X/Command/_okular: Make okular's completion support *.epub files. diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc index 8690c5599..b7c9ba08a 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 gnu90 gnu89 gnu99 gnu11 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)' + {'-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)' '-symbolic[bind references to global symbols when building a shared object]' '--sysroot=-[use as the root directory for headers and libraries]:directory:_files -/' '--target-help[display target specific command line options]' -- cgit v1.2.3