From 90fd070c2849121e69dcc7ded88d84436fd83565 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 2 Apr 2025 03:02:01 +0000 Subject: [PATCH] Cleanup: spelling in comments (make check_spelling_*) --- CMakeLists.txt | 4 ++-- intern/ghost/intern/GHOST_ContextVK.cc | 6 +++--- intern/ghost/intern/GHOST_ContextVK.hh | 6 +++--- source/blender/gpu/opengl/gl_state.cc | 2 +- source/blender/python/generic/py_capi_utils.cc | 4 ++-- source/blender/python/intern/bpy_interface_run.cc | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e78c2e17e1..2f1dbf17b23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -861,13 +861,13 @@ Currently this depends on WITH_GHOST_WAYLAND and the weston compositor \ ) option(WITH_LINUX_OFFICIAL_RELEASE_TESTS "\ Enable sanity check tests for the linux official release. \ -These test are only relevant for checking that our offical Linux releases are portable and \ +These test are only relevant for checking that our official Linux releases are portable and \ packaged properly. For example that we don't link to any unexpected system libraries." OFF ) else() set(WITH_UI_TESTS_HEADLESS OFF) - # TODO: We should probaby add more sanity checks for Windows and Mac as well + # TODO: We should probably add more sanity checks for Windows and Mac as well set(WITH_LINUX_OFFICIAL_RELEASE_TESTS OFF) endif() diff --git a/intern/ghost/intern/GHOST_ContextVK.cc b/intern/ghost/intern/GHOST_ContextVK.cc index 096d7a35068..979d2a217d6 100644 --- a/intern/ghost/intern/GHOST_ContextVK.cc +++ b/intern/ghost/intern/GHOST_ContextVK.cc @@ -317,7 +317,7 @@ class GHOST_DeviceVK { device_create_info_p_next = &maintenance_4; } - /* Swapchain maintenance 1 is optional. */ + /* Swap-chain maintenance 1 is optional. */ VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT swapchain_maintenance_1 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXT, nullptr, VK_TRUE}; if (extension_requested(VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME)) { @@ -553,7 +553,7 @@ GHOST_TSuccess GHOST_ContextVK::swapBuffers() GHOST_Frame &frame_data = m_frame_data[m_render_frame]; /* Wait for the previous time this frame was used to be finished rendering. Presenting can still * happen in parallel, but acquiring needs can only happen when the frame acquire semaphore has - * been signalled and waited for. */ + * been signaled and waited for. */ vkWaitForFences(device, 1, &frame_data.submission_fence, true, UINT64_MAX); frame_data.discard_pile.destroy(device); @@ -751,7 +751,7 @@ static GHOST_TSuccess selectPresentMode(VkPhysicalDevice device, } /*FIFO present mode is always available and we (should) prefer it as it will keep the main loop - * running along the monitor refresh rate. Mailbox and Fifo relaxed can generate a lot of frames + * running along the monitor refresh rate. Mailbox and FIFO relaxed can generate a lot of frames * that will never be displayed. */ *r_presentMode = VK_PRESENT_MODE_FIFO_KHR; return GHOST_kSuccess; diff --git a/intern/ghost/intern/GHOST_ContextVK.hh b/intern/ghost/intern/GHOST_ContextVK.hh index b2f683d9db4..8a22826a926 100644 --- a/intern/ghost/intern/GHOST_ContextVK.hh +++ b/intern/ghost/intern/GHOST_ContextVK.hh @@ -73,14 +73,14 @@ struct GHOST_FrameDiscard { struct GHOST_Frame { /** - * Fence signalled when "previous" use of the frame has finished rendering. When signalled the + * Fence signaled when "previous" use of the frame has finished rendering. When signaled the * frame can acquire a new image and the semaphores can be reused. */ VkFence submission_fence = VK_NULL_HANDLE; - /** Semaphore for acquiring; being signalled when the swap chain image is ready to be updated. */ + /** Semaphore for acquiring; being signaled when the swap chain image is ready to be updated. */ VkSemaphore acquire_semaphore = VK_NULL_HANDLE; /** - * Semaphore for presenting; being signalled when the swap chain image is ready to be presented. + * Semaphore for presenting; being signaled when the swap chain image is ready to be presented. */ VkSemaphore present_semaphore = VK_NULL_HANDLE; diff --git a/source/blender/gpu/opengl/gl_state.cc b/source/blender/gpu/opengl/gl_state.cc index 54f5e11cf05..f0ab280c592 100644 --- a/source/blender/gpu/opengl/gl_state.cc +++ b/source/blender/gpu/opengl/gl_state.cc @@ -650,7 +650,7 @@ GLFence::~GLFence() void GLFence::signal() { - /* If fence is already signalled, create a newly signalled fence primitive. */ + /* If fence is already signaled, create a newly signaled fence primitive. */ if (gl_sync_) { glDeleteSync(gl_sync_); } diff --git a/source/blender/python/generic/py_capi_utils.cc b/source/blender/python/generic/py_capi_utils.cc index 66b01e7c62d..2f9a0ec3f5f 100644 --- a/source/blender/python/generic/py_capi_utils.cc +++ b/source/blender/python/generic/py_capi_utils.cc @@ -1698,13 +1698,13 @@ void PyC_StdFilesFlush() * different because the original code uses some internal APIs. * * This is approximately equivalent to: - * ``` + * \code{.py} * try: * sys.stdout.flush() * sys.stderr.flush() * except Exception: * pass - * ``` + * \endcode */ PyObject *py_flush = PyUnicode_FromString("flush"); BLI_assert(py_flush); diff --git a/source/blender/python/intern/bpy_interface_run.cc b/source/blender/python/intern/bpy_interface_run.cc index 9ffcf41c302..b630c47c939 100644 --- a/source/blender/python/intern/bpy_interface_run.cc +++ b/source/blender/python/intern/bpy_interface_run.cc @@ -217,8 +217,8 @@ static bool python_script_exec( PyC_MainModule_Restore(main_mod); - /* Flush stdout/stderr to ensure the script output is visible. - * Using fflush(stdout) does not solve it. */ + /* Flush `stdout` & `stderr` to ensure the script output is visible. + * Using `fflush(stdout)` does not solve it. */ PyC_StdFilesFlush(); bpy_context_clear(C, &gilstate);