home.social

#cppcheck — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cppcheck, aggregated by home.social.

fetched live
  1. On MSVC, an enum by default is signed.
    so an anonymous class enum like

    enum { foo, bar, baz
    } mFoo : 2;

    Is not going to be that useful. #MSVC knows about it but only tells you on /Wall, not /W4.

    Maybe #cppcheck could at least gain a check for it ?

    #GCC and #clang seems to do the right thing

    #cpp

  2. I registered for #KDE #akademy andhave acquired plane tickets. So I'll be there. And I hope to see all of you fine people there.

    Now I just need to book a hotel and prepare my talk about #cppcheck code analyzer in KDE continuous integration.

    I think this is around my 10th in person Akademy.

  3. Wow, #cppcheck actually found a real issue for a change: I was calling a virtual method from a destructor (this is #Cpp code). And of course, after staring at it for a minute, I realized I don't need that method to be virtual at all :)

    (I intended this toot to be snarky and to say that it's the first time cppcheck found anything of importance, but I double-checked and it turns out it found me a different issue back in 2016. Considering I didn't pay a dime for this tool, the ROI is great.)