[PATCH] D61386: [clang-tidy] Add support writing a check as a Transformer rewrite rule.
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 1 10:52:42 PDT 2019
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/utils/TransformerTidy.cpp:51
+ DiagnosticBuilder Diag = diag(RootLoc, Message);
+ for (const tooling::Transformation &T : *Transformations) {
+ Diag << FixItHint::CreateReplacement(T.Range, T.Replacement);
----------------
It's iterator, so auto could be used instead of type.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61386/new/
https://reviews.llvm.org/D61386
More information about the cfe-commits
mailing list