Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/1] Improve -fsanitize option completion
- X-seq: zsh-workers 51326
- From: Shohei YOSHIDA <syohex@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: Shohei YOSHIDA <syohex@xxxxxxxxx>
- Subject: [PATCH 1/1] Improve -fsanitize option completion
- Date: Tue, 24 Jan 2023 11:08:32 +0900
- Archived-at: <https://zsh.org/workers/51326>
- In-reply-to: <20230124020832.221951-1-syohex@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20230124020832.221951-1-syohex@gmail.com>
- Support comma separated completion
- Accept multiple `-fsanitize` options
---
Completion/Unix/Command/_gcc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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
--
2.37.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author