[PATCH] D120360: [libTooling] Generalize string explanation as Any metadata
Eric Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 22 14:36:36 PST 2022
li.zhe.hua created this revision.
li.zhe.hua added a reviewer: ymandel.
Herald added a subscriber: carlosgalvezp.
li.zhe.hua requested review of this revision.
Herald added projects: clang, clang-tools-extra.
Change RewriteRule from holding an `Explanation` to being able to generate
arbitrary metadata. Where TransformerClangTidyCheck was interested in a string
description for the diagnostic, other tools may be interested in richer metadata
at a higher level of abstraction than at the edit level (which is currently
available as ASTEdit::Metadata).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120360
Files:
clang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
clang/include/clang/Tooling/Transformer/RewriteRule.h
clang/include/clang/Tooling/Transformer/Transformer.h
clang/lib/Tooling/Transformer/RewriteRule.cpp
clang/lib/Tooling/Transformer/Transformer.cpp
clang/unittests/Tooling/TransformerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120360.410649.patch
Type: text/x-patch
Size: 22062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220222/8daf0b60/attachment-0001.bin>
More information about the cfe-commits
mailing list