Compiling with clang-tidy-15 highlights a number of potential problems. I have already fixed a few which were definite errors (see e.g. adc7313a4d786e510df24fb9ab2108a1cd65094b). Go through the remaining issues and get them resolved or comment up why they're not real problems (ideally, eliminate them all with code reorganization, even if they're false positives).
Compiling with clang-tidy-15 highlights a number of potential problems. I have already fixed a few which were definite errors (see e.g. adc7313a4d786e510df24fb9ab2108a1cd65094b). Go through the remaining issues and get them resolved or comment up why they're not real problems (ideally, eliminate them all with code reorganization, even if they're false positives).