[clang-tidy] In TransformerClangTidyCheck, require Explanation field.
In general, the `Explanation` field is optional in `RewriteRule` cases. But,
because the primary purpose of clang-tidy checks is to provide users with
diagnostics, we assume that a missing explanation is a bug. This change adds an
assertion that checks all cases for an explanation, and updates the code to rely
on that assertion correspondingly.
Subscribers: xazax.hun, cfe-commits
Differential Revision: https://reviews.llvm.org/D62340
3 files changed