This is an archive of the discontinued LLVM Phabricator instance.

[clangd] NFC: Improve Dex Iterators debugging traits
ClosedPublic

Authored by kbobyrev on Aug 14 2018, 1:20 AM.

Details

Summary

This patch improves dex::Iterator string representation by incorporating the information about the element which is currently being pointed to by the DocumentIterator.

Diff Detail

Event Timeline

kbobyrev created this revision.Aug 14 2018, 1:20 AM
kbobyrev edited the summary of this revision. (Show Details)Aug 14 2018, 1:21 AM
ioeric accepted this revision.Aug 16 2018, 6:11 AM
ioeric added inline comments.
clang-tools-extra/clangd/index/dex/Iterator.h
102–104

nit: I think *IDX* might look a bit nicer. But up to you :)

This revision is now accepted and ready to land.Aug 16 2018, 6:11 AM
kbobyrev updated this revision to Diff 161013.Aug 16 2018, 6:18 AM
kbobyrev marked an inline comment as done.

Improved wording to prevent confusion: no more IDX (which is the one pointed to by the iterator) and IDN; just mention that the element being pointed to is the one enclosed in {} braces.

This revision was automatically updated to reflect the committed changes.