This is an archive of the discontinued LLVM Phabricator instance.

[libTooling] Change Stencil equality to use `toString()`
ClosedPublic

Authored by ymandel on Oct 10 2019, 12:31 PM.

Details

Summary

Removes the isEqual method from StencilPartInterface and modifies equality to
use the string representation returned by the toString method for comparison.

This means the run and selection stencils return true by default, and
clients should be cautious in relying on equality operator for comparison of
stencils containing parts generated by these functions.

It also means we no longer need the custom RTTI support, so it has been removed.

Patch by Harshal T. Lehri.

Diff Detail

Event Timeline

ymandel created this revision.Oct 10 2019, 12:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 10 2019, 12:31 PM
ymandel edited the summary of this revision. (Show Details)Oct 10 2019, 12:31 PM
ymandel updated this revision to Diff 224536.Oct 10 2019, 8:14 PM

removed operator== and updated tests accordingly.

gribozavr accepted this revision.Oct 11 2019, 1:29 AM
This revision is now accepted and ready to land.Oct 11 2019, 1:29 AM
This revision was automatically updated to reflect the committed changes.