clang-tidy use override: Don't generate incorrect warnings without fixes

Add basic testing for the emitted diagnostics.