Re:My favorite C compiler flags during development
by bigdict on Saturday April 29, 2023 @11:30PM
(#35759459)
God I love HN. It's like an office watercooler the size of a grain silo with thousands of programmers hanging around.
Re:My favorite C compiler flags during development
by unwind on Sunday April 30, 2023 @03:42AM
(#35760422)
Now that is a tshirt design I would get behind. Or into, I guess.
Re:My favorite C compiler flags during development
by wiseowise on Sunday April 30, 2023 @02:34AM
(#35760156)
Holy crap this is amazing.
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.
[1] https://codechecker.readthedocs.io/en/latest/