From b5e0b59736e5984ef9cd919a9d045f23d77a2f26 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 15 Aug 2024 20:02:06 +1000 Subject: [PATCH] Cleanup: remove space around identifiers in C-style comments --- intern/ghost/intern/GHOST_Context.hh | 2 +- intern/ghost/intern/GHOST_System.cc | 4 ++-- intern/ghost/intern/GHOST_SystemSDL.cc | 2 +- intern/guardedalloc/intern/mallocn_inline.hh | 4 ++-- source/blender/animrig/ANIM_armature_iter.hh | 4 ++-- source/blender/blenkernel/intern/nla.cc | 12 ++++++------ source/blender/blenkernel/intern/pose_backup.cc | 2 +- source/blender/blenkernel/intern/sound.cc | 4 ++-- source/blender/blenlib/intern/fftw.cc | 2 +- source/blender/blenlib/intern/math_rotation.c | 2 +- source/blender/compositor/nodes/COM_SplitNode.cc | 2 +- .../intern/ocio_color_space_conversion_shader.cc | 2 +- .../realtime_compositor/intern/context.cc | 8 ++++---- .../draw/engines/compositor/compositor_engine.cc | 2 +- source/blender/editors/animation/anim_ops.cc | 2 +- source/blender/editors/animation/keyframing.cc | 2 +- .../blender/editors/armature/armature_intern.hh | 4 ++-- .../editors/armature/editarmature_undo.cc | 4 ++-- .../blender/editors/armature/pose_transform.cc | 4 ++-- .../editors/curves/intern/curves_selection.cc | 6 +++--- .../grease_pencil/intern/grease_pencil_undo.cc | 4 ++-- .../blender/editors/include/ED_file_indexer.hh | 2 +- .../editors/include/ED_keyframes_keylist.hh | 2 +- source/blender/editors/io/io_utils.cc | 2 +- source/blender/editors/screen/screen_draw.cc | 2 +- source/blender/editors/sculpt_paint/sculpt.cc | 2 +- .../blender/editors/space_action/action_draw.cc | 2 +- .../editors/space_action/action_intern.hh | 2 +- .../blender/editors/space_console/console_ops.cc | 4 ++-- source/blender/editors/space_graph/graph_draw.cc | 2 +- .../blender/editors/space_graph/graph_intern.hh | 2 +- source/blender/editors/space_nla/nla_draw.cc | 2 +- source/blender/editors/space_nla/nla_intern.hh | 2 +- .../space_sequencer/sequencer_retiming.cc | 4 ++-- .../functions/FN_multi_function_builder.hh | 4 ++-- source/blender/gpu/vulkan/vk_pipeline_pool.cc | 2 +- source/blender/imbuf/intern/jp2.cc | 2 +- .../blender/io/usd/intern/usd_light_convert.cc | 2 +- .../blender/io/usd/intern/usd_reader_instance.cc | 2 +- .../io/usd/intern/usd_reader_pointinstancer.cc | 2 +- source/blender/makesrna/intern/rna_nodetree.cc | 2 +- .../nodes/shader/nodes/node_shader_tex_gabor.cc | 2 +- source/blender/python/generic/bgl.cc | 16 ++++++++-------- source/blender/python/intern/bpy_rna.cc | 2 +- source/blender/render/intern/compositor.cc | 2 +- source/blender/sequencer/intern/effects.cc | 6 +++--- .../blender/sequencer/intern/strip_retiming.cc | 2 +- 47 files changed, 77 insertions(+), 77 deletions(-) diff --git a/intern/ghost/intern/GHOST_Context.hh b/intern/ghost/intern/GHOST_Context.hh index 0f20a4f3384..54374bea171 100644 --- a/intern/ghost/intern/GHOST_Context.hh +++ b/intern/ghost/intern/GHOST_Context.hh @@ -168,7 +168,7 @@ class GHOST_Context : public GHOST_IContext { }; virtual GHOST_TSuccess getVulkanSwapChainFormat( - GHOST_VulkanSwapChainData * /*r_swap_chain_data */) override + GHOST_VulkanSwapChainData * /*r_swap_chain_data*/) override { return GHOST_kFailure; } diff --git a/intern/ghost/intern/GHOST_System.cc b/intern/ghost/intern/GHOST_System.cc index 513547860d8..50a9416b525 100644 --- a/intern/ghost/intern/GHOST_System.cc +++ b/intern/ghost/intern/GHOST_System.cc @@ -343,7 +343,7 @@ GHOST_TTabletAPI GHOST_System::getTabletAPI() return m_tabletAPI; } -GHOST_TSuccess GHOST_System::getPixelAtCursor(float[3] /* r_color */) const +GHOST_TSuccess GHOST_System::getPixelAtCursor(float[3] /*r_color*/) const { return GHOST_kFailure; } @@ -432,7 +432,7 @@ GHOST_TSuccess GHOST_System::createFullScreenWindow(GHOST_Window **window, settings.yPixels, GHOST_kWindowStateNormal, gpuSettings, - true /* exclusive */); + true /*exclusive*/); return (*window == nullptr) ? GHOST_kFailure : GHOST_kSuccess; } diff --git a/intern/ghost/intern/GHOST_SystemSDL.cc b/intern/ghost/intern/GHOST_SystemSDL.cc index 70cb89b4505..4d1758298d5 100644 --- a/intern/ghost/intern/GHOST_SystemSDL.cc +++ b/intern/ghost/intern/GHOST_SystemSDL.cc @@ -46,7 +46,7 @@ GHOST_IWindow *GHOST_SystemSDL::createWindow(const char *title, GHOST_TWindowState state, GHOST_GPUSettings gpuSettings, const bool exclusive, - const bool /* is_dialog */, + const bool /*is_dialog*/, const GHOST_IWindow *parentWindow) { GHOST_WindowSDL *window = nullptr; diff --git a/intern/guardedalloc/intern/mallocn_inline.hh b/intern/guardedalloc/intern/mallocn_inline.hh index 5c80c29cbe7..cb4644d6fd9 100644 --- a/intern/guardedalloc/intern/mallocn_inline.hh +++ b/intern/guardedalloc/intern/mallocn_inline.hh @@ -79,8 +79,8 @@ MEM_INLINE void MEM_trigger_error_on_memory_block(const void *address, const siz ASAN_UNPOISON_MEMORY_REGION(address, size); } #else -MEM_INLINE void MEM_trigger_error_on_memory_block(const void * /* address */, - const size_t /* size */) +MEM_INLINE void MEM_trigger_error_on_memory_block(const void * /*address*/, + const size_t /*size*/) { # ifdef WITH_ASSERT_ABORT abort(); diff --git a/source/blender/animrig/ANIM_armature_iter.hh b/source/blender/animrig/ANIM_armature_iter.hh index 53288c11388..8fa1a7fc9b2 100644 --- a/source/blender/animrig/ANIM_armature_iter.hh +++ b/source/blender/animrig/ANIM_armature_iter.hh @@ -28,7 +28,7 @@ namespace blender::animrig { * loop should continue or stop. */ template -static void ANIM_armature_foreach_bone(ListBase /* Bone */ *bones, CB callback) +static void ANIM_armature_foreach_bone(ListBase /*Bone*/ *bones, CB callback) { for (Bone *bone : blender::ListBaseWrapper(bones)) { callback(bone); @@ -45,7 +45,7 @@ static void ANIM_armature_foreach_bone(ListBase /* Bone */ *bones, CB callback) * loop should continue or stop. */ template -static void ANIM_armature_foreach_bone(const ListBase /* Bone */ *bones, CB callback) +static void ANIM_armature_foreach_bone(const ListBase /*Bone*/ *bones, CB callback) { for (const Bone *bone : blender::ConstListBaseWrapper(bones)) { callback(bone); diff --git a/source/blender/blenkernel/intern/nla.cc b/source/blender/blenkernel/intern/nla.cc index 092517f43ed..d049ebf1c10 100644 --- a/source/blender/blenkernel/intern/nla.cc +++ b/source/blender/blenkernel/intern/nla.cc @@ -54,7 +54,7 @@ static CLG_LogRef LOG = {"bke.nla"}; * * The active strip may or may not be on the active track. */ -static void nla_tweakmode_find_active(const ListBase /* NlaTrack */ *nla_tracks, +static void nla_tweakmode_find_active(const ListBase /*NlaTrack*/ *nla_tracks, NlaTrack **r_track_of_active_strip, NlaStrip **r_active_strip); @@ -237,8 +237,8 @@ void BKE_nla_tracks_copy(Main *bmain, ListBase *dst, const ListBase *src, const * index from `strips_dest`. */ static NlaStrip *find_active_strip_from_listbase(const NlaStrip *active_strip, - const ListBase /* NlaStrip */ *strips_source, - const ListBase /* NlaStrip */ *strips_dest) + const ListBase /*NlaStrip*/ *strips_source, + const ListBase /*NlaStrip*/ *strips_dest) { BLI_assert_msg(BLI_listbase_count(strips_source) == BLI_listbase_count(strips_dest), "Expecting the same number of source and destination strips"); @@ -1332,7 +1332,7 @@ bool BKE_nlatrack_is_nonlocal_in_liboverride(const ID *id, const NlaTrack *nlt) /* NLA Strips -------------------------------------- */ -static NlaStrip *nlastrip_find_active(ListBase /* NlaStrip */ *strips) +static NlaStrip *nlastrip_find_active(ListBase /*NlaStrip*/ *strips) { LISTBASE_FOREACH (NlaStrip *, strip, strips) { if (strip->flag & NLASTRIP_FLAG_ACTIVE) { @@ -1455,7 +1455,7 @@ void BKE_nlastrip_set_active(AnimData *adt, NlaStrip *strip) } } -static NlaStrip *nlastrip_find_by_name(ListBase /* NlaStrip */ *strips, const char *name) +static NlaStrip *nlastrip_find_by_name(ListBase /*NlaStrip*/ *strips, const char *name) { LISTBASE_FOREACH (NlaStrip *, strip, strips) { if (STREQ(strip->name, name)) { @@ -2191,7 +2191,7 @@ void BKE_nla_action_pushdown(AnimData *adt, const bool is_liboverride) BKE_nlastrip_set_active(adt, strip); } -static void nla_tweakmode_find_active(const ListBase /* NlaTrack */ *nla_tracks, +static void nla_tweakmode_find_active(const ListBase /*NlaTrack*/ *nla_tracks, NlaTrack **r_track_of_active_strip, NlaStrip **r_active_strip) { diff --git a/source/blender/blenkernel/intern/pose_backup.cc b/source/blender/blenkernel/intern/pose_backup.cc index a0c3d33d051..46363cb66d4 100644 --- a/source/blender/blenkernel/intern/pose_backup.cc +++ b/source/blender/blenkernel/intern/pose_backup.cc @@ -38,7 +38,7 @@ struct PoseChannelBackup { struct PoseBackup { bool is_bone_selection_relevant; - ListBase /* PoseChannelBackup* */ backups; + ListBase /*PoseChannelBackup*/ backups; }; /** diff --git a/source/blender/blenkernel/intern/sound.cc b/source/blender/blenkernel/intern/sound.cc index f6e581fb208..670af75414f 100644 --- a/source/blender/blenkernel/intern/sound.cc +++ b/source/blender/blenkernel/intern/sound.cc @@ -1410,13 +1410,13 @@ void BKE_sound_update_scene_sound(void * /*handle*/, bSound * /*sound*/) {} void BKE_sound_update_scene_listener(Scene * /*scene*/) {} void BKE_sound_update_fps(Main * /*bmain*/, Scene * /*scene*/) {} void BKE_sound_set_scene_sound_volume_at_frame(void * /*handle*/, - int /* frame */, + int /*frame*/, float /*volume*/, char /*animated*/) { } void BKE_sound_set_scene_sound_pan_at_frame(void * /*handle*/, - int /* frame */, + int /*frame*/, float /*pan*/, char /*animated*/) { diff --git a/source/blender/blenlib/intern/fftw.cc b/source/blender/blenlib/intern/fftw.cc index be0805ab82f..aaba07089b9 100644 --- a/source/blender/blenlib/intern/fftw.cc +++ b/source/blender/blenlib/intern/fftw.cc @@ -72,7 +72,7 @@ int2 optimal_size_for_real_transform(int2 size) char *job_data, size_t element_size, int number_of_jobs, - void * /* data */) + void * /*data*/) { threading::parallel_for(IndexRange(number_of_jobs), 1, [&](const IndexRange sub_range) { for (const int64_t i : sub_range) { diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c index 0344373c3fc..dee3039d962 100644 --- a/source/blender/blenlib/intern/math_rotation.c +++ b/source/blender/blenlib/intern/math_rotation.c @@ -371,7 +371,7 @@ void mat3_normalized_to_quat_fast(float q[4], const float mat[3][3]) * BLI_ASSERT_UNIT_QUAT(), so it's likely that even after a few more * transformations the quaternion will still be considered unit-ish. */ const float q_len_squared = dot_qtqt(q, q); - const float threshold = 0.0002f /* BLI_ASSERT_UNIT_EPSILON */ * 3; + const float threshold = 0.0002f /* #BLI_ASSERT_UNIT_EPSILON */ * 3; if (fabs(q_len_squared - 1.0f) >= threshold) { normalize_qt(q); } diff --git a/source/blender/compositor/nodes/COM_SplitNode.cc b/source/blender/compositor/nodes/COM_SplitNode.cc index dd6c81949d9..c7d61e896c2 100644 --- a/source/blender/compositor/nodes/COM_SplitNode.cc +++ b/source/blender/compositor/nodes/COM_SplitNode.cc @@ -14,7 +14,7 @@ SplitNode::SplitNode(bNode *editor_node) : Node(editor_node) } void SplitNode::convert_to_operations(NodeConverter &converter, - const CompositorContext & /* context */) const + const CompositorContext & /*context*/) const { const bNode *node = this->get_bnode(); diff --git a/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc b/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc index e828e9c8869..56df17b9366 100644 --- a/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc +++ b/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc @@ -450,7 +450,7 @@ class GPUShaderCreator : public OCIO::GpuShaderCreator { /* A stub implementation in case OCIO is disabled at build time. */ class GPUShaderCreator { public: - static std::shared_ptr Create(ResultPrecision /* precision */) + static std::shared_ptr Create(ResultPrecision /*precision*/) { return std::make_shared(); } diff --git a/source/blender/compositor/realtime_compositor/intern/context.cc b/source/blender/compositor/realtime_compositor/intern/context.cc index 11279d950d9..496b13fef2a 100644 --- a/source/blender/compositor/realtime_compositor/intern/context.cc +++ b/source/blender/compositor/realtime_compositor/intern/context.cc @@ -22,10 +22,10 @@ namespace blender::realtime_compositor { Context::Context(TexturePool &texture_pool) : texture_pool_(texture_pool) {} -void Context::populate_meta_data_for_pass(const Scene * /* scene*/, - int /* view_layer_id */, - const char * /* pass_name */, - MetaData & /* meta_data */) const +void Context::populate_meta_data_for_pass(const Scene * /*scene*/, + int /*view_layer_id*/, + const char * /*pass_name*/, + MetaData & /*meta_data*/) const { } diff --git a/source/blender/draw/engines/compositor/compositor_engine.cc b/source/blender/draw/engines/compositor/compositor_engine.cc index 5dca7ca894c..8875f735b1e 100644 --- a/source/blender/draw/engines/compositor/compositor_engine.cc +++ b/source/blender/draw/engines/compositor/compositor_engine.cc @@ -138,7 +138,7 @@ class Context : public realtime_compositor::Context { return DRW_viewport_texture_list_get()->color; } - GPUTexture *get_viewer_output_texture(realtime_compositor::Domain /* domain */, + GPUTexture *get_viewer_output_texture(realtime_compositor::Domain /*domain*/, bool /*is_data*/) override { return DRW_viewport_texture_list_get()->color; diff --git a/source/blender/editors/animation/anim_ops.cc b/source/blender/editors/animation/anim_ops.cc index d175e0f2b3a..c30d6ef8513 100644 --- a/source/blender/editors/animation/anim_ops.cc +++ b/source/blender/editors/animation/anim_ops.cc @@ -761,7 +761,7 @@ static void ANIM_OT_slot_unassign_object(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -static int convert_action_exec(bContext *C, wmOperator * /* op */) +static int convert_action_exec(bContext *C, wmOperator * /*op*/) { using namespace blender; diff --git a/source/blender/editors/animation/keyframing.cc b/source/blender/editors/animation/keyframing.cc index 88178fea91b..84ab0721cef 100644 --- a/source/blender/editors/animation/keyframing.cc +++ b/source/blender/editors/animation/keyframing.cc @@ -445,7 +445,7 @@ static int insert_key_exec(bContext *C, wmOperator *op) return insert_key(C, op); } -static int insert_key_invoke(bContext *C, wmOperator *op, const wmEvent * /* event */) +static int insert_key_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/) { /* The depsgraph needs to be in an evaluated state to ensure the values we get from the * properties are actually the values of the current frame. However we cannot do that in the exec diff --git a/source/blender/editors/armature/armature_intern.hh b/source/blender/editors/armature/armature_intern.hh index 088d0d6821a..d19f1e8ea5f 100644 --- a/source/blender/editors/armature/armature_intern.hh +++ b/source/blender/editors/armature/armature_intern.hh @@ -169,9 +169,9 @@ Object *poseAnim_object_get(Object *ob_); * Build up a list of tPChanFCurveLink. First only selected, and if that yields no result, all * visible. */ -void poseAnim_mapping_get(bContext *C, ListBase /* tPChanFCurveLink */ *pfLinks); +void poseAnim_mapping_get(bContext *C, ListBase /*tPChanFCurveLink*/ *pfLinks); /** Free F-Curve <-> PoseChannel links. */ -void poseAnim_mapping_free(ListBase /* tPChanFCurveLink */ *pfLinks); +void poseAnim_mapping_free(ListBase /*tPChanFCurveLink*/ *pfLinks); /** * Helper for apply() / reset() - refresh the data. diff --git a/source/blender/editors/armature/editarmature_undo.cc b/source/blender/editors/armature/editarmature_undo.cc index a4213a3a68b..80ece1032a6 100644 --- a/source/blender/editors/armature/editarmature_undo.cc +++ b/source/blender/editors/armature/editarmature_undo.cc @@ -55,7 +55,7 @@ static CLG_LogRef LOG = {"ed.undo.armature"}; * bones and collections together. */ static void remap_ebone_bone_collection_references( - ListBase /* EditBone */ *edit_bones, + ListBase /*EditBone*/ *edit_bones, const blender::Map &bcoll_map) { LISTBASE_FOREACH (EditBone *, ebone, edit_bones) { @@ -72,7 +72,7 @@ static void remap_ebone_bone_collection_references( struct UndoArmature { EditBone *act_edbone; char active_collection_name[MAX_NAME]; - ListBase /* EditBone */ ebones; + ListBase /*EditBone*/ ebones; BoneCollection **collection_array; int collection_array_num; int collection_root_count; diff --git a/source/blender/editors/armature/pose_transform.cc b/source/blender/editors/armature/pose_transform.cc index 592f058b049..fbb498c7fcd 100644 --- a/source/blender/editors/armature/pose_transform.cc +++ b/source/blender/editors/armature/pose_transform.cc @@ -794,8 +794,8 @@ static int pose_copy_exec(bContext *C, wmOperator *op) PartialWriteContext::IDAddOptions{PartialWriteContext::IDAddOperations( PartialWriteContext::IDAddOperations::SET_FAKE_USER | PartialWriteContext::IDAddOperations::SET_CLIPBOARD_MARK)}, - [ob](LibraryIDLinkCallbackData *cb_data, PartialWriteContext::IDAddOptions /* options */) - -> PartialWriteContext::IDAddOperations { + [ob](LibraryIDLinkCallbackData *cb_data, + PartialWriteContext::IDAddOptions /*options*/) -> PartialWriteContext::IDAddOperations { /* Only include `ob->data` (i.e. the Armature) dependency. */ if (*(cb_data->id_pointer) == ob->data) { return PartialWriteContext::IDAddOperations::ADD_DEPENDENCIES; diff --git a/source/blender/editors/curves/intern/curves_selection.cc b/source/blender/editors/curves/intern/curves_selection.cc index bf4e3304e02..7e72a375b7c 100644 --- a/source/blender/editors/curves/intern/curves_selection.cc +++ b/source/blender/editors/curves/intern/curves_selection.cc @@ -944,7 +944,7 @@ bool select_box(const ViewContext &vc, deformation, [&](const IndexRange range, const Span positions, - StringRef /* selection_attribute_name */) { + StringRef /*selection_attribute_name*/) { mask.slice_content(range).foreach_index(GrainSize(512), [&](const int curve_i) { const IndexRange points = points_by_curve[curve_i]; if (points.size() == 1) { @@ -1043,7 +1043,7 @@ bool select_lasso(const ViewContext &vc, deformation, [&](const IndexRange range, const Span positions, - StringRef /* selection_attribute_name */) { + StringRef /*selection_attribute_name*/) { mask.slice_content(range).foreach_index(GrainSize(512), [&](const int curve_i) { const IndexRange points = points_by_curve[curve_i]; if (points.size() == 1) { @@ -1152,7 +1152,7 @@ bool select_circle(const ViewContext &vc, deformation, [&](const IndexRange range, const Span positions, - StringRef /* selection_attribute_name */) { + StringRef /*selection_attribute_name*/) { mask.slice_content(range).foreach_index(GrainSize(512), [&](const int curve_i) { const IndexRange points = points_by_curve[curve_i]; if (points.size() == 1) { diff --git a/source/blender/editors/grease_pencil/intern/grease_pencil_undo.cc b/source/blender/editors/grease_pencil/intern/grease_pencil_undo.cc index d6eecae9f84..c13391ceade 100644 --- a/source/blender/editors/grease_pencil/intern/grease_pencil_undo.cc +++ b/source/blender/editors/grease_pencil/intern/grease_pencil_undo.cc @@ -124,7 +124,7 @@ class StepDrawingGeometry : public StepDrawingGeometryBase { public: void encode(const GreasePencilDrawing &drawing_geometry, const int64_t drawing_index, - StepEncodeStatus & /* encode_status */) + StepEncodeStatus & /*encode_status*/) { BLI_assert(drawing_index >= 0 && drawing_index < INT32_MAX); index_ = int(drawing_index); @@ -159,7 +159,7 @@ class StepDrawingReference : public StepDrawingGeometryBase { public: void encode(const GreasePencilDrawingReference &drawing_reference, const int64_t drawing_index, - StepEncodeStatus & /* encode_status */) + StepEncodeStatus & /*encode_status*/) { BLI_assert(drawing_index >= 0 && drawing_index < INT32_MAX); index_ = int(drawing_index); diff --git a/source/blender/editors/include/ED_file_indexer.hh b/source/blender/editors/include/ED_file_indexer.hh index 46ad628d927..a49acd0d424 100644 --- a/source/blender/editors/include/ED_file_indexer.hh +++ b/source/blender/editors/include/ED_file_indexer.hh @@ -51,7 +51,7 @@ struct FileIndexerEntry { * Contains all entries of a blend file. */ struct FileIndexerEntries { - LinkNode /* FileIndexerEntry */ *entries; + LinkNode /*FileIndexerEntry*/ *entries; }; using FileIndexerInitUserDataFunc = void *(*)(const char *root_directory, diff --git a/source/blender/editors/include/ED_keyframes_keylist.hh b/source/blender/editors/include/ED_keyframes_keylist.hh index 25ea67785f2..f0b7840c50c 100644 --- a/source/blender/editors/include/ED_keyframes_keylist.hh +++ b/source/blender/editors/include/ED_keyframes_keylist.hh @@ -143,7 +143,7 @@ const ActKeyColumn *ED_keylist_find_prev(const AnimKeylist *keylist, float cfra) const ActKeyColumn *ED_keylist_find_any_between(const AnimKeylist *keylist, const Range2f frame_range); bool ED_keylist_is_empty(const AnimKeylist *keylist); -const ListBase /* ActKeyColumn */ *ED_keylist_listbase(const AnimKeylist *keylist); +const ListBase /*ActKeyColumn*/ *ED_keylist_listbase(const AnimKeylist *keylist); bool ED_keylist_all_keys_frame_range(const AnimKeylist *keylist, Range2f *r_frame_range); /** * Return the selected key-frame's range. If none are selected, return False and diff --git a/source/blender/editors/io/io_utils.cc b/source/blender/editors/io/io_utils.cc index 843e6477e5f..517d1bcee77 100644 --- a/source/blender/editors/io/io_utils.cc +++ b/source/blender/editors/io/io_utils.cc @@ -22,7 +22,7 @@ namespace blender::ed::io { -int filesel_drop_import_invoke(bContext *C, wmOperator *op, const wmEvent * /* event */) +int filesel_drop_import_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/) { PropertyRNA *filepath_prop = RNA_struct_find_property(op->ptr, "filepath"); diff --git a/source/blender/editors/screen/screen_draw.cc b/source/blender/editors/screen/screen_draw.cc index 5fd64664dbe..e77e82f949c 100644 --- a/source/blender/editors/screen/screen_draw.cc +++ b/source/blender/editors/screen/screen_draw.cc @@ -370,7 +370,7 @@ void screen_draw_join_highlight(ScrArea *sa1, ScrArea *sa2, eScreenDir dir) screen_draw_area_icon(&sa2new, ED_area_icon(sa1), icon_color, bg_color); } -void screen_draw_dock_preview(const wmWindow * /* win */, +void screen_draw_dock_preview(const wmWindow * /*win*/, ScrArea *source, ScrArea *target, AreaDockTarget dock_target) diff --git a/source/blender/editors/sculpt_paint/sculpt.cc b/source/blender/editors/sculpt_paint/sculpt.cc index e6dc8a9a9f2..4537b23a693 100644 --- a/source/blender/editors/sculpt_paint/sculpt.cc +++ b/source/blender/editors/sculpt_paint/sculpt.cc @@ -549,7 +549,7 @@ bool vert_has_unique_face_set(const GroupedSpan vert_to_face_map, return true; } -bool vert_has_unique_face_set(const BMVert * /* vert */) +bool vert_has_unique_face_set(const BMVert * /*vert*/) { /* TODO: Obviously not fully implemented yet. Needs to be implemented for Relax Face Sets brush * to work. */ diff --git a/source/blender/editors/space_action/action_draw.cc b/source/blender/editors/space_action/action_draw.cc index d4148246dad..7a221bb87eb 100644 --- a/source/blender/editors/space_action/action_draw.cc +++ b/source/blender/editors/space_action/action_draw.cc @@ -56,7 +56,7 @@ using namespace blender; void draw_channel_names(bContext *C, bAnimContext *ac, ARegion *region, - const ListBase /* bAnimListElem */ &anim_data) + const ListBase /*bAnimListElem*/ &anim_data) { bAnimListElem *ale; View2D *v2d = ®ion->v2d; diff --git a/source/blender/editors/space_action/action_intern.hh b/source/blender/editors/space_action/action_intern.hh index 915b7d068b4..409e5c88b2e 100644 --- a/source/blender/editors/space_action/action_intern.hh +++ b/source/blender/editors/space_action/action_intern.hh @@ -33,7 +33,7 @@ void action_buttons_register(ARegionType *art); void draw_channel_names(bContext *C, bAnimContext *ac, ARegion *region, - const ListBase /* bAnimListElem */ &anim_data); + const ListBase /*bAnimListElem*/ &anim_data); /** * Draw keyframes in each channel. */ diff --git a/source/blender/editors/space_console/console_ops.cc b/source/blender/editors/space_console/console_ops.cc index 752d0966299..a2c8817c1d0 100644 --- a/source/blender/editors/space_console/console_ops.cc +++ b/source/blender/editors/space_console/console_ops.cc @@ -1378,8 +1378,8 @@ void CONSOLE_OT_select_set(wmOperatorType *ot) } static int console_modal_select_all_invoke(bContext *C, - wmOperator * /* op */, - const wmEvent * /* event */) + wmOperator * /*op*/, + const wmEvent * /*event*/) { ScrArea *area = CTX_wm_area(C); SpaceConsole *sc = CTX_wm_space_console(C); diff --git a/source/blender/editors/space_graph/graph_draw.cc b/source/blender/editors/space_graph/graph_draw.cc index 87b5389ac43..f95f61276db 100644 --- a/source/blender/editors/space_graph/graph_draw.cc +++ b/source/blender/editors/space_graph/graph_draw.cc @@ -1521,7 +1521,7 @@ void graph_draw_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *region, shor void graph_draw_channel_names(bContext *C, bAnimContext *ac, ARegion *region, - const ListBase /* bAnimListElem */ &anim_data) + const ListBase /*bAnimListElem*/ &anim_data) { bAnimListElem *ale; diff --git a/source/blender/editors/space_graph/graph_intern.hh b/source/blender/editors/space_graph/graph_intern.hh index 47d99ae18c1..72bf12c247c 100644 --- a/source/blender/editors/space_graph/graph_intern.hh +++ b/source/blender/editors/space_graph/graph_intern.hh @@ -26,7 +26,7 @@ struct bContext; void graph_draw_channel_names(bContext *C, bAnimContext *ac, ARegion *region, - const ListBase /* bAnimListElem */ &anim_data); + const ListBase /*bAnimListElem*/ &anim_data); /** * This is called twice from `space_graph.cc`, #graph_main_region_draw() diff --git a/source/blender/editors/space_nla/nla_draw.cc b/source/blender/editors/space_nla/nla_draw.cc index 45a35921b97..9839c7d50da 100644 --- a/source/blender/editors/space_nla/nla_draw.cc +++ b/source/blender/editors/space_nla/nla_draw.cc @@ -966,7 +966,7 @@ void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region) void draw_nla_track_list(const bContext *C, bAnimContext *ac, ARegion *region, - const ListBase /* bAnimListElem */ &anim_data) + const ListBase /*bAnimListElem*/ &anim_data) { SpaceNla *snla = reinterpret_cast(ac->sl); diff --git a/source/blender/editors/space_nla/nla_intern.hh b/source/blender/editors/space_nla/nla_intern.hh index f1dae05c913..890bbcc7ccc 100644 --- a/source/blender/editors/space_nla/nla_intern.hh +++ b/source/blender/editors/space_nla/nla_intern.hh @@ -30,7 +30,7 @@ void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region); void draw_nla_track_list(const bContext *C, bAnimContext *ac, ARegion *region, - const ListBase /* bAnimListElem */ &anim_data); + const ListBase /*bAnimListElem*/ &anim_data); /* **************************************** */ /* `nla_select.cc` */ diff --git a/source/blender/editors/space_sequencer/sequencer_retiming.cc b/source/blender/editors/space_sequencer/sequencer_retiming.cc index 5810eaea43b..f20b35eae27 100644 --- a/source/blender/editors/space_sequencer/sequencer_retiming.cc +++ b/source/blender/editors/space_sequencer/sequencer_retiming.cc @@ -85,7 +85,7 @@ static void sequencer_retiming_data_hide_all(ListBase *seqbase) } } -static int sequencer_retiming_data_show_exec(bContext *C, wmOperator * /* op */) +static int sequencer_retiming_data_show_exec(bContext *C, wmOperator * /*op*/) { Scene *scene = CTX_data_scene(C); Editing *ed = SEQ_editing_get(scene); @@ -610,7 +610,7 @@ static SeqRetimingKey *ensure_left_and_right_keys(const bContext *C, Sequence *s } /* Return speed of existing segment or strip. Assume 1 element is selected. */ -static float strip_speed_get(bContext *C, const wmOperator * /* op */) +static float strip_speed_get(bContext *C, const wmOperator * /*op*/) { /* Strip mode. */ if (!sequencer_retiming_mode_is_active(C)) { diff --git a/source/blender/functions/FN_multi_function_builder.hh b/source/blender/functions/FN_multi_function_builder.hh index e94e5ca09aa..55bd64bb660 100644 --- a/source/blender/functions/FN_multi_function_builder.hh +++ b/source/blender/functions/FN_multi_function_builder.hh @@ -136,8 +136,8 @@ execute_array(TypeSequence /*param_tags*/, std::index_sequence /*indices*/, ElementFn element_fn, MaskT mask, - /* Use restrict to tell the compiler that pointer inputs do not alias each - * other. This is important for some compiler optimizations. */ + /* Use restrict to tell the compiler that pointer inputs do not alias + * each other. This is important for some compiler optimizations. */ Args &&__restrict... args) { if constexpr (std::is_same_v, IndexRange>) { diff --git a/source/blender/gpu/vulkan/vk_pipeline_pool.cc b/source/blender/gpu/vulkan/vk_pipeline_pool.cc index a51a699993d..13c566a1389 100644 --- a/source/blender/gpu/vulkan/vk_pipeline_pool.cc +++ b/source/blender/gpu/vulkan/vk_pipeline_pool.cc @@ -14,7 +14,7 @@ namespace blender::gpu { VKPipelinePool::VKPipelinePool() { - /* Initialize VkComputePipelineCreateInfo*/ + /* Initialize VkComputePipelineCreateInfo */ vk_compute_pipeline_create_info_.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO; vk_compute_pipeline_create_info_.pNext = nullptr; vk_compute_pipeline_create_info_.flags = 0; diff --git a/source/blender/imbuf/intern/jp2.cc b/source/blender/imbuf/intern/jp2.cc index 93a8101a8b6..081b888fa51 100644 --- a/source/blender/imbuf/intern/jp2.cc +++ b/source/blender/imbuf/intern/jp2.cc @@ -443,7 +443,7 @@ static ImBuf *imb_load_jp2_stream(opj_stream_t *stream, } ibuf->ftype = IMB_FTYPE_JP2; - if (true /* is_jp2 */) { + if (true /*is_jp2*/) { ibuf->foptions.flag |= JP2_JP2; } else { diff --git a/source/blender/io/usd/intern/usd_light_convert.cc b/source/blender/io/usd/intern/usd_light_convert.cc index 0512a3ecd39..fe9318ec8fe 100644 --- a/source/blender/io/usd/intern/usd_light_convert.cc +++ b/source/blender/io/usd/intern/usd_light_convert.cc @@ -204,7 +204,7 @@ static bNode *append_node(bNode *dst_node, * handles copying textures, if required. */ static bool node_search(bNode *fromnode, - bNode * /* tonode */, + bNode * /*tonode*/, void *userdata, const bool /*reversed*/) { diff --git a/source/blender/io/usd/intern/usd_reader_instance.cc b/source/blender/io/usd/intern/usd_reader_instance.cc index 317664f441d..2e86b0e31db 100644 --- a/source/blender/io/usd/intern/usd_reader_instance.cc +++ b/source/blender/io/usd/intern/usd_reader_instance.cc @@ -24,7 +24,7 @@ bool USDInstanceReader::valid() const return prim_.IsValid() && prim_.IsInstance(); } -void USDInstanceReader::create_object(Main *bmain, const double /* motionSampleTime */) +void USDInstanceReader::create_object(Main *bmain, const double /*motionSampleTime*/) { this->object_ = BKE_object_add_only_object(bmain, OB_EMPTY, name_.c_str()); this->object_->data = nullptr; diff --git a/source/blender/io/usd/intern/usd_reader_pointinstancer.cc b/source/blender/io/usd/intern/usd_reader_pointinstancer.cc index 6891a5d3e78..75904fbf380 100644 --- a/source/blender/io/usd/intern/usd_reader_pointinstancer.cc +++ b/source/blender/io/usd/intern/usd_reader_pointinstancer.cc @@ -48,7 +48,7 @@ bool USDPointInstancerReader::valid() const return prim_.IsValid() && prim_.IsA(); } -void USDPointInstancerReader::create_object(Main *bmain, const double /* motionSampleTime */) +void USDPointInstancerReader::create_object(Main *bmain, const double /*motionSampleTime*/) { void *point_cloud = BKE_pointcloud_add(bmain, name_.c_str()); this->object_ = BKE_object_add_only_object(bmain, OB_POINTCLOUD, name_.c_str()); diff --git a/source/blender/makesrna/intern/rna_nodetree.cc b/source/blender/makesrna/intern/rna_nodetree.cc index 70451916a5d..250e9c65b74 100644 --- a/source/blender/makesrna/intern/rna_nodetree.cc +++ b/source/blender/makesrna/intern/rna_nodetree.cc @@ -3264,7 +3264,7 @@ static void rna_NodeCryptomatte_layer_name_set(PointerRNA *ptr, int new_value) } } -static const EnumPropertyItem *rna_NodeCryptomatte_layer_name_itemf(bContext * /* C */, +static const EnumPropertyItem *rna_NodeCryptomatte_layer_name_itemf(bContext * /*C*/, PointerRNA *ptr, PropertyRNA * /*prop*/, bool *r_free) diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_gabor.cc b/source/blender/nodes/shader/nodes/node_shader_tex_gabor.cc index f0b8ec3d91e..fd10d285390 100644 --- a/source/blender/nodes/shader/nodes/node_shader_tex_gabor.cc +++ b/source/blender/nodes/shader/nodes/node_shader_tex_gabor.cc @@ -89,7 +89,7 @@ static void node_shader_update_tex_gabor(bNodeTree *ntree, bNode *node) static int node_shader_gpu_tex_gabor(GPUMaterial *material, bNode *node, - bNodeExecData * /* execdata */, + bNodeExecData * /*execdata*/, GPUNodeStack *in, GPUNodeStack *out) { diff --git a/source/blender/python/generic/bgl.cc b/source/blender/python/generic/bgl.cc index bca6e849144..5ad129fe747 100644 --- a/source/blender/python/generic/bgl.cc +++ b/source/blender/python/generic/bgl.cc @@ -206,19 +206,19 @@ struct BufferOrOffset { #define GLenum_str "i" #define GLenum_var(num) bgl_var##num #define GLenum_ref(num) &bgl_var##num -#define GLenum_def(num) /* unsigned */ int GLenum_var(num) +#define GLenum_def(num) /*unsigned*/ int GLenum_var(num) /* Type: `typedef uint GLboolean`. */ #define GLboolean_str "b" #define GLboolean_var(num) bgl_var##num #define GLboolean_ref(num) &bgl_var##num -#define GLboolean_def(num) /* unsigned */ char GLboolean_var(num) +#define GLboolean_def(num) /*unsigned*/ char GLboolean_var(num) /* Type: `typedef uint GLbitfield`. */ #define GLbitfield_str "i" #define GLbitfield_var(num) bgl_var##num #define GLbitfield_ref(num) &bgl_var##num -#define GLbitfield_def(num) /* unsigned */ int GLbitfield_var(num) +#define GLbitfield_def(num) /*unsigned*/ int GLbitfield_var(num) #if 0 /* Type: `typedef signed char GLbyte`. */ @@ -262,28 +262,28 @@ struct BufferOrOffset { #define GLubyte_str "B" #define GLubyte_var(num) bgl_var##num #define GLubyte_ref(num) &bgl_var##num -#define GLubyte_def(num) /* unsigned */ char GLubyte_var(num) +#define GLubyte_def(num) /*unsigned*/ char GLubyte_var(num) #if 0 /* Type: `typedef ushort GLushort`. */ # define GLushort_str "H" # define GLushort_var(num) bgl_var##num # define GLushort_ref(num) &bgl_var##num -# define GLushort_def(num) /* unsigned */ short GLushort_var(num) +# define GLushort_def(num) /*unsigned*/ short GLushort_var(num) #endif /* Type: `typedef uint GLuint`. */ #define GLuint_str "I" #define GLuint_var(num) bgl_var##num #define GLuint_ref(num) &bgl_var##num -#define GLuint_def(num) /* unsigned */ int GLuint_var(num) +#define GLuint_def(num) /*unsigned*/ int GLuint_var(num) /* Type: `typedef uint GLuint64`. */ #if 0 # define GLuint64_str "Q" # define GLuint64_var(num) bgl_var##num # define GLuint64_ref(num) &bgl_var##num -# define GLuint64_def(num) /* unsigned */ int GLuint64_var(num) +# define GLuint64_def(num) /*unsigned*/ int GLuint64_var(num) #endif /* Type: `typedef uint GLsync`. */ @@ -291,7 +291,7 @@ struct BufferOrOffset { # define GLsync_str "I" # define GLsync_var(num) bgl_var##num # define GLsync_ref(num) &bgl_var##num -# define GLsync_def(num) /* unsigned */ int GLsync_var(num) +# define GLsync_def(num) /*unsigned*/ int GLsync_var(num) #endif /* Type: `typedef float GLfloat`. */ diff --git a/source/blender/python/intern/bpy_rna.cc b/source/blender/python/intern/bpy_rna.cc index c4250d70f2d..dc281e2d0b1 100644 --- a/source/blender/python/intern/bpy_rna.cc +++ b/source/blender/python/intern/bpy_rna.cc @@ -6872,7 +6872,7 @@ PyTypeObject pyrna_struct_Type = { /*tp_basicsize*/ sizeof(BPy_StructRNA), /*tp_itemsize*/ 0, /*tp_dealloc*/ (destructor)pyrna_struct_dealloc, - /*tp_vectorcall_offset */ 0, + /*tp_vectorcall_offset*/ 0, /*tp_getattr*/ nullptr, /*tp_setattr*/ nullptr, /*tp_as_async*/ nullptr, diff --git a/source/blender/render/intern/compositor.cc b/source/blender/render/intern/compositor.cc index c41b543ac34..8f7bfc0bf5b 100644 --- a/source/blender/render/intern/compositor.cc +++ b/source/blender/render/intern/compositor.cc @@ -416,7 +416,7 @@ class Context : public realtime_compositor::Context { BKE_stamp_info_callback( &callback_data, render_result->stamp_data, - [](void *user_data, const char *key, char *value, int /* value_length */) { + [](void *user_data, const char *key, char *value, int /*value_length*/) { StampCallbackData *data = static_cast(user_data); const std::string manifest_key = bke::cryptomatte::BKE_cryptomatte_meta_data_key( diff --git a/source/blender/sequencer/intern/effects.cc b/source/blender/sequencer/intern/effects.cc index 42b4a293d19..9c830c09223 100644 --- a/source/blender/sequencer/intern/effects.cc +++ b/source/blender/sequencer/intern/effects.cc @@ -3130,9 +3130,9 @@ static ImBuf *do_text_effect(const SeqRenderData *context, Sequence *seq, float /*timeline_frame*/, float /*fac*/, - ImBuf * /* ibuf1*/, - ImBuf * /* ibuf2*/, - ImBuf * /* ibuf3*/) + ImBuf * /*ibuf1*/, + ImBuf * /*ibuf2*/, + ImBuf * /*ibuf3*/) { /* NOTE: text rasterization only fills in part of output image, * need to clear it. */ diff --git a/source/blender/sequencer/intern/strip_retiming.cc b/source/blender/sequencer/intern/strip_retiming.cc index ee0a738eb7a..4ae2f101d50 100644 --- a/source/blender/sequencer/intern/strip_retiming.cc +++ b/source/blender/sequencer/intern/strip_retiming.cc @@ -349,7 +349,7 @@ SeqRetimingKey *SEQ_retiming_add_key(const Scene *scene, Sequence *seq, const in return added_key; } -void SEQ_retiming_transition_key_frame_set(const Scene * /*scene */, +void SEQ_retiming_transition_key_frame_set(const Scene * /*scene*/, const Sequence *seq, SeqRetimingKey *key, const int timeline_frame)