mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
add WHEE global alias for C++ flags
This commit is contained in:
parent
de2d15c869
commit
803a77d27b
2 changed files with 25 additions and 0 deletions
|
@ -200,6 +200,7 @@ fi
|
||||||
alias -g OMFG="1>/dev/null" ### @ OMFG - silence stdout.
|
alias -g OMFG="1>/dev/null" ### @ OMFG - silence stdout.
|
||||||
alias -g STFU="2>/dev/null" ### @ STFU - silence stderr.
|
alias -g STFU="2>/dev/null" ### @ STFU - silence stderr.
|
||||||
alias -g WHOA='${whoa[@]}' ### @ WHOA - expand to several C/C++ flags to ease development.
|
alias -g WHOA='${whoa[@]}' ### @ WHOA - expand to several C/C++ flags to ease development.
|
||||||
|
alias -g WHEE='${whee[@]}' ### @ WHEE - WHOA but for C++ (specifically g++) only.
|
||||||
alias -g WELP='${welp[@]}' ### @ WELP - expand to C++ flags to enable a C++-as-C facade.
|
alias -g WELP='${welp[@]}' ### @ WELP - expand to C++ flags to enable a C++-as-C facade.
|
||||||
|
|
||||||
alias sc="~/sh/sc" # only runs in bash (for now), so be explicit with path
|
alias sc="~/sh/sc" # only runs in bash (for now), so be explicit with path
|
||||||
|
|
24
sh/arrays
24
sh/arrays
|
@ -53,3 +53,27 @@ welp=(
|
||||||
-ffunction-sections -fdata-sections -Wl,--gc-sections
|
-ffunction-sections -fdata-sections -Wl,--gc-sections
|
||||||
-finline-small-functions -findirect-inlining
|
-finline-small-functions -findirect-inlining
|
||||||
)
|
)
|
||||||
|
|
||||||
|
whee=(
|
||||||
|
-Wall
|
||||||
|
-Wextra
|
||||||
|
-Wwrite-strings
|
||||||
|
-Werror=uninitialized
|
||||||
|
-Werror=format-security
|
||||||
|
-Werror=format-extra-args
|
||||||
|
-Werror=int-to-pointer-cast
|
||||||
|
-Werror=return-type
|
||||||
|
-Werror=memset-transposed-args
|
||||||
|
-Wno-unused
|
||||||
|
-Wno-padded
|
||||||
|
-Wno-missing-field-initializers
|
||||||
|
-Wno-misleading-indentation
|
||||||
|
-Wduplicated-cond
|
||||||
|
-Wduplicated-branches
|
||||||
|
-Wlogical-op
|
||||||
|
-Wrestrict
|
||||||
|
-Wnull-dereference
|
||||||
|
-Wdouble-promotion
|
||||||
|
-Wformat=2
|
||||||
|
-Werror=double-promotion
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue