Page MenuHomePhabricator

[clang][AST] Encapsulate DeclarationNameLoc, NFCI
ClosedPublic

Authored by miyuki on Jan 13 2021, 6:04 AM.

Details

Summary

This change makes DeclarationNameLoc a proper class and refactors its
users to use getter methods instead of accessing the members directly.
The change also makes DeclarationNameLoc immutable (i.e., it cannot
be modified once constructed).

Diff Detail

Event Timeline

miyuki created this revision.Jan 13 2021, 6:04 AM
miyuki requested review of this revision.Jan 13 2021, 6:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2021, 6:04 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aprantl accepted this revision.Jan 26 2021, 2:50 PM

Seem reasonable.

This revision is now accepted and ready to land.Jan 26 2021, 2:50 PM
This revision was automatically updated to reflect the committed changes.