Hacker News new | ask | show | jobs
by foobar502 2252 days ago
Could you elaborate on that? What aspects of using clang as opposed to gcc were so beneficial?
3 comments

The sanitisers are a good reason (UBSan, ASan). Clang compilation is faster than GCC, also.

Don't know if it's still true, but when I was at Facebook we used Clang for debug builds, and GCC for production builds.

Is it just me or is that a recipe for Heisenbugs?
Better error messages
I'm talking about the sanitizers, clang-tidy, clang-format, and of course the error messages of clang itself.