1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-05-18 09:41:09 +02:00

51326: Improve -fsanitize option completion

- Support comma separated completion
- Accept multiple `-fsanitize` options
This commit is contained in:
Shohei YOSHIDA 2023-01-24 11:08:32 +09:00 committed by Daniel Shahaf
parent f54ed0b76a
commit ba834fa53c
2 changed files with 9 additions and 1 deletions
ChangeLog
Completion/Unix/Command

View file

@ -1,3 +1,8 @@
2023-01-24 Shohei YOSHIDA <syohex@gmail.com>
* 51326: Completion/Unix/Command/_gcc: Improve -fsanitize
option completion
2023-01-22 Shohei YOSHIDA <syohex@gmail.com>
* 51322 (+ minor tweak): Completion/Unix/Command/_make: Update gnu

View file

@ -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