[libcxx] Ensure CLANG_VERSION_MAJOR is defined in clang-tidy checks (#228127)

Otherwise the ifdefs around CLANG_VERSION_MAJOR for whether or not we
should be including ClangTidyModule.h or ClangTidyModuleRegistry.h are
all wrong given CLANG_VERSION_MAJOR is undefined.

This is needed for bumping the CI container.

GitOrigin-RevId: bbbbdc1fe3de8ed1d6094daca0e91d83f95b5d30
8 files changed