This is an archive of the discontinued LLVM Phabricator instance.

[libTooling] Generalize string explanation as templated metadata
AbandonedPublic

Authored by li.zhe.hua on Mar 21 2022, 12:55 PM.

Details

Reviewers
ymandel
Summary

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).

Diff Detail

Event Timeline

li.zhe.hua created this revision.Mar 21 2022, 12:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 12:55 PM
li.zhe.hua requested review of this revision.Mar 21 2022, 12:55 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 21 2022, 12:55 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
li.zhe.hua abandoned this revision.Mar 21 2022, 1:04 PM