This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Made numerous methods of ImmutableList const
ClosedPublic

Authored by Szelethus on Sep 10 2018, 12:29 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

Szelethus created this revision.Sep 10 2018, 12:29 PM
vsk added a subscriber: vsk.Sep 10 2018, 1:25 PM
vsk added inline comments.
unittests/ADT/ImmutableListTest.cpp
83 ↗(On Diff #164722)

It might be simpler to use a shorter name here (maybe 'Unmodifiable'?) and to have a comment explaining that the struct has no move/copy constructors/assignment operators.

89 ↗(On Diff #164722)

Why do the *-assign operators not return references?

103 ↗(On Diff #164722)

Nit, please clang-format diffs.

Szelethus updated this revision to Diff 164826.Sep 11 2018, 2:25 AM

Fixes according to inline comments.

Szelethus marked 3 inline comments as done.Sep 11 2018, 2:25 AM
This revision is now accepted and ready to land.Sep 11 2018, 10:14 AM
vsk accepted this revision.Sep 11 2018, 10:46 AM

Thanks, LGTM as well.

Szelethus set the repository for this revision to rL LLVM.Sep 12 2018, 4:19 AM
This revision was automatically updated to reflect the committed changes.