This commit adds support for clang-tidy checks during compilation on macOS, which can now be enabled using the optional `WITH_CLANG_TIDY` CMake variable. The clang-tidy executable doesn't need to be separately installed since CMake will pick up the executable from the LLVM pre-compiled library. This commit also expands the coverage of clang-tidy checks to Objective-C/C++, for which checks were enabled in PR #128334. Pull Request: https://projects.blender.org/blender/blender/pulls/129761