• glad_cat@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      +1 for clang-tidy because clang is good. There is also scan-build in clang but it’s a PITA to use.

      And for OP, you can also install sonarlint on some editors/IDE but I don’t know if the scanned code is sent remotely or not.

    • AlmightySnoo 🐢🇮🇱🇺🇦@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      2
      ·
      1 year ago

      I wish people just used clang-tidy instead of pushing all the crap that’s out there, like for instance PC-Lint Plus. At work the head of IT makes our work a living hell by insisting the CI runs a shit beta version of PC-Lint Plus which lacks full C++17 support and we have to reinvent stuff like variants and deprive ourselves of many C++ features because of one single linting tool.