Skip to content

Instantly share code, notes, and snippets.

@GavinRay97
Last active May 31, 2024 10:34
Show Gist options
  • Save GavinRay97/bae1d93925e55ce0a0084946f24984cf to your computer and use it in GitHub Desktop.
Save GavinRay97/bae1d93925e55ce0a0084946f24984cf to your computer and use it in GitHub Desktop.
Good Clang C++ Flags
# Created with: $ diagtool tree
-Wall
-Wextra
-Wpedantic
-Warray-bounds-pointer-arithmetic
-Wbind-to-temporary-copy
-Wcalled-once-parameter
-Wcast-align
-Wconditional-uninitialized
-Wconsumed
-Wcovered-switch-default
-Wexplicit-ownership-type
-Wheader-hygiene
-Widiomatic-parenthesis
-Wloop-analysis
-Wmain
-Wmethod-signatures
-Wmissing-noreturn
-Wmissing-variable-declarations
-Wnarrowing
-Wnon-gcc
-Wnullable-to-nonnull-conversion
-Wover-aligned
-Woverriding-method-mismatch
-Wpacked
-Wpadded
-Wpartial-availability
-Wsearch-path-usage
-Wstatic-in-inline
-Wsuggest-destructor-override
-Wsuggest-override
-Wsuper-class-method-mismatch
-Wtautological-constant-in-range-compare
-Wunaligned-access
-Wundefined-func-template
-Wunreachable-code-aggressive
-Wunused-member-function
-Wunused-template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment