Skip to content

Instantly share code, notes, and snippets.

@mazelos
Last active January 25, 2022 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazelos/e319dbe577da6fd9727535b225ba41a7 to your computer and use it in GitHub Desktop.
Save mazelos/e319dbe577da6fd9727535b225ba41a7 to your computer and use it in GitHub Desktop.
Gcc and Clang aliases

Gcc and Clang aliases

Gcc debug

alias gccdeb="gcc -W -Wall -Werror -Wextra"

C test and coverage

alias gcctest="gcc -o unit_tests -lcriterion"
alias gcctestc="gcc -o unit_tests --coverage -lcriterion"
alias runtest="./unit_tests"
alias runcov="gcovr --exclude tests/"
alias rmtest="rm ./unit_tests && rm *.gcno && rm *.gcda"
alias val="valgrind --track-origins=yes"

misc

alias epi-setup="git clone https://github.com/mazelos/epitech-lib.git . && rm -rf .git && rm -f README.md"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment