mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-10 18:58:03 +02:00
51326: Improve -fsanitize option completion
- Support comma separated completion - Accept multiple `-fsanitize` options
This commit is contained in:
parent
f54ed0b76a
commit
ba834fa53c
2 changed files with 9 additions and 1 deletions
|
@ -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>
|
2023-01-22 Shohei YOSHIDA <syohex@gmail.com>
|
||||||
|
|
||||||
* 51322 (+ minor tweak): Completion/Unix/Command/_make: Update gnu
|
* 51322 (+ minor tweak): Completion/Unix/Command/_make: Update gnu
|
||||||
|
|
|
@ -1894,7 +1894,7 @@ args+=(
|
||||||
'-freschedule-modulo-scheduled-loops[enable/disable the traditional scheduling in loops that already passed modulo scheduling]'
|
'-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]'
|
'-frounding-math[disable optimizations that assume default FP rounding behavior]'
|
||||||
'-frtti[generate run time type descriptor information]'
|
'-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]'
|
'-fsched2-use-superblocks[if scheduling post reload, do superblock scheduling]'
|
||||||
'-fsched-critical-path-heuristic[enable the critical path heuristic in the scheduler]'
|
'-fsched-critical-path-heuristic[enable the critical path heuristic in the scheduler]'
|
||||||
'-fsched-dep-count-heuristic[enable the dependent count heuristic in the scheduler]'
|
'-fsched-dep-count-heuristic[enable the dependent count heuristic in the scheduler]'
|
||||||
|
@ -2284,6 +2284,9 @@ archgeneric)
|
||||||
arch+=(generic)
|
arch+=(generic)
|
||||||
_wanted cputypes expl "CPU type" compadd -a arch && ret=0
|
_wanted cputypes expl "CPU type" compadd -a arch && ret=0
|
||||||
;;
|
;;
|
||||||
|
sanitize)
|
||||||
|
_values -s , 'sanitizer' $sanitizers
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue