diff options
| author | Rahul Joshi <rjoshi@nvidia.com> | 2024-09-05 09:01:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 09:01:19 -0700 |
| commit | c2018fa40fd081a10af4f3294362db9634d9a282 (patch) | |
| tree | 4860c70235be33c461e282a2312a4399098082b7 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | fc3e6a81868a0c84e405622a64756e57f020ca37 (diff) | |
[NFC][Support] Refactor FormatVariadic code. (#106610)
- Rename `Align` field in ReplacementItem/FmtAlign to `Width` to
accurately reflect its use.
- Change both `Width` and `Index` in ReplacementItem to 32-bit int
instead of size_t (as 64-bits seems excessive in this context).
- Eliminate the use of `Empty` ReplacementType, and use the
existing std::optional<> instead to indicate that.
- Eliminate some boilerplate type code in formatv().
- Eliminate the loop in `splitLiteralAndReplacement`. The existing
code will never loop back.
- Directly use constructor instead of std::make_pair.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
