This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Add forwarding `addVisitor` method
ClosedPublic

Authored by vsavchenko on Jun 1 2021, 6:33 AM.

Details

Summary

The majority of all addVisitor callers follow the same pattern:

addVisitor(std::make_unique<SomeVisitor>(arg1, arg2, ...));

This patches introduces additional overload for addVisitor to simplify
that pattern:

addVisitor<SomeVisitor>(arg1, arg2, ...);

Diff Detail

Event Timeline

vsavchenko created this revision.Jun 1 2021, 6:33 AM
vsavchenko requested review of this revision.Jun 1 2021, 6:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2021, 6:33 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
NoQ accepted this revision.Jun 1 2021, 7:00 PM

Excellent.

This revision is now accepted and ready to land.Jun 1 2021, 7:00 PM
This revision was landed with ongoing or failed builds.Jun 3 2021, 7:12 AM
This revision was automatically updated to reflect the committed changes.