diff --git a/.github/actions/spell-check/dictionary/api.txt b/.github/actions/spell-check/dictionary/api.txt new file mode 100644 index 000000000..e69de29bb diff --git a/dep/wil b/dep/wil index e8c599bca..3c00e7f1d 160000 --- a/dep/wil +++ b/dep/wil @@ -1 +1 @@ -Subproject commit e8c599bca6c56c44b6730ad93f6abbc9ecd60fc1 +Subproject commit 3c00e7f1d8cf9930bbb8e5be3ef0df65c84e8928 diff --git a/src/buffer/out/CharRow.cpp b/src/buffer/out/CharRow.cpp index 07a66bb92..cf3bed4d8 100644 --- a/src/buffer/out/CharRow.cpp +++ b/src/buffer/out/CharRow.cpp @@ -321,7 +321,7 @@ COORD CharRow::GetStorageKey(const size_t column) const noexcept // - Updates the pointer to the parent row (which might change if we shuffle the rows around) // Arguments: // - pParent - Pointer to the parent row -void CharRow::UpdateParent(ROW* const pParent) noexcept +void CharRow::UpdateParent(ROW* const pParent) { _pParent = FAIL_FAST_IF_NULL(pParent); } diff --git a/src/buffer/out/CharRow.hpp b/src/buffer/out/CharRow.hpp index c0f8f19e8..f3ccd3dc5 100644 --- a/src/buffer/out/CharRow.hpp +++ b/src/buffer/out/CharRow.hpp @@ -88,7 +88,7 @@ public: const UnicodeStorage& GetUnicodeStorage() const noexcept; COORD GetStorageKey(const size_t column) const noexcept; - void UpdateParent(ROW* const pParent) noexcept; + void UpdateParent(ROW* const pParent); friend CharRowCellReference; friend constexpr bool operator==(const CharRow& a, const CharRow& b) noexcept; diff --git a/src/cascadia/PublicTerminalCore/HwndTerminal.cpp b/src/cascadia/PublicTerminalCore/HwndTerminal.cpp index 79bebbe17..7dcc5c397 100644 --- a/src/cascadia/PublicTerminalCore/HwndTerminal.cpp +++ b/src/cascadia/PublicTerminalCore/HwndTerminal.cpp @@ -29,6 +29,7 @@ LRESULT CALLBACK HwndTerminal::HwndTerminalWndProc( UINT uMsg, WPARAM wParam, LPARAM lParam) noexcept +try { #pragma warning(suppress : 26490) // Win32 APIs can only store void*, have to use reinterpret_cast HwndTerminal* terminal = reinterpret_cast(GetWindowLongPtr(hwnd, GWLP_USERDATA)); @@ -84,6 +85,7 @@ LRESULT CALLBACK HwndTerminal::HwndTerminalWndProc( } return DefWindowProc(hwnd, uMsg, wParam, lParam); } +CATCH_LOG() static bool RegisterTermClass(HINSTANCE hInstance) noexcept { @@ -686,6 +688,7 @@ void __stdcall TerminalKillFocus(void* terminal) // - rows - Rows of text data to copy // - fAlsoCopyFormatting - true if the color and formatting should also be copied, false otherwise HRESULT HwndTerminal::_CopyTextToSystemClipboard(const TextBuffer::TextAndColor& rows, bool const fAlsoCopyFormatting) +try { std::wstring finalString; @@ -714,7 +717,7 @@ HRESULT HwndTerminal::_CopyTextToSystemClipboard(const TextBuffer::TextAndColor& RETURN_LAST_ERROR_IF(!OpenClipboard(_hwnd.get())); { // Clipboard Scope - auto clipboardCloser = wil::scope_exit([]() noexcept { + auto clipboardCloser = wil::scope_exit([]() { LOG_LAST_ERROR_IF(!CloseClipboard()); }); @@ -742,6 +745,7 @@ HRESULT HwndTerminal::_CopyTextToSystemClipboard(const TextBuffer::TextAndColor& return S_OK; } +CATCH_RETURN() // Routine Description: // - Copies the given string onto the global system clipboard in the specified format diff --git a/src/cascadia/TerminalConnection/ConptyConnection.cpp b/src/cascadia/TerminalConnection/ConptyConnection.cpp index b0a0482c0..4734b4835 100644 --- a/src/cascadia/TerminalConnection/ConptyConnection.cpp +++ b/src/cascadia/TerminalConnection/ConptyConnection.cpp @@ -294,6 +294,7 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation // Method Description: // - called when the client application (not necessarily its pty) exits for any reason void ConptyConnection::_ClientTerminated() noexcept + try { if (_isStateAtOrBeyond(ConnectionState::Closing)) { @@ -321,6 +322,7 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation _piClient.reset(); } + CATCH_LOG() void ConptyConnection::WriteInput(hstring const& data) { @@ -349,6 +351,7 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation } void ConptyConnection::Close() noexcept + try { if (_transitionToState(ConnectionState::Closing)) { @@ -378,6 +381,7 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation _transitionToState(ConnectionState::Closed); } } + CATCH_LOG() DWORD ConptyConnection::_OutputThread() { diff --git a/src/renderer/dx/DxRenderer.cpp b/src/renderer/dx/DxRenderer.cpp index b61f1e090..a36c18562 100644 --- a/src/renderer/dx/DxRenderer.cpp +++ b/src/renderer/dx/DxRenderer.cpp @@ -2236,6 +2236,7 @@ void DxEngine::SetAntialiasingMode(const D2D1_TEXT_ANTIALIAS_MODE antialiasingMo // Return Value: // - void DxEngine::SetDefaultTextBackgroundOpacity(const float opacity) noexcept +try { _defaultTextBackgroundOpacity = opacity; @@ -2244,3 +2245,4 @@ void DxEngine::SetDefaultTextBackgroundOpacity(const float opacity) noexcept // We don't terribly care if this fails. LOG_IF_FAILED(InvalidateAll()); } +CATCH_LOG()