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
Diff Detail
Diff Detail
Unit Tests
Unit Tests