The demangler has a utility class 'SwapAndRestore'. That name is confusing. It's not swapping anything, and the restore part happens at the object's destruction. What it's actually doing is allowing a override of some value that is dynamically accessible within the lifetime of a lexical scope. A better name, IMHO, is ScopedOverride, and a rename of its member variables.
Details
Details
- Reviewers
bruno dblaikie - Group Reviewers
Restricted Project - Commits
- rG51f6caf2fbb5: [demangler][NFC] Rename SwapAndRestore to ScopedOverride
Summary
Diff Detail
Diff Detail
Event Timeline
urnathan retitled this revision from [demangler][NFC] Rename SwapAndRestore to DynamicOverride to [demangler][NFC] Rename SwapAndRestore to ScopedOverride.
Comment Actionslet's try with ScopedOverride
This revision is now accepted and ready to land.Apr 6 2022, 11:49 AM
This revision was landed with ongoing or failed builds.Apr 6 2022, 12:55 PM
Closed by commit rG51f6caf2fbb5: [demangler][NFC] Rename SwapAndRestore to ScopedOverride (authored by urnathan). · Explain Why
This revision was automatically updated to reflect the committed changes.