[PR #12975] Use type inference throughout the project #29316

Closed
opened 2026-01-31 09:34:11 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12975

State: closed
Merged: Yes


#4015 requires sweeping changes in order to allow a migration of our buffer
coordinates from int16_t to int32_t. This commit reduces the size of
future commits by using type inference wherever possible, dropping the
need to manually adjust types throughout the project later.

As an added bonus this commit standardizes the alignment of cv qualifiers
to be always left of the type (e.g. const T& instead of T const&).

The migration to type inference with auto was mostly done
using JetBrains Resharper with some manual intervention and the
standardization of cv qualifier alignment using clang-format 14.

References

This is preparation work for #4015.

Validation Steps Performed

  • Tests pass
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12975 **State:** closed **Merged:** Yes --- #4015 requires sweeping changes in order to allow a migration of our buffer coordinates from `int16_t` to `int32_t`. This commit reduces the size of future commits by using type inference wherever possible, dropping the need to manually adjust types throughout the project later. As an added bonus this commit standardizes the alignment of cv qualifiers to be always left of the type (e.g. `const T&` instead of `T const&`). The migration to type inference with `auto` was mostly done using JetBrains Resharper with some manual intervention and the standardization of cv qualifier alignment using clang-format 14. ## References This is preparation work for #4015. ## Validation Steps Performed * Tests pass ✅
claunia added the pull-request label 2026-01-31 09:34:11 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29316