[PR #14871] Fix a number of minor correctness issues that Clang flagged #30298

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

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

State: closed
Merged: Yes


  • lld-link is more strict about the casing of keywords in .def files
  • [[nodiscard]] must come before virtual and static qualifiers
  • precomp.h is never to be included with <>
  • We were calling the jsoncpp constructors directly (oops) as functions (oops)
  • ClipboardTests constructed KeyEvents by copy instead of directly

I don't know about the Dispatcher one, but it looks more correct this way. Also, it compiles. That was done before the C++/WinRT update, so maybe they fixed it as well.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14871 **State:** closed **Merged:** Yes --- * `lld-link` is more strict about the casing of keywords in `.def` files * `[[nodiscard]]` must come before `virtual` and `static` qualifiers * `precomp.h` is never to be included with `<>` * We were calling the jsoncpp constructors directly (oops) as functions (oops) * ClipboardTests constructed `KeyEvent`s by copy instead of directly I don't know about the Dispatcher one, but it looks more correct this way. Also, it compiles. That was done before the C++/WinRT update, so maybe they fixed it as well.
claunia added the pull-request label 2026-01-31 09:39:55 +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#30298