This is an archive of the discontinued LLVM Phabricator instance.

[libTooling][NFC] Refactor implemenation of Transformer Stencils to use standard OOP
ClosedPublic

Authored by ymandel on Jun 15 2021, 12:59 PM.

Details

Summary

Currently, the implementation combines OOP and overloads, using a template to
tie the two together. In practice, this has proven confusing with no
benefits. This patch simplifies the code to use standard OOP design (a
collection of classes deriving from an interface).

Diff Detail

Event Timeline

ymandel requested review of this revision.Jun 15 2021, 12:59 PM
ymandel created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2021, 12:59 PM
gribozavr2 accepted this revision.Jun 15 2021, 1:07 PM
gribozavr2 added inline comments.
clang/lib/Tooling/Transformer/Stencil.cpp
158

Please use spaces instead of tabs (throughout the patch).

This revision is now accepted and ready to land.Jun 15 2021, 1:07 PM
ymandel updated this revision to Diff 352237.Jun 15 2021, 2:01 PM

try to fix tabs

ymandel added inline comments.Jun 15 2021, 2:03 PM
clang/lib/Tooling/Transformer/Stencil.cpp
158

I think those markers indicate something else -- i can't find any tabs in the file. Could that be a shorthand for "increased indentation"?