Skip to content

Instantly share code, notes, and snippets.

@johnmcfarlane
Last active December 2, 2026 14:01
Show Gist options
  • Select an option

  • Save johnmcfarlane/bc2ce6b53264ef42921ae7b4b763e169 to your computer and use it in GitHub Desktop.

Select an option

Save johnmcfarlane/bc2ce6b53264ef42921ae7b4b763e169 to your computer and use it in GitHub Desktop.
Cursed code protection

Clang/GCC Incantation

g++ -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -Wall -Werror -Wextra -Wpedantic -fsanitize=address,undefined

Clang-Tidy Incantation

clang-tidy -checks="*,-altera-*,-fuchsia-*,-llvmlibc-*,-zircon-*,-llvm-prefer-static-over-anonymous-namespace" --warnings-as-errors="*"

Shortcut to curse dispell checker

compiler-explorer.com/z/9xEbY5n5j

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