According to the cmake implementation code, especially this comment, clang-tidy can normally accept all compiler command line arguments after --, so there's redundant work in StaticAnalyzers.cmake.
This, however, might require a difficult review of the code.