Module require Clang 17, since Clang 16 requires the magic # FILE
line. Therefore, if available, use clang-tidy 17 too. This change should
be reverted after LLVM 17 is released.
Details
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rGcf64668b8c41: [libc++][test] Prefers the newer clang-tidy version.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I just spoke to Mark and he explained that this was necessary for the C++20 Modules work.
This is not policy-setting like in https://discourse.llvm.org/t/frc-versions-of-libc-clang-format-and-clang-tidy-dependencies/70953, this patch is basically a one-off required to unblock the modules work. If we end up deciding to use ToT clang-tidy after the RFC, then this patch would become permanent and not just a temporary workaround. Otherwise, it's just a temporary workaround since we require some recent clang-tidy features.
In light of this, I am OK with this patch but I do expect that after we land LLVM 17, we'll update the code base to reflect the consensus gained in the RFC (which might mean basically reverting this patch).
libcxx/test/tools/clang_tidy_checks/CMakeLists.txt | ||
---|---|---|
8–12 |