Page MenuHomePhabricator

[Format] Include AnnotatedLine.Level in FormatToken.NestingLevel field
AbandonedPublic

Authored by berenm on Sep 23 2016, 5:43 AM.

Details

Reviewers
djasper
Summary

This makes NestingLevel more properly model the global nesting level of a
token, instead of the nesting level local to the current annotated line.

The NestingLevel field can then be used to determine the start and end of
token alignment sequences more precisely.

Diff Detail

Event Timeline

berenm updated this revision to Diff 72260.Sep 23 2016, 5:43 AM
berenm retitled this revision from to [Format] Include AnnotatedLine.Level in FormatToken.NestingLevel field.
berenm updated this object.

This patch might help clarifying the NestingLevel usage and can simplify the alignment computations in https://reviews.llvm.org/D21279