• 5C5C5C@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    Linters are good and should absolutely be used in any serious C++ project, but they can only catch the most basic sources of UB. I almost never make a mistake that a static analyzer can catch. It’s the multithreaded lifetime issues and data races that ambush you the hardest, and I don’t see any way a C++ static analyzer could hope to catch those.

    But yes, most of the original post is bonkers and has the totally wrong conclusion.