This is an archive of the discontinued LLVM Phabricator instance.

Remove manual byte counting from Highlighter code.
ClosedPublic

Authored by teemperor on Aug 13 2018, 4:31 PM.

Details

Summary

This removes the manual byte counting mechanism from the syntax highlighting
code. This is no longer necessary as the Stream class now has built-in support for
automatically counting the bytes that were written to it so far.

The advantage of automatic byte counting via Stream is that it is less error-prone
than the manual version and we need to write less boilerplate code.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

teemperor created this revision.Aug 13 2018, 4:31 PM
labath accepted this revision.Aug 14 2018, 9:41 AM
labath added a subscriber: labath.

cool

This revision is now accepted and ready to land.Aug 14 2018, 9:41 AM
This revision was automatically updated to reflect the committed changes.