diff --git a/intern/cycles/integrator/path_trace_work_cpu.cpp b/intern/cycles/integrator/path_trace_work_cpu.cpp index dce21c89326..ed641f338d7 100644 --- a/intern/cycles/integrator/path_trace_work_cpu.cpp +++ b/intern/cycles/integrator/path_trace_work_cpu.cpp @@ -362,7 +362,7 @@ void PathTraceWorkCPU::guiding_push_sample_data_to_global_storage( # endif # ifdef WITH_CYCLES_DEBUG - /* Check if the training/radiance samples generated py the path segment storage are valid.*/ + /* Check if the training/radiance samples generated by the path segment storage are valid. */ if (VLOG_WORK_IS_ON) { const bool validSamples = kg->opgl_path_segment_storage->ValidateSamples(); if (!validSamples) { diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp index 7b03fc40593..3108ff01799 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cpp +++ b/intern/ghost/intern/GHOST_WindowWayland.cpp @@ -375,7 +375,7 @@ static bool gwl_window_state_set(GWL_Window *win, const GHOST_TWindowState state /** \} */ /* -------------------------------------------------------------------- */ -/** \name Internal #GWL_Window Viewport Setup/Teardown +/** \name Internal #GWL_Window Viewport Setup/Tear-down * * A viewport is needed to implement fractional scale, * as the outputs scale may change at runtime, support creating & clearing the viewport as needed. diff --git a/source/blender/asset_system/intern/asset_library_service.hh b/source/blender/asset_system/intern/asset_library_service.hh index db47bf6ebc0..03061b43d62 100644 --- a/source/blender/asset_system/intern/asset_library_service.hh +++ b/source/blender/asset_system/intern/asset_library_service.hh @@ -80,13 +80,15 @@ class AssetLibraryService { AssetLibrary *get_asset_library_all(const Main *bmain); /** - * Return the start position of the last blendfile extension in given path, or std::string::npos - * if not found. Works with both kind of path separators. */ + * Return the start position of the last blend-file extension in given path, + * or #std::string::npos if not found. Works with both kind of path separators. + */ int64_t rfind_blendfile_extension(StringRef path); /** * Return a normalized version of #AssetWeakReference.relative_asset_identifier. - * Special care is required here because slahes or backslashes should not be converted in the ID - * name itself. */ + * Special care is required here because slashes or backslashes should not be converted in the ID + * name itself. + */ std::string normalize_asset_weak_reference_relative_asset_identifier( const AssetWeakReference &asset_reference); /** Get a valid library path from the weak reference. Empty if e.g. the reference is to a local diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h index 58ed77559e5..364a1204014 100644 --- a/source/blender/blenkernel/BKE_global.h +++ b/source/blender/blenkernel/BKE_global.h @@ -201,7 +201,7 @@ enum { G_DEBUG_IO = (1 << 17), /* IO Debugging (for Collada, ...). */ G_DEBUG_GPU_FORCE_WORKAROUNDS = (1 << 18), /* force gpu workarounds bypassing detections. */ G_DEBUG_GPU_FORCE_DISABLE_SSBO = (1 << 19), /* force disabling usage of SSBO's */ - G_DEBUG_GPU_RENDERDOC = (1 << 20), /* Enable Renderdoc integration. */ + G_DEBUG_GPU_RENDERDOC = (1 << 20), /* Enable RenderDoc integration. */ G_DEBUG_XR = (1 << 21), /* XR/OpenXR messages */ G_DEBUG_XR_TIME = (1 << 22), /* XR/OpenXR timing messages */ diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 2b61ad82ff0..3039334b8f8 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -154,11 +154,11 @@ typedef struct CPPTypeHandle CPPTypeHandle; * Defines the appearance and behavior of a socket in the UI. */ typedef struct bNodeSocketType { - /* Identifier name */ + /** Identifier name. */ char idname[64]; - /* Type label */ + /** Type label. */ char label[64]; - /* Subtype label */ + /** Sub-type label. */ char subtype_label[64]; void (*draw)(struct bContext *C, diff --git a/source/blender/blenkernel/BKE_pbvh_pixels.hh b/source/blender/blenkernel/BKE_pbvh_pixels.hh index 31fd2028299..2963b27f81c 100644 --- a/source/blender/blenkernel/BKE_pbvh_pixels.hh +++ b/source/blender/blenkernel/BKE_pbvh_pixels.hh @@ -328,7 +328,7 @@ struct CopyPixelCommand { return false; } - /* Can only extend when the delta between with the previous source fits in a single byte.*/ + /* Can only extend when the delta between with the previous source fits in a single byte. */ int2 delta_source_1 = source_1 - command.source_1; if (max_ii(UNPACK2(blender::math::abs(delta_source_1))) > 127) { return false; diff --git a/source/blender/blenkernel/intern/mesh_boolean_convert.cc b/source/blender/blenkernel/intern/mesh_boolean_convert.cc index a7de9980774..93f3b6dcf60 100644 --- a/source/blender/blenkernel/intern/mesh_boolean_convert.cc +++ b/source/blender/blenkernel/intern/mesh_boolean_convert.cc @@ -714,7 +714,7 @@ static Mesh *imesh_to_mesh(IMesh *im, MeshesToIMeshInfo &mim) copy_v3fl_v3db(positions[vi], v->co); } - /* Set the loopstart and totloop for each output poly, + /* Set the loop-start and total-loops for each output poly, * and set the vertices in the appropriate loops. */ bke::SpanAttributeWriter dst_material_indices = result->attributes_for_write().lookup_or_add_for_write_only_span("material_index", diff --git a/source/blender/blenkernel/intern/pbvh_pixels_copy.cc b/source/blender/blenkernel/intern/pbvh_pixels_copy.cc index 4eb3555f9ce..1834aab06ad 100644 --- a/source/blender/blenkernel/intern/pbvh_pixels_copy.cc +++ b/source/blender/blenkernel/intern/pbvh_pixels_copy.cc @@ -258,7 +258,7 @@ struct Rows { struct RowView { int row_number = 0; - /** Not owning pointer into Row.pixels starts at the start of the row.*/ + /** Not owning pointer into Row.pixels starts at the start of the row. */ MutableSpan pixels; RowView() = delete; RowView(Rows &rows, int64_t row_number) diff --git a/source/blender/blenloader/intern/versioning_legacy.c b/source/blender/blenloader/intern/versioning_legacy.c index 761213c503e..609c2f526a3 100644 --- a/source/blender/blenloader/intern/versioning_legacy.c +++ b/source/blender/blenloader/intern/versioning_legacy.c @@ -890,9 +890,8 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain) bScreen *screen; Object *ob; - /* As of now, this insures that the transition from the old Track system - * to the new full constraint Track is painless for everyone. - theeth - */ + /* NOTE(@theeth): As of now, this insures that the transition from the old Track system + * to the new full constraint Track is painless for everyone. */ ob = bmain->objects.first; while (ob) { diff --git a/source/blender/draw/engines/eevee/shaders/cubemap_lib.glsl b/source/blender/draw/engines/eevee/shaders/cubemap_lib.glsl index 30e11d57c9b..d16ebad738e 100644 --- a/source/blender/draw/engines/eevee/shaders/cubemap_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/cubemap_lib.glsl @@ -1,6 +1,6 @@ /* Fallback implementation for hardware not supporting cubemap arrays. - * `samplerCubeArray` fallback declaration as sampler2DArray in `glsl_shader_defines.glsl`*/ + * `samplerCubeArray` fallback declaration as sampler2DArray in `glsl_shader_defines.glsl`. */ #ifndef GPU_ARB_texture_cube_map_array float cubemap_face_index(vec3 P) diff --git a/source/blender/draw/engines/overlay/overlay_wireframe.cc b/source/blender/draw/engines/overlay/overlay_wireframe.cc index 6078b2606a2..fd6259f4cb1 100644 --- a/source/blender/draw/engines/overlay/overlay_wireframe.cc +++ b/source/blender/draw/engines/overlay/overlay_wireframe.cc @@ -54,7 +54,7 @@ void OVERLAY_wireframe_cache_init(OVERLAY_Data *vedata) * becomes more proportional with a variation of angle. */ pd->shdata.wire_step_param = sqrt(abs(pd->overlay.wireframe_threshold)); - /* The maximum value (255 in the vbo) is used to force hide the edge. */ + /* The maximum value (255 in the VBO) is used to force hide the edge. */ pd->shdata.wire_step_param = interpolate(0.0f, 1.0f - (1.0f / 255), pd->shdata.wire_step_param); pd->shdata.wire_opacity = pd->overlay.wireframe_opacity; diff --git a/source/blender/editors/space_view3d/view3d_select.cc b/source/blender/editors/space_view3d/view3d_select.cc index 865571990be..50adf47b799 100644 --- a/source/blender/editors/space_view3d/view3d_select.cc +++ b/source/blender/editors/space_view3d/view3d_select.cc @@ -3948,13 +3948,12 @@ static bool do_pose_box_select(bContext *C, const int hits = view3d_opengl_select( vc, buffer, (totobj + MAXPICKELEMS), rect, VIEW3D_SELECT_ALL, select_filter); /* - * LOGIC NOTES (theeth): - * The buffer and ListBase have the same relative order, which makes the selection + * NOTE(@theeth): Regarding the logic use here. + * The buffer and #ListBase have the same relative order, which makes the selection * very simple. Loop through both data sets at the same time, if the color * is the same as the object, we have a hit and can move to the next color * and object pair, if not, just move to the next object, - * keeping the same color until we have a hit. - */ + * keeping the same color until we have a hit. */ if (hits > 0) { /* no need to loop if there's no hit */ diff --git a/source/blender/gpu/metal/mtl_context.mm b/source/blender/gpu/metal/mtl_context.mm index 2db73f268a2..57ca18c4edc 100644 --- a/source/blender/gpu/metal/mtl_context.mm +++ b/source/blender/gpu/metal/mtl_context.mm @@ -2192,7 +2192,7 @@ void present(MTLRenderPassDescriptor *blit_descriptor, /* Release synchronization primitive for current frame to avoid cross-frame dependencies. * We require MTLEvents to ensure correct ordering of workload submissions within a frame, * however, we should not create long chains of dependencies spanning several drawables as any - * temporary stalls can then trigger erroneous GPU timeouts in non-dependent submsisions. */ + * temporary stalls can then trigger erroneous GPU timeouts in non-dependent submissions. */ [MTLCommandBufferManager::sync_event release]; MTLCommandBufferManager::sync_event = nil; MTLCommandBufferManager::event_signal_val = 0; diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc index 9b8286b53d9..738961047c9 100644 --- a/source/blender/gpu/opengl/gl_backend.cc +++ b/source/blender/gpu/opengl/gl_backend.cc @@ -249,8 +249,8 @@ static void detect_workarounds() return; } - /* Only use main context when running inside renderdoc. Renderdoc requires that all calls are - * from the same context.*/ + /* Only use main context when running inside RenderDoc. + * RenderDoc requires that all calls are* from the same context. */ if (G.debug & G_DEBUG_GPU_RENDERDOC) { GCaps.use_main_context_workaround = true; } diff --git a/source/blender/gpu/vulkan/vk_data_conversion.cc b/source/blender/gpu/vulkan/vk_data_conversion.cc index 9a0f67c5697..5522e79c45b 100644 --- a/source/blender/gpu/vulkan/vk_data_conversion.cc +++ b/source/blender/gpu/vulkan/vk_data_conversion.cc @@ -609,7 +609,7 @@ void convert_component(F32 &dst, const UnsignedNormalized &src) dst.value = float(src.value) / scalar; } -/* Copy the contents of src to dst with out performing any actual conversion.*/ +/* Copy the contents of src to dst with out performing any actual conversion. */ template void convert_component(DestinationType &dst, const SourceType &src) { diff --git a/source/blender/gpu/vulkan/vk_descriptor_set.hh b/source/blender/gpu/vulkan/vk_descriptor_set.hh index 498d15310be..50239d07be1 100644 --- a/source/blender/gpu/vulkan/vk_descriptor_set.hh +++ b/source/blender/gpu/vulkan/vk_descriptor_set.hh @@ -136,7 +136,7 @@ class VKDescriptorSetTracker : protected VKResourceTracker { }; private: - /** A list of bindings that needs to be updated.*/ + /** A list of bindings that needs to be updated. */ Vector bindings_; VkDescriptorSetLayout layout_; diff --git a/source/blender/gpu/vulkan/vk_framebuffer.cc b/source/blender/gpu/vulkan/vk_framebuffer.cc index d58b585dfcb..20ab1b67e7b 100644 --- a/source/blender/gpu/vulkan/vk_framebuffer.cc +++ b/source/blender/gpu/vulkan/vk_framebuffer.cc @@ -241,7 +241,7 @@ void VKFrameBuffer::render_pass_create() VK_ALLOCATION_CALLBACKS - /* Track first attachment for size.*/ + /* Track first attachment for size. */ GPUAttachmentType first_attachment = GPU_FB_MAX_ATTACHMENT; std::array attachment_descriptions; @@ -276,7 +276,7 @@ void VKFrameBuffer::render_pass_create() depth_location; if (attachment.tex) { - /* Ensure texture is allocated to ensure the image view.*/ + /* Ensure texture is allocated to ensure the image view. */ VKTexture &texture = *static_cast(unwrap(attachment.tex)); texture.ensure_allocated(); image_views[attachment_location] = texture.vk_image_view_handle(); @@ -346,7 +346,7 @@ void VKFrameBuffer::render_pass_create() vkCreateRenderPass( context.device_get(), &render_pass_info, vk_allocation_callbacks, &vk_render_pass_); - /* We might want to split framebuffer and render pass....*/ + /* We might want to split frame-buffer and render pass. */ VkFramebufferCreateInfo framebuffer_create_info = {}; framebuffer_create_info.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO; framebuffer_create_info.renderPass = vk_render_pass_; diff --git a/source/blender/gpu/vulkan/vk_texture.cc b/source/blender/gpu/vulkan/vk_texture.cc index c6ef8ad0511..c17dcd9484c 100644 --- a/source/blender/gpu/vulkan/vk_texture.cc +++ b/source/blender/gpu/vulkan/vk_texture.cc @@ -186,7 +186,7 @@ static VkImageUsageFlagBits to_vk_image_usage(const eGPUTextureUsage usage, if (usage & GPU_TEXTURE_USAGE_ATTACHMENT) { if (format_flag & (GPU_FORMAT_NORMALIZED_INTEGER | GPU_FORMAT_COMPRESSED)) { /* These formats aren't supported as an attachment. When using GPU_TEXTURE_USAGE_DEFAULT they - * are still being evaluated to be attachable. So we need to skip them.*/ + * are still being evaluated to be attachable. So we need to skip them. */ } else { if (format_flag & (GPU_FORMAT_DEPTH | GPU_FORMAT_STENCIL)) { diff --git a/source/blender/gpu/vulkan/vk_texture.hh b/source/blender/gpu/vulkan/vk_texture.hh index db4d5fa35e6..dbd4741713f 100644 --- a/source/blender/gpu/vulkan/vk_texture.hh +++ b/source/blender/gpu/vulkan/vk_texture.hh @@ -17,10 +17,10 @@ class VKTexture : public Texture { VkImageView vk_image_view_ = VK_NULL_HANDLE; VmaAllocation allocation_ = VK_NULL_HANDLE; - /* Last image layout of the texture. Framebuffer and barriers can alter/require the actual layout - * to be changed. During this it requires to set the current layout in order to know which + /* Last image layout of the texture. Frame-buffer and barriers can alter/require the actual + * layout to be changed. During this it requires to set the current layout in order to know which * conversion should happen. #current_layout_ keep track of the layout so the correct conversion - * can be done.*/ + * can be done. */ VkImageLayout current_layout_ = VK_IMAGE_LAYOUT_UNDEFINED; public: diff --git a/source/blender/modifiers/intern/MOD_array.cc b/source/blender/modifiers/intern/MOD_array.cc index 59c6b964260..6041ddc205b 100644 --- a/source/blender/modifiers/intern/MOD_array.cc +++ b/source/blender/modifiers/intern/MOD_array.cc @@ -322,7 +322,7 @@ static void mesh_merge_transform(Mesh *result, edge->v2 += cap_verts_index; } - /* adjust cap poly loopstart indices */ + /* Adjust cap poly loop-start indices. */ for (i = 0; i < cap_npolys; i++) { result_poly_offsets[cap_polys_index + i] = cap_poly_offsets[i] + cap_loops_index; } diff --git a/source/blender/sequencer/intern/strip_time.h b/source/blender/sequencer/intern/strip_time.h index 779fba8d828..b688ffa2595 100644 --- a/source/blender/sequencer/intern/strip_time.h +++ b/source/blender/sequencer/intern/strip_time.h @@ -40,7 +40,7 @@ void seq_time_gap_info_get(const struct Scene *scene, struct GapInfo *r_gap_info); void seq_time_effect_range_set(const struct Scene *scene, Sequence *seq); /** - * Update strip `startdisp` and `enddisp` (n-input effects have no len to calculate these). + * Update strip `startdisp` and `enddisp` (n-input effects have no length to calculate these). */ void seq_time_update_effects_strip_range(const struct Scene *scene, struct SeqCollection *effects); void seq_time_translate_handles(const struct Scene *scene, struct Sequence *seq, const int offset); diff --git a/tools/check_source/check_spelling_c_config.py b/tools/check_source/check_spelling_c_config.py index 71d53b0a8fd..5511ace87e0 100644 --- a/tools/check_source/check_spelling_c_config.py +++ b/tools/check_source/check_spelling_c_config.py @@ -548,6 +548,7 @@ dict_custom = { "qtcreator", "unix", "valgrind", + "wayland", "xinerama", # general computer graphics terms