Skip to content

Instantly share code, notes, and snippets.

@kwsp
Created December 1, 2025 07:08
Show Gist options
  • Select an option

  • Save kwsp/bd17edea59c1a32681fb6f47bc7e1095 to your computer and use it in GitHub Desktop.

Select an option

Save kwsp/bd17edea59c1a32681fb6f47bc7e1095 to your computer and use it in GitHub Desktop.
My default Clang compile flags
-std=c++20
-Wall -Wextra -Wpedantic -Walloca -Wcast-align -Wcast-qual -Wcomma-subscript -Wctor-dtor-privacy -Wdeprecated-copy-dtor -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wenum-conversion -Wextra-semi -Wfloat-equal -Wformat-overflow=2 -Wformat-signedness -Wformat=2 -Wframe-larger-than=${DEBUG_MIN_FRAME_SIZE} -Wjump-misses-init -Wlogical-op -Wmismatched-tags -Wmissing-braces -Wmultichar -Wnoexcept -Wnon-virtual-dtor -Woverloaded-virtual -Wpointer-arith -Wrange-loop-construct -Wrestrict -Wshadow -Wstrict-null-sentinel -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wuninitialized -Wvla -Wvolatile -Wwrite-strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment