[PR #16863] Fix a number of minor issues that Clang flagged (again! again!) #31027

Open
opened 2026-01-31 09:44:39 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


  • [[nodiscard]] and [[maybe_unused]] must come before virtual and static qualifiers
  • MSVC and Clang disagree on how gsl::suppress should look; fortunately, GSL provides a macro to paper over the difference
  • Clang throws "pessimizing move" warnings when you std::move a temporary, as it makes copy elision impossible
  • The fuzzing logic was using an unspecified template expansion CFuzzLogic<> before the type had been declared
  • LibraryResources was emitting most of the .util section with read-write permissions and some of it with read-only

Refs #15952

**Original Pull Request:** https://github.com/microsoft/terminal/pull/16863 **State:** closed **Merged:** Yes --- * `[[nodiscard]]` and `[[maybe_unused]]` must come before `virtual` and `static` qualifiers * MSVC and Clang disagree on how `gsl::suppress` should look; fortunately, GSL provides a macro to paper over the difference * Clang throws "pessimizing move" warnings when you `std::move` a temporary, as it makes copy elision impossible * The fuzzing logic was using an unspecified template expansion `CFuzzLogic<>` before the type had been declared * LibraryResources was emitting most of the `.util` section with read-write permissions and some of it with read-only Refs #15952
claunia added the pull-request label 2026-01-31 09:44:39 +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#31027