Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  06 Nov 2025, Konstantin Olchanski, Info, make clang-tidy 
    Reply  21 Nov 2025, Konstantin Olchanski, Info, cppcheck 
Message ID: 3110     Entry time: 06 Nov 2025     Reply to this: 3131
Author: Konstantin Olchanski 
Topic: Info 
Subject: make clang-tidy 
I added Makefile rules for running MIDAS through the clang-tidy static code 
analyzer. (rules for running cppcheck have gone missing, I hope I find them).

Reports from clang-tidy are somewhat repetitive (complain about the same class of 
non-problem problems repeatedly), but several warnings and errors identified real 
bugs.

Specifically, detection of memory leaks in error paths and detection of NULL 
pointer dereference and use of uninitialized variables is pretty solid.

Fixes for the worst problems reported by cppcheck and clang-tidy are already 
committed to midas git.

K.O.
ELOG V3.1.4-2e1708b5