News for hackers. Stuff that matters.
Re:My favorite C compiler flags during development by flohofwoe on Sunday April 30, 2023 @05:24AM (#35760966)
I currently use `--analyze -Xanalyzer -analyzer-opt-analyze-headers` for checking my header-only libs in clang, but AFAIK the recommended workflow is to use clang-tidy which is better configurable than calling clang directly.

If you're on Mac with Xcode, the static analyzer and the sanitizers ASAN, UBSAN and TSAN are simple UI checkboxes.

There are no comments on this comment yet.