From 52acf6a6ec902768e48a58a5739053c3f080850f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 31 Jul 2023 11:50:54 +1000 Subject: [PATCH] Cleanup: correct file names in comments after C -> C++ renaming Use back-tick quotes to differentiate these from plain text. --- scripts/modules/bpy_types.py | 4 +- source/blender/blenfont/BLF_api.h | 6 +- source/blender/blenfont/intern/blf_internal.h | 2 +- source/blender/blenkernel/BKE_action.h | 2 +- source/blender/blenkernel/BKE_armature.h | 4 +- source/blender/blenkernel/BKE_callbacks.h | 2 +- source/blender/blenkernel/BKE_crazyspace.h | 2 +- source/blender/blenkernel/BKE_curve.h | 6 +- source/blender/blenkernel/BKE_customdata.h | 2 +- source/blender/blenkernel/BKE_effect.h | 2 +- source/blender/blenkernel/BKE_fcurve.h | 2 +- source/blender/blenkernel/BKE_global.h | 2 +- source/blender/blenkernel/BKE_image.h | 2 +- source/blender/blenkernel/BKE_ipo.h | 2 +- source/blender/blenkernel/BKE_lattice.h | 2 +- source/blender/blenkernel/BKE_layer.h | 2 +- source/blender/blenkernel/BKE_lib_id.h | 8 +- source/blender/blenkernel/BKE_lib_remap.h | 2 +- source/blender/blenkernel/BKE_mask.h | 6 +- source/blender/blenkernel/BKE_mesh.h | 4 +- .../blenkernel/BKE_mesh_legacy_convert.h | 2 +- source/blender/blenkernel/BKE_ocean.h | 2 +- source/blender/blenkernel/BKE_particle.h | 4 +- source/blender/blenkernel/BKE_pbvh.h | 7 +- source/blender/blenkernel/BKE_text.h | 2 +- source/blender/blenkernel/BKE_unit.h | 2 +- .../blenkernel/intern/CCGSubSurf_intern.h | 4 +- .../blender/blenkernel/intern/action_test.cc | 2 +- source/blender/blenkernel/intern/anim_sys.cc | 2 +- source/blender/blenkernel/intern/bvhutils.cc | 4 +- .../blender/blenkernel/intern/collection.cc | 2 +- .../blender/blenkernel/intern/colortools.cc | 2 +- .../blender/blenkernel/intern/constraint.cc | 5 +- .../blender/blenkernel/intern/curveprofile.cc | 2 +- .../blender/blenkernel/intern/customdata.cc | 6 +- .../blenkernel/intern/data_transfer_intern.h | 2 +- .../blender/blenkernel/intern/editmesh_bvh.cc | 2 +- .../blenkernel/intern/gpencil_geom_legacy.cc | 2 +- .../intern/gpencil_modifier_legacy.cc | 2 +- source/blender/blenkernel/intern/image_gen.cc | 2 +- .../blenkernel/intern/mesh_legacy_convert.cc | 2 +- .../blender/blenkernel/intern/mesh_normals.cc | 2 +- .../blenkernel/intern/mesh_tessellate.cc | 2 +- source/blender/blenkernel/intern/modifier.cc | 2 +- source/blender/blenkernel/intern/node.cc | 2 +- source/blender/blenkernel/intern/shader_fx.cc | 2 +- .../blenkernel/intern/tracking_auto.cc | 3 +- source/blender/blenlib/BLI_fileops.h | 2 +- source/blender/blenlib/BLI_mesh_boolean.hh | 3 +- source/blender/blenlib/BLI_rand.h | 2 +- .../blenlib/intern/polyfill_2d_beautify.c | 3 +- source/blender/blenlib/intern/rand.cc | 2 +- source/blender/blenlib/intern/string_utils.c | 2 +- source/blender/blenloader/BLO_read_write.h | 2 +- source/blender/blenloader/BLO_undofile.h | 2 +- source/blender/blenloader/BLO_writefile.h | 2 +- .../blenloader/intern/versioning_250.cc | 6 +- .../blenloader/intern/versioning_260.cc | 2 +- .../blenloader/intern/versioning_270.cc | 2 +- .../blenloader/intern/versioning_280.cc | 12 +-- .../blenloader/intern/versioning_290.cc | 10 +-- .../blenloader/intern/versioning_300.cc | 8 +- .../blenloader/intern/versioning_400.cc | 8 +- .../blenloader/intern/versioning_defaults.cc | 2 +- .../blenloader/intern/versioning_legacy.cc | 4 +- source/blender/blenloader/intern/writefile.cc | 2 +- .../bmesh/tools/bmesh_path_region_uv.cc | 2 +- source/blender/bmesh/tools/bmesh_path_uv.cc | 2 +- source/blender/bmesh/tools/bmesh_wireframe.h | 2 +- source/blender/compositor/COM_compositor.h | 4 +- .../compositor/nodes/COM_ConvertAlphaNode.cc | 2 +- .../operations/COM_VectorBlurOperation.cc | 4 +- source/blender/draw/DRW_select_buffer.h | 2 +- .../draw/engines/eevee/eevee_lut_gen.cc | 4 +- .../draw/engines/eevee/eevee_private.h | 46 +++++----- .../draw/engines/image/image_private.hh | 2 +- .../draw/engines/select/select_engine.h | 4 +- .../draw/engines/select/select_private.h | 2 +- .../engines/workbench/workbench_private.h | 26 +++--- source/blender/draw/intern/draw_common.h | 4 +- .../blender/draw/intern/draw_manager_text.h | 2 +- .../draw/intern/draw_manager_texture.cc | 2 +- .../intern/mesh_extractors/extract_mesh.hh | 2 +- .../editors/animation/anim_channels_edit.cc | 2 +- source/blender/editors/animation/anim_deps.cc | 4 +- source/blender/editors/animation/anim_draw.cc | 2 +- .../blender/editors/animation/anim_filter.cc | 2 +- .../blender/editors/animation/anim_intern.h | 2 +- .../editors/armature/armature_intern.h | 6 +- .../editors/asset/intern/asset_list.cc | 5 +- source/blender/editors/curve/curve_intern.h | 16 ++-- .../geometry/geom_arrow_gizmo.cc | 2 +- .../gizmo_library/gizmo_library_intern.h | 2 +- .../gizmo_types/arrow3d_gizmo.cc | 4 +- .../gizmo_library/gizmo_types/cage2d_gizmo.cc | 2 +- .../gizmo_library/gizmo_types/dial3d_gizmo.cc | 2 +- .../editors/gpencil_legacy/gpencil_intern.h | 8 +- .../gpencil_legacy/gpencil_sculpt_paint.cc | 5 +- .../editors/gpencil_legacy/gpencil_select.cc | 2 +- .../gpencil_legacy/gpencil_vertex_paint.cc | 2 +- .../gpencil_legacy/gpencil_weight_paint.cc | 2 +- source/blender/editors/include/ED_anim_api.h | 14 +-- source/blender/editors/include/ED_armature.h | 22 ++--- source/blender/editors/include/ED_clip.h | 4 +- source/blender/editors/include/ED_curve.h | 10 +-- source/blender/editors/include/ED_curves.hh | 2 +- .../editors/include/ED_gizmo_library.h | 4 +- .../editors/include/ED_gpencil_legacy.h | 2 +- source/blender/editors/include/ED_image.h | 6 +- source/blender/editors/include/ED_info.h | 2 +- .../editors/include/ED_keyframes_edit.h | 2 +- source/blender/editors/include/ED_lattice.h | 6 +- source/blender/editors/include/ED_markers.h | 4 +- source/blender/editors/include/ED_mask.h | 8 +- source/blender/editors/include/ED_mball.h | 2 +- source/blender/editors/include/ED_mesh.h | 8 +- source/blender/editors/include/ED_object.h | 12 +-- source/blender/editors/include/ED_paint.h | 8 +- source/blender/editors/include/ED_particle.h | 2 +- source/blender/editors/include/ED_physics.h | 6 +- source/blender/editors/include/ED_render.h | 4 +- source/blender/editors/include/ED_screen.h | 14 +-- source/blender/editors/include/ED_text.h | 2 +- source/blender/editors/include/ED_transform.h | 4 +- source/blender/editors/include/ED_undo.h | 4 +- .../blender/editors/include/ED_util_imbuf.h | 2 +- source/blender/editors/include/ED_uvedit.h | 10 +-- source/blender/editors/include/ED_view3d.h | 8 +- source/blender/editors/include/UI_interface.h | 10 +-- source/blender/editors/include/UI_view2d.h | 2 +- .../eyedroppers/eyedropper_intern.hh | 2 +- source/blender/editors/interface/interface.cc | 2 +- .../editors/interface/interface_handlers.cc | 2 +- .../editors/interface/interface_intern.hh | 34 +++---- .../editors/interface/interface_layout.cc | 2 +- .../interface/interface_region_popover.cc | 2 +- .../editors/interface/interface_templates.cc | 2 +- .../blender/editors/interface/view2d_ops.cc | 5 +- source/blender/editors/io/io_alembic.cc | 2 +- .../blender/editors/lattice/lattice_intern.h | 4 +- source/blender/editors/mask/mask_intern.h | 12 +-- source/blender/editors/mesh/mesh_intern.h | 30 +++---- source/blender/editors/mesh/meshtools.cc | 2 +- source/blender/editors/object/object_intern.h | 26 +++--- .../blender/editors/physics/physics_intern.h | 16 ++-- .../blender/editors/render/render_intern.hh | 8 +- source/blender/editors/render/render_ops.cc | 4 +- source/blender/editors/screen/screen_edit.cc | 2 +- .../editors/sculpt_paint/paint_intern.hh | 18 ++-- .../editors/sculpt_paint/paint_vertex.cc | 2 +- .../sculpt_paint/paint_vertex_weight_utils.cc | 2 +- .../editors/sculpt_paint/paint_weight.cc | 2 +- .../editors/space_action/action_data.cc | 2 +- .../editors/space_action/action_intern.hh | 10 +-- .../editors/space_action/action_select.cc | 2 +- .../editors/space_action/space_action.cc | 2 +- .../editors/space_buttons/buttons_intern.h | 6 +- .../blender/editors/space_clip/space_clip.cc | 8 +- .../editors/space_console/console_intern.hh | 4 +- .../editors/space_console/space_console.cc | 2 +- .../blender/editors/space_file/file_intern.h | 10 +-- .../editors/space_graph/graph_buttons.cc | 2 +- .../editors/space_graph/graph_intern.h | 14 +-- .../editors/space_graph/graph_select.cc | 2 +- .../editors/space_image/image_intern.h | 6 +- .../blender/editors/space_info/info_intern.hh | 4 +- source/blender/editors/space_info/info_ops.cc | 2 +- .../blender/editors/space_info/space_info.cc | 2 +- .../blender/editors/space_nla/nla_channels.cc | 4 +- .../blender/editors/space_nla/nla_intern.hh | 12 +-- .../blender/editors/space_node/node_draw.cc | 2 +- .../blender/editors/space_node/node_intern.hh | 2 +- .../editors/space_outliner/outliner_draw.cc | 2 +- .../editors/space_outliner/outliner_intern.hh | 26 +++--- .../editors/space_outliner/outliner_tools.cc | 2 +- .../editors/space_outliner/outliner_tree.cc | 2 +- .../editors/space_script/script_intern.h | 4 +- .../space_sequencer/sequencer_intern.h | 30 +++---- .../editors/space_sequencer/sequencer_ops.cc | 10 +-- .../blender/editors/space_text/text_intern.hh | 8 +- .../editors/space_view3d/view3d_intern.h | 24 ++--- .../editors/space_view3d/view3d_select.cc | 3 +- source/blender/editors/transform/transform.hh | 4 +- .../editors/transform/transform_convert.hh | 54 +++++------ .../transform/transform_convert_armature.cc | 2 +- .../editors/transform/transform_gizmo.hh | 2 +- .../editors/transform/transform_mode.hh | 62 ++++++------- .../editors/transform/transform_snap.hh | 4 +- source/blender/editors/uvedit/uvedit_intern.h | 4 +- source/blender/editors/uvedit/uvedit_ops.cc | 2 +- source/blender/editors/uvedit/uvedit_path.cc | 2 +- .../MOD_gpencil_legacy_modifiertypes.h | 2 +- .../intern/lineart/lineart_cpu.cc | 2 +- source/blender/gpu/GPU_batch_presets.h | 2 +- source/blender/gpu/GPU_batch_utils.h | 2 +- source/blender/gpu/intern/gpu_select.cc | 12 ++- source/blender/gpu/intern/gpu_viewport.cc | 2 +- source/blender/imbuf/IMB_imbuf.h | 90 +++++++++---------- source/blender/imbuf/intern/IMB_allocimbuf.h | 2 +- source/blender/imbuf/intern/IMB_filter.h | 2 +- source/blender/imbuf/intern/imageprocess.cc | 2 +- source/blender/io/collada/MeshImporter.h | 4 +- source/blender/io/collada/collada_utils.cpp | 4 +- source/blender/makesdna/DNA_ID.h | 16 ++-- source/blender/makesdna/DNA_anim_types.h | 2 +- source/blender/makesdna/DNA_curve_types.h | 3 +- source/blender/makesdna/DNA_documentation.h | 2 +- source/blender/makesdna/DNA_effect_types.h | 2 +- source/blender/makesdna/DNA_object_types.h | 2 +- source/blender/makesdna/DNA_outliner_types.h | 4 +- source/blender/makesdna/DNA_space_types.h | 5 +- source/blender/makesdna/DNA_userdef_types.h | 2 +- source/blender/makesdna/intern/dna_genfile.cc | 2 +- .../blender/makesdna/intern/dna_rename_defs.h | 2 +- source/blender/makesrna/RNA_types.h | 4 +- .../blender/makesrna/intern/rna_collection.cc | 2 +- source/blender/makesrna/intern/rna_color.cc | 2 +- .../blender/makesrna/intern/rna_constraint.cc | 2 +- source/blender/makesrna/intern/rna_fcurve.cc | 7 +- source/blender/makesrna/intern/rna_main.cc | 2 +- source/blender/makesrna/intern/rna_scene.cc | 2 +- .../blender/makesrna/intern/rna_sequencer.cc | 4 +- source/blender/makesrna/intern/rna_wm.cc | 2 +- .../makesrna/intern/rna_wm_gizmo_api.cc | 4 +- .../blender/modifiers/intern/MOD_collision.cc | 2 +- .../modifiers/intern/MOD_meshcache_util.hh | 6 +- .../modifiers/intern/MOD_weightvgproximity.cc | 2 +- source/blender/nodes/NOD_static_types.h | 2 +- .../nodes/node_composite_stabilize2d.cc | 2 +- source/blender/nodes/intern/node_socket.cc | 2 +- .../nodes/texture/node_texture_tree.cc | 2 +- source/blender/python/BPY_extern.h | 2 +- source/blender/python/BPY_extern_python.h | 4 +- source/blender/python/BPY_extern_run.h | 2 +- .../blender/python/bmesh/bmesh_py_ops_call.cc | 4 +- source/blender/python/bmesh/bmesh_py_types.cc | 8 +- .../blender/python/generic/idprop_py_api.cc | 2 +- source/blender/python/generic/py_capi_rna.cc | 2 +- source/blender/python/gpu/gpu_py_shader.h | 2 +- source/blender/python/intern/bpy.cc | 2 +- source/blender/python/intern/bpy.h | 2 +- .../blender/python/intern/bpy_gizmo_wrap.cc | 2 +- source/blender/python/intern/bpy_interface.cc | 2 +- .../blender/python/intern/bpy_operator_wrap.h | 2 +- source/blender/python/intern/bpy_rna.cc | 2 +- source/blender/python/intern/bpy_rna_anim.cc | 2 +- source/blender/python/intern/bpy_rna_array.cc | 2 +- source/blender/render/RE_bake.h | 4 +- source/blender/render/RE_pipeline.h | 2 +- source/blender/render/RE_texture.h | 8 +- source/blender/render/intern/texture_common.h | 2 +- source/blender/render/intern/zbuf.cc | 2 - source/blender/sequencer/SEQ_sequencer.h | 2 +- source/blender/sequencer/intern/multiview.h | 2 +- source/blender/windowmanager/WM_api.h | 24 ++--- source/blender/windowmanager/WM_toolsystem.h | 2 +- .../windowmanager/gizmo/WM_gizmo_api.h | 6 +- .../windowmanager/gizmo/wm_gizmo_wmapi.h | 2 +- .../windowmanager/intern/wm_event_system.cc | 2 +- .../windowmanager/intern/wm_gesture_ops.cc | 4 +- .../windowmanager/intern/wm_init_exit.cc | 2 +- .../blender/windowmanager/intern/wm_keymap.cc | 4 +- .../message_bus/wm_message_bus.h | 6 +- source/blender/windowmanager/wm.h | 12 +-- source/blender/windowmanager/wm_draw.h | 2 +- .../blender/windowmanager/wm_event_system.h | 4 +- source/blender/windowmanager/wm_files.h | 2 +- source/blender/windowmanager/wm_window.h | 2 +- .../windowmanager/xr/intern/wm_xr_intern.h | 6 +- source/blender/windowmanager/xr/wm_xr.h | 4 +- source/creator/creator.c | 4 +- 271 files changed, 740 insertions(+), 734 deletions(-) diff --git a/scripts/modules/bpy_types.py b/scripts/modules/bpy_types.py index 48fd2f3dfe8..f1ed3780e67 100644 --- a/scripts/modules/bpy_types.py +++ b/scripts/modules/bpy_types.py @@ -11,7 +11,7 @@ StructMetaPropGroup = bpy_types.bpy_struct_meta_idprop # Private dummy object use for comparison only. _sentinel = object() -# Note that methods extended in C are defined in: 'bpy_rna_types_capi.c' +# Note that methods extended in C are defined in: `bpy_rna_types_capi.cc`. class Context(StructRNA): @@ -106,7 +106,7 @@ class Library(bpy_types.ID): """ID data blocks which use this library""" import bpy - # See: readblenentry.c, IDTYPE_FLAGS_ISLINKABLE, + # See: `readblenentry.cc`, IDTYPE_FLAGS_ISLINKABLE, # we could make this an attribute in rna. attr_links = ( "actions", "armatures", "brushes", "cameras", diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index 5dd1e98ec1c..80db3a20a8b 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -285,7 +285,7 @@ void BLF_draw_buffer_ex(int fontid, const char *str, size_t str_len, struct Resu ATTR_NONNULL(2); void BLF_draw_buffer(int fontid, const char *str, size_t str_len) ATTR_NONNULL(2); -/* blf_thumbs.c */ +/* `blf_thumbs.cc` */ /** * This function is used for generating thumbnail previews. @@ -295,7 +295,7 @@ void BLF_draw_buffer(int fontid, const char *str, size_t str_len) ATTR_NONNULL(2 bool BLF_thumb_preview(const char *filename, unsigned char *buf, int w, int h, int channels) ATTR_NONNULL(); -/* blf_default.c */ +/* `blf_default.cc` */ void BLF_default_size(float size); void BLF_default_set(int fontid); @@ -312,7 +312,7 @@ void BLF_draw_default(float x, float y, float z, const char *str, size_t str_len */ int BLF_set_default(void); -/* blf_font_default.c */ +/* `blf_font_default.cc` */ int BLF_load_default(bool unique); int BLF_load_mono_default(bool unique); diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h index 306ebd625ff..28ecc29beb7 100644 --- a/source/blender/blenfont/intern/blf_internal.h +++ b/source/blender/blenfont/intern/blf_internal.h @@ -173,7 +173,7 @@ void blf_glyph_draw( struct FontBLF *font, struct GlyphCacheBLF *gc, struct GlyphBLF *g, int x, int y); #ifdef WIN32 -/* blf_font_win32_compat.c */ +/* `blf_font_win32_compat.cc` */ # ifdef FT_FREETYPE_H extern FT_Error FT_New_Face__win32_compat(FT_Library library, diff --git a/source/blender/blenkernel/BKE_action.h b/source/blender/blenkernel/BKE_action.h index a7b860b8c0d..9abb286e8ad 100644 --- a/source/blender/blenkernel/BKE_action.h +++ b/source/blender/blenkernel/BKE_action.h @@ -394,7 +394,7 @@ void BKE_pose_blend_read_lib(struct BlendLibReader *reader, struct Object *ob, s void BKE_pose_blend_read_expand(struct BlendExpander *expander, struct bPose *pose) ATTR_NONNULL(1); -/* action_mirror.c */ +/* `action_mirror.cc` */ void BKE_action_flip_with_pose(struct bAction *act, struct Object *ob_arm) ATTR_NONNULL(1, 2); diff --git a/source/blender/blenkernel/BKE_armature.h b/source/blender/blenkernel/BKE_armature.h index 0d0f005c291..367eb9e16ea 100644 --- a/source/blender/blenkernel/BKE_armature.h +++ b/source/blender/blenkernel/BKE_armature.h @@ -380,7 +380,7 @@ void BKE_pchan_to_mat4(const struct bPoseChannel *pchan, float r_chanmat[4][4]); /** * Convert the loc/rot/size to mat4 (`pchan.chan_mat`), - * used in `constraint.c` too. + * used in `constraint.cc` too. */ void BKE_pchan_calc_mat(struct bPoseChannel *pchan); @@ -638,7 +638,7 @@ void BKE_pose_eval_cleanup(struct Depsgraph *depsgraph, struct Object *object); /* -------------------------------------------------------------------- */ -/** \name Deform 3D Coordinates by Armature (armature_deform.c) +/** \name Deform 3D Coordinates by Armature (`armature_deform.cc`) * \{ */ /* Note that we could have a 'BKE_armature_deform_coords' that doesn't take object data diff --git a/source/blender/blenkernel/BKE_callbacks.h b/source/blender/blenkernel/BKE_callbacks.h index b754994ffc0..7c0f02cb6c0 100644 --- a/source/blender/blenkernel/BKE_callbacks.h +++ b/source/blender/blenkernel/BKE_callbacks.h @@ -71,7 +71,7 @@ struct PointerRNA; * ============= * * All callbacks here must be exposed via the Python module `bpy.app.handlers`, - * see `bpy_app_handlers.c`. + * see `bpy_app_handlers.cc`. */ typedef enum { BKE_CB_EVT_FRAME_CHANGE_PRE, diff --git a/source/blender/blenkernel/BKE_crazyspace.h b/source/blender/blenkernel/BKE_crazyspace.h index 24d1882743a..b650f7cacd7 100644 --- a/source/blender/blenkernel/BKE_crazyspace.h +++ b/source/blender/blenkernel/BKE_crazyspace.h @@ -19,7 +19,7 @@ struct Object; struct ReportList; struct Scene; -/* crazyspace.c */ +/* `crazyspace.cc` */ /** * Disable subdivision-surface temporal, get mapped coordinates, and enable it. diff --git a/source/blender/blenkernel/BKE_curve.h b/source/blender/blenkernel/BKE_curve.h index 9f865a2710b..b6cdd6f5282 100644 --- a/source/blender/blenkernel/BKE_curve.h +++ b/source/blender/blenkernel/BKE_curve.h @@ -374,7 +374,7 @@ extern void (*BKE_curve_batch_cache_dirty_tag_cb)(struct Curve *cu, int mode); extern void (*BKE_curve_batch_cache_free_cb)(struct Curve *cu); /* -------------------------------------------------------------------- */ -/** \name Decimate Curve (curve_decimate.c) +/** \name Decimate Curve (`curve_decimate.cc`) * * Simplify curve data. * \{ */ @@ -396,7 +396,7 @@ void BKE_curve_decimate_nurb(struct Nurb *nu, /** \} */ /* -------------------------------------------------------------------- */ -/** \name Deform 3D Coordinates by Curve (curve_deform.c) +/** \name Deform 3D Coordinates by Curve (`curve_deform.cc`) * \{ */ void BKE_curve_deform_coords(const struct Object *ob_curve, @@ -432,7 +432,7 @@ void BKE_curve_deform_co(const struct Object *ob_curve, /** \} */ -/* curve_convert.c */ +/* `curve_convert.cc` */ /* Create a new curve from the given object at its current state. This only works for curve and * text objects, otherwise NULL is returned. diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index 6ad498d3685..6a1def301a5 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -172,7 +172,7 @@ void CustomData_copy_layout(const struct CustomData *source, eCDAllocType alloctype, int totelem); -/* BMESH_TODO, not really a public function but readfile.c needs it */ +/* BMESH_TODO, not really a public function but `readfile.cc` needs it. */ void CustomData_update_typemap(struct CustomData *data); /** diff --git a/source/blender/blenkernel/BKE_effect.h b/source/blender/blenkernel/BKE_effect.h index f64a3be80eb..ec47c55eec4 100644 --- a/source/blender/blenkernel/BKE_effect.h +++ b/source/blender/blenkernel/BKE_effect.h @@ -153,7 +153,7 @@ bool get_effector_data(struct EffectorCache *eff, struct EffectedPoint *point, int real_velocity); -/* required for particle_system.c */ +/* Required for `particle_system.cc`. */ #if 0 void do_physical_effector(struct EffectorData *eff, struct EffectorPoint *point, diff --git a/source/blender/blenkernel/BKE_fcurve.h b/source/blender/blenkernel/BKE_fcurve.h index fc093ff29b5..e47878b8fca 100644 --- a/source/blender/blenkernel/BKE_fcurve.h +++ b/source/blender/blenkernel/BKE_fcurve.h @@ -341,7 +341,7 @@ int BKE_fcurve_bezt_binarysearch_index(const struct BezTriple array[], int arraylen, bool *r_replace); -/* fcurve_cache.c */ +/* `fcurve_cache.cc` */ /** * Cached f-curve look-ups, use when this needs to be done many times. diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h index fafbfae9fab..006090b96f7 100644 --- a/source/blender/blenkernel/BKE_global.h +++ b/source/blender/blenkernel/BKE_global.h @@ -267,7 +267,7 @@ enum { G_TRANSFORM_CURSOR = (1 << 5), }; -/** Defined in blender.c */ +/** Defined in `blender.cc` */ extern Global G; /** diff --git a/source/blender/blenkernel/BKE_image.h b/source/blender/blenkernel/BKE_image.h index 4da9b3cc421..3b65436f507 100644 --- a/source/blender/blenkernel/BKE_image.h +++ b/source/blender/blenkernel/BKE_image.h @@ -438,7 +438,7 @@ void BKE_image_get_size(struct Image *image, struct ImageUser *iuser, int *r_wid void BKE_image_get_size_fl(struct Image *image, struct ImageUser *iuser, float r_size[2]); void BKE_image_get_aspect(struct Image *image, float *r_aspx, float *r_aspy); -/* image_gen.c */ +/* `image_gen.cc` */ void BKE_image_buf_fill_color( unsigned char *rect, float *rect_float, int width, int height, const float color[4]); diff --git a/source/blender/blenkernel/BKE_ipo.h b/source/blender/blenkernel/BKE_ipo.h index 019ef9d81ad..52a83c7826a 100644 --- a/source/blender/blenkernel/BKE_ipo.h +++ b/source/blender/blenkernel/BKE_ipo.h @@ -14,7 +14,7 @@ extern "C" { struct Main; /** - * Called from #do_versions() in `readfile.c` to convert the old 'IPO/adrcode' system + * Called from #do_versions() in `readfile.cc` to convert the old 'IPO/adrcode' system * to the new 'Animato/RNA' system. * * The basic method used here, is to loop over data-blocks which have IPO-data, diff --git a/source/blender/blenkernel/BKE_lattice.h b/source/blender/blenkernel/BKE_lattice.h index cf8b6cd9753..849df31152d 100644 --- a/source/blender/blenkernel/BKE_lattice.h +++ b/source/blender/blenkernel/BKE_lattice.h @@ -77,7 +77,7 @@ extern void (*BKE_lattice_batch_cache_dirty_tag_cb)(struct Lattice *lt, int mode extern void (*BKE_lattice_batch_cache_free_cb)(struct Lattice *lt); /* -------------------------------------------------------------------- */ -/** \name Deform 3D Coordinates by Lattice (lattice_deform.c) +/** \name Deform 3D Coordinates by Lattice (`lattice_deform.cc`) * \{ */ struct LatticeDeformData *BKE_lattice_deform_data_create( diff --git a/source/blender/blenkernel/BKE_layer.h b/source/blender/blenkernel/BKE_layer.h index 1e3b28c51cf..88974834e3e 100644 --- a/source/blender/blenkernel/BKE_layer.h +++ b/source/blender/blenkernel/BKE_layer.h @@ -493,7 +493,7 @@ void BKE_view_layer_visible_bases_iterator_end(BLI_Iterator *iter); } \ ((void)0) -/* layer_utils.c */ +/* `layer_utils.cc` */ struct ObjectsInViewLayerParams { uint no_dup_data : 1; diff --git a/source/blender/blenkernel/BKE_lib_id.h b/source/blender/blenkernel/BKE_lib_id.h index 6f70027efb3..88b9ef144aa 100644 --- a/source/blender/blenkernel/BKE_lib_id.h +++ b/source/blender/blenkernel/BKE_lib_id.h @@ -231,7 +231,7 @@ typedef enum eLibIDDuplicateFlags { ENUM_OPERATORS(eLibIDDuplicateFlags, LIB_ID_DUPLICATE_IS_ROOT_ID) -/* lib_remap.c (keep here since they're general functions) */ +/* `lib_remap.cc` (keep here since they're general functions) */ /** * New freeing logic options. */ @@ -355,7 +355,7 @@ void id_us_ensure_real(struct ID *id); void id_us_clear_real(struct ID *id); /** * Same as \a id_us_plus, but does not handle lib indirect -> extern. - * Only used by readfile.c so far, but simpler/safer to keep it here nonetheless. + * Only used by `readfile.cc` so far, but simpler/safer to keep it here nonetheless. */ void id_us_plus_no_lib(struct ID *id); void id_us_plus(struct ID *id); @@ -565,7 +565,7 @@ void BKE_main_id_flag_listbase(struct ListBase *lb, int flag, bool value); void BKE_main_id_flag_all(struct Main *bmain, int flag, bool value); /** - * Next to indirect usage in `readfile.c/writefile.c` also in `editobject.c`, `scene.cc`. + * Next to indirect usage in `readfile.cc` / `writefile.cc` also in `editobject.c`, `scene.cc`. */ void BKE_main_id_newptr_and_tag_clear(struct Main *bmain); @@ -677,7 +677,7 @@ void BKE_id_blend_write(struct BlendWriter *writer, struct ID *id); #define IS_TAGGED(_id) ((_id) && (((ID *)_id)->tag & LIB_TAG_DOIT)) -/* lib_id_eval.c */ +/* `lib_id_eval.cc` */ /** * Copy relatives parameters, from `id` to `id_cow`. diff --git a/source/blender/blenkernel/BKE_lib_remap.h b/source/blender/blenkernel/BKE_lib_remap.h index 85995e67aaa..3cd28a7f5c2 100644 --- a/source/blender/blenkernel/BKE_lib_remap.h +++ b/source/blender/blenkernel/BKE_lib_remap.h @@ -227,7 +227,7 @@ typedef enum IDRemapperApplyOptions { * NOTE: Currently unused by main remapping code, since user-count is handled by * `foreach_libblock_remap_callback_apply` there, depending on whether the remapped pointer does * use it or not. Need for rare cases in UI handling though (see e.g. `image_id_remap` in - * `space_image.c`). + * `space_image.cc`). */ ID_REMAP_APPLY_UPDATE_REFCOUNT = (1 << 0), diff --git a/source/blender/blenkernel/BKE_mask.h b/source/blender/blenkernel/BKE_mask.h index 8cf50e4af02..9c57b853cd0 100644 --- a/source/blender/blenkernel/BKE_mask.h +++ b/source/blender/blenkernel/BKE_mask.h @@ -27,7 +27,7 @@ struct MaskSplinePointUW; struct MovieClip; struct MovieClipUser; -/* mask_ops.c */ +/* `mask_ops.cc` */ typedef enum { MASK_WHICH_HANDLE_NONE = 0, @@ -333,7 +333,7 @@ void BKE_mask_clipboard_paste_to_layer(struct Main *bmain, struct MaskLayer *mas #define MASK_RESOL_MAX 128 -/* mask_evaluate.c */ +/* `mask_evaluate.cc` */ unsigned int BKE_mask_spline_resolution(struct MaskSpline *spline, int width, int height); unsigned int BKE_mask_spline_feather_resolution(struct MaskSpline *spline, int width, int height); @@ -387,7 +387,7 @@ void BKE_mask_eval_update(struct Depsgraph *depsgraph, struct Mask *mask); /** \name Rasterization * \{ */ -/* mask_rasterize.c */ +/* `mask_rasterize.cc` */ struct MaskRasterHandle; typedef struct MaskRasterHandle MaskRasterHandle; diff --git a/source/blender/blenkernel/BKE_mesh.h b/source/blender/blenkernel/BKE_mesh.h index a3f8939ae0e..4e8c78cad36 100644 --- a/source/blender/blenkernel/BKE_mesh.h +++ b/source/blender/blenkernel/BKE_mesh.h @@ -66,7 +66,7 @@ void BKE_mesh_tag_edges_split(struct Mesh *mesh); */ void BKE_mesh_tag_face_winding_changed(struct Mesh *mesh); -/* *** mesh.c *** */ +/* `mesh.cc` */ struct BMesh *BKE_mesh_to_bmesh_ex(const struct Mesh *me, const struct BMeshCreateParams *create_params, @@ -712,7 +712,7 @@ void BKE_mesh_batch_cache_free(void *batch_cache); extern void (*BKE_mesh_batch_cache_dirty_tag_cb)(struct Mesh *me, eMeshBatchDirtyMode mode); extern void (*BKE_mesh_batch_cache_free_cb)(void *batch_cache); -/* mesh_debug.c */ +/* `mesh_debug.cc` */ #ifndef NDEBUG char *BKE_mesh_debug_info(const struct Mesh *me) diff --git a/source/blender/blenkernel/BKE_mesh_legacy_convert.h b/source/blender/blenkernel/BKE_mesh_legacy_convert.h index 5a7f726bf0a..8ca629f4108 100644 --- a/source/blender/blenkernel/BKE_mesh_legacy_convert.h +++ b/source/blender/blenkernel/BKE_mesh_legacy_convert.h @@ -105,7 +105,7 @@ void BKE_mesh_convert_mfaces_to_mpolys(struct Mesh *mesh); /** * The same as #BKE_mesh_convert_mfaces_to_mpolys - * but oriented to be used in #do_versions from `readfile.c` + * but oriented to be used in #do_versions from `readfile.cc` * the difference is how active/render/clone/stencil indices are handled here. * * normally they're being set from `pdata` which totally makes sense for meshes which are diff --git a/source/blender/blenkernel/BKE_ocean.h b/source/blender/blenkernel/BKE_ocean.h index 66db9ed6541..bc0f93f381b 100644 --- a/source/blender/blenkernel/BKE_ocean.h +++ b/source/blender/blenkernel/BKE_ocean.h @@ -143,7 +143,7 @@ void BKE_ocean_cache_eval_ij(struct OceanCache *och, struct OceanResult *ocr, in void BKE_ocean_free_cache(struct OceanCache *och); void BKE_ocean_free_modifier_cache(struct OceanModifierData *omd); -/* ocean_spectrum.c */ +/* `ocean_spectrum.cc` */ /** * Pierson-Moskowitz model, 1964, assumes waves reach equilibrium with wind. diff --git a/source/blender/blenkernel/BKE_particle.h b/source/blender/blenkernel/BKE_particle.h index 7917424c37e..d65f7210772 100644 --- a/source/blender/blenkernel/BKE_particle.h +++ b/source/blender/blenkernel/BKE_particle.h @@ -487,7 +487,7 @@ void psys_apply_hair_lattice(struct Depsgraph *depsgraph, struct Object *ob, struct ParticleSystem *psys); -/* particle_system.c */ +/* `particle_system.cc` */ struct ParticleSystem *psys_get_target_system(struct Object *ob, struct ParticleTarget *pt); /** @@ -626,7 +626,7 @@ void psys_particle_on_dm(struct Mesh *mesh_final, float vtan[3], float orco[3]); -/* particle_system.c */ +/* `particle_system.cc` */ void distribute_particles(struct ParticleSimulationData *sim, int from); /** diff --git a/source/blender/blenkernel/BKE_pbvh.h b/source/blender/blenkernel/BKE_pbvh.h index d9c9f500f8b..2d992798bec 100644 --- a/source/blender/blenkernel/BKE_pbvh.h +++ b/source/blender/blenkernel/BKE_pbvh.h @@ -23,7 +23,7 @@ typedef enum { PBVH_BMESH, } PBVHType; -/* PBVHNodeFlags is needed by DRW_render.h and draw_cache.c. */ +/* #PBVHNodeFlags is needed by `DRW_render.h` and `draw_cache.cc`. */ typedef enum PBVHNodeFlags { PBVH_Leaf = 1 << 0, @@ -44,7 +44,8 @@ typedef enum PBVHNodeFlags { PBVH_UpdateColor = 1 << 14, PBVH_RebuildPixels = 1 << 15, PBVH_TexLeaf = 1 << 16, - PBVH_TopologyUpdated = 1 << 17, /* Used internally by pbvh_bmesh.c */ + /** Used internally by `pbvh_bmesh.cc`. */ + PBVH_TopologyUpdated = 1 << 17, } PBVHNodeFlags; ENUM_OPERATORS(PBVHNodeFlags, PBVH_TopologyUpdated); @@ -106,7 +107,7 @@ extern "C" { /* Needed by eevee_materias.c. */ void BKE_pbvh_is_drawing_set(PBVH *pbvh, bool val); -/* Needed by basic_engine.c. */ +/* Needed by `basic_engine.cc`. */ void BKE_pbvh_draw_debug_cb(PBVH *pbvh, void (*draw_fn)(PBVHNode *node, void *user_data, diff --git a/source/blender/blenkernel/BKE_text.h b/source/blender/blenkernel/BKE_text.h index 79e85e24965..58e0db929f1 100644 --- a/source/blender/blenkernel/BKE_text.h +++ b/source/blender/blenkernel/BKE_text.h @@ -130,7 +130,7 @@ bool text_check_identifier_nodigit(char ch); bool text_check_whitespace(char ch); int text_find_identifier_start(const char *str, int i); -/* EVIL: defined in `bpy_interface.c`. */ +/* EVIL: defined in `bpy_interface.cc`. */ extern int text_check_identifier_unicode(unsigned int ch); extern int text_check_identifier_nodigit_unicode(unsigned int ch); diff --git a/source/blender/blenkernel/BKE_unit.h b/source/blender/blenkernel/BKE_unit.h index d1fa1714720..62e835ed5a4 100644 --- a/source/blender/blenkernel/BKE_unit.h +++ b/source/blender/blenkernel/BKE_unit.h @@ -103,7 +103,7 @@ const char *BKE_unit_identifier_get(const void *usys_pt, int index); double BKE_unit_scalar_get(const void *usys_pt, int index); bool BKE_unit_is_suppressed(const void *usys_pt, int index); -/** Aligned with #PropertyUnit and `bpyunits_ucategories_items` in `bpy_utils_units.c`. */ +/** Aligned with #PropertyUnit and `bpyunits_ucategories_items` in `bpy_utils_units.cc`. */ enum { B_UNIT_NONE = 0, B_UNIT_LENGTH = 1, diff --git a/source/blender/blenkernel/intern/CCGSubSurf_intern.h b/source/blender/blenkernel/intern/CCGSubSurf_intern.h index 05e761361a3..99d6e81f660 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf_intern.h +++ b/source/blender/blenkernel/intern/CCGSubSurf_intern.h @@ -241,7 +241,7 @@ struct CCGSubSurf { /* ** General purpose functions ** */ -/* * CCGSubSurf.c * */ +/* `CCGSubSurf.cc` */ void ccgSubSurf__allFaces(CCGSubSurf *ss, CCGFace ***faces, int *numFaces, int *freeFaces); void ccgSubSurf__effectedFaceNeighbors(CCGSubSurf *ss, @@ -252,7 +252,7 @@ void ccgSubSurf__effectedFaceNeighbors(CCGSubSurf *ss, CCGEdge ***edges, int *numEdges); -/* * CCGSubSurf_legacy.c * */ +/* `CCGSubSurf_legacy.cc` */ void ccgSubSurf__sync_legacy(CCGSubSurf *ss); diff --git a/source/blender/blenkernel/intern/action_test.cc b/source/blender/blenkernel/intern/action_test.cc index 7f46f2c8cd8..9c598561900 100644 --- a/source/blender/blenkernel/intern/action_test.cc +++ b/source/blender/blenkernel/intern/action_test.cc @@ -147,7 +147,7 @@ void add_keyframe(FCurve *fcu, float x, float y) BezTriple the_keyframe; memset(&the_keyframe, 0, sizeof(the_keyframe)); - /* Copied from insert_vert_fcurve() in keyframing.c. */ + /* Copied from insert_vert_fcurve() in `keyframing.cc`. */ the_keyframe.vec[0][0] = x - 1.0f; the_keyframe.vec[0][1] = y; the_keyframe.vec[1][0] = x; diff --git a/source/blender/blenkernel/intern/anim_sys.cc b/source/blender/blenkernel/intern/anim_sys.cc index 3fd1f9589c1..96c3f6df407 100644 --- a/source/blender/blenkernel/intern/anim_sys.cc +++ b/source/blender/blenkernel/intern/anim_sys.cc @@ -3320,7 +3320,7 @@ static bool is_action_track_evaluated_without_nla(const AnimData *adt, } /** - * XXX(Wayde Moss): #BKE_nlatrack_find_tweaked() exists within nla.c, but it doesn't appear to + * XXX(Wayde Moss): #BKE_nlatrack_find_tweaked() exists within `nla.cc`, but it doesn't appear to * work as expected. From #animsys_evaluate_nla_for_flush(), it returns nullptr in tweak mode. I'm * not sure why. Preferably, it would be as simple as checking for `(adt->act_Track == nlt)` but * that doesn't work either, neither does comparing indices. diff --git a/source/blender/blenkernel/intern/bvhutils.cc b/source/blender/blenkernel/intern/bvhutils.cc index e98c0e0867a..ce24c5a483a 100644 --- a/source/blender/blenkernel/intern/bvhutils.cc +++ b/source/blender/blenkernel/intern/bvhutils.cc @@ -294,7 +294,7 @@ static void mesh_looptri_nearest_point(void *userdata, normal_tri_v3(nearest->no, UNPACK3(vtri_co)); } } -/* copy of function above (warning, should de-duplicate with editmesh_bvh.c) */ +/* Copy of function above (warning, should de-duplicate with `editmesh_bvh.cc`). */ static void editmesh_looptri_nearest_point(void *userdata, int index, const float co[3], @@ -398,7 +398,7 @@ static void mesh_looptri_spherecast(void *userdata, normal_tri_v3(hit->no, UNPACK3(vtri_co)); } } -/* copy of function above (warning, should de-duplicate with editmesh_bvh.c) */ +/* Copy of function above (warning, should de-duplicate with `editmesh_bvh.cc`). */ static void editmesh_looptri_spherecast(void *userdata, int index, const BVHTreeRay *ray, diff --git a/source/blender/blenkernel/intern/collection.cc b/source/blender/blenkernel/intern/collection.cc index a46b9fadf99..f96277e9f3f 100644 --- a/source/blender/blenkernel/intern/collection.cc +++ b/source/blender/blenkernel/intern/collection.cc @@ -1938,7 +1938,7 @@ void BKE_main_collections_parent_relations_rebuild(Main *bmain) /* Scene's master collections will be 'root' parent of most of our collections, so start with * them. */ LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { - /* This function can be called from readfile.c, when this pointer is not guaranteed to be + /* This function can be called from `readfile.cc`, when this pointer is not guaranteed to be * nullptr. */ if (scene->master_collection != nullptr) { diff --git a/source/blender/blenkernel/intern/colortools.cc b/source/blender/blenkernel/intern/colortools.cc index 8bec08a97ff..eee0716e194 100644 --- a/source/blender/blenkernel/intern/colortools.cc +++ b/source/blender/blenkernel/intern/colortools.cc @@ -451,7 +451,7 @@ void BKE_curvemap_handle_set(CurveMap *cuma, int type) /* *********************** Making the tables and display ************** */ /** - * reduced copy of #calchandleNurb_intern code in curve.c + * Reduced copy of #calchandleNurb_intern code in `curve.cc`. */ static void calchandle_curvemap(BezTriple *bezt, const BezTriple *prev, const BezTriple *next) { diff --git a/source/blender/blenkernel/intern/constraint.cc b/source/blender/blenkernel/intern/constraint.cc index 9329edb20a9..88b3b7f1061 100644 --- a/source/blender/blenkernel/intern/constraint.cc +++ b/source/blender/blenkernel/intern/constraint.cc @@ -1110,7 +1110,8 @@ static void childof_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *tar } } -/* XXX NOTE: con->flag should be CONSTRAINT_SPACEONCE for bone-childof, patched in `readfile.c`. */ +/* XXX NOTE: con->flag should be CONSTRAINT_SPACEONCE for bone-childof, patched in `readfile.cc`. + */ static bConstraintTypeInfo CTI_CHILDOF = { /*type*/ CONSTRAINT_TYPE_CHILDOF, /*size*/ sizeof(bChildOfConstraint), @@ -2634,7 +2635,7 @@ static void armdef_accumulate_bone(bConstraintTarget *ct, float basemat[4][4]; /* The target is a B-Bone: - * FIRST: find the segment (see b_bone_deform in armature.c) + * FIRST: find the segment (see b_bone_deform in `armature.cc`) * Need to transform co back to bone-space, only need y. */ float y = iamat[0][1] * co[0] + iamat[1][1] * co[1] + iamat[2][1] * co[2] + iamat[3][1]; diff --git a/source/blender/blenkernel/intern/curveprofile.cc b/source/blender/blenkernel/intern/curveprofile.cc index 934ab2630ff..8ff91627dfa 100644 --- a/source/blender/blenkernel/intern/curveprofile.cc +++ b/source/blender/blenkernel/intern/curveprofile.cc @@ -538,7 +538,7 @@ static bool is_curved_edge(CurveProfilePoint *path, int i) /** * Used to set bezier handle locations in the sample creation process. Reduced copy of - * #calchandleNurb_intern code in curve.c, mostly changed by removing the third dimension. + * #calchandleNurb_intern code in `curve.cc`, mostly changed by removing the third dimension. */ static void point_calculate_handle(CurveProfilePoint *point, const CurveProfilePoint *prev, diff --git a/source/blender/blenkernel/intern/customdata.cc b/source/blender/blenkernel/intern/customdata.cc index 6e1ddcaefc3..8f044d80845 100644 --- a/source/blender/blenkernel/intern/customdata.cc +++ b/source/blender/blenkernel/intern/customdata.cc @@ -5213,14 +5213,14 @@ static void blend_read_mdisps(BlendDataReader *reader, /* this calculation is only correct for loop mdisps; * if loading pre-BMesh face mdisps this will be * overwritten with the correct value in - * bm_corners_to_loops() */ + * #bm_corners_to_loops() */ float gridsize = sqrtf(mdisps[i].totdisp); mdisps[i].level = int(logf(gridsize - 1.0f) / float(M_LN2)) + 1; } if (BLO_read_requires_endian_switch(reader) && (mdisps[i].disps)) { - /* DNA_struct_switch_endian doesn't do endian swap for (*disps)[] */ - /* this does swap for data written at write_mdisps() - readfile.c */ + /* #DNA_struct_switch_endian doesn't do endian swap for `(*disps)[]` */ + /* this does swap for data written at #write_mdisps() - `readfile.cc`. */ BLI_endian_switch_float_array(*mdisps[i].disps, mdisps[i].totdisp * 3); } if (!external && !mdisps[i].disps) { diff --git a/source/blender/blenkernel/intern/data_transfer_intern.h b/source/blender/blenkernel/intern/data_transfer_intern.h index 54373198bf9..185209d80d5 100644 --- a/source/blender/blenkernel/intern/data_transfer_intern.h +++ b/source/blender/blenkernel/intern/data_transfer_intern.h @@ -53,7 +53,7 @@ bool data_transfer_layersmapping_vgroups(struct ListBase *r_map, int fromlayers, int tolayers); -/* Defined in customdata.c */ +/* Defined in `customdata.cc`. */ /** * Normals are special, we need to take care of source & destination spaces. diff --git a/source/blender/blenkernel/intern/editmesh_bvh.cc b/source/blender/blenkernel/intern/editmesh_bvh.cc index 19dc8005059..17a2c4c2b6f 100644 --- a/source/blender/blenkernel/intern/editmesh_bvh.cc +++ b/source/blender/blenkernel/intern/editmesh_bvh.cc @@ -206,7 +206,7 @@ static void bmbvh_tri_from_face(const float *cos[3], } } -/* Taken from `bvhutils.c`. */ +/* Taken from `bvhutils.cc`. */ /* -------------------------------------------------------------------- */ /* BKE_bmbvh_ray_cast */ diff --git a/source/blender/blenkernel/intern/gpencil_geom_legacy.cc b/source/blender/blenkernel/intern/gpencil_geom_legacy.cc index 3666aee23ba..1a24b6d2064 100644 --- a/source/blender/blenkernel/intern/gpencil_geom_legacy.cc +++ b/source/blender/blenkernel/intern/gpencil_geom_legacy.cc @@ -654,7 +654,7 @@ bool BKE_gpencil_stroke_stretch(bGPDstroke *gps, if (!isfinite(used_percent_length)) { /* #used_percent_length must always be finite, otherwise a segfault occurs. * Since this function should never segfault, set #used_percent_length to a safe fallback. */ - /* NOTE: This fallback is used if gps->totpoints == 2, see MOD_gpencil_legacy_length.c */ + /* NOTE: This fallback is used if `gps->totpoints == 2`, see `MOD_gpencil_legacy_length.cc`. */ used_percent_length = 0.1f; } diff --git a/source/blender/blenkernel/intern/gpencil_modifier_legacy.cc b/source/blender/blenkernel/intern/gpencil_modifier_legacy.cc index 19a7bab050f..5a6cd20bfcd 100644 --- a/source/blender/blenkernel/intern/gpencil_modifier_legacy.cc +++ b/source/blender/blenkernel/intern/gpencil_modifier_legacy.cc @@ -337,7 +337,7 @@ void BKE_gpencil_frame_active_set(Depsgraph *depsgraph, bGPdata *gpd) void BKE_gpencil_modifier_init() { /* Initialize modifier types */ - gpencil_modifier_type_init(modifier_gpencil_types); /* MOD_gpencil_legacy_util.c */ + gpencil_modifier_type_init(modifier_gpencil_types); /* `MOD_gpencil_legacy_util.cc`. */ #if 0 /* Note that GPencil actually does not support these at the moment, diff --git a/source/blender/blenkernel/intern/image_gen.cc b/source/blender/blenkernel/intern/image_gen.cc index 111ef8e36ee..d29d669d28c 100644 --- a/source/blender/blenkernel/intern/image_gen.cc +++ b/source/blender/blenkernel/intern/image_gen.cc @@ -344,7 +344,7 @@ static void checker_board_grid_fill( } } -/* defined in image.c */ +/* Defined in `image.cc`. */ static void checker_board_text( uchar *rect, float *rect_float, int width, int height, int step, int outline) diff --git a/source/blender/blenkernel/intern/mesh_legacy_convert.cc b/source/blender/blenkernel/intern/mesh_legacy_convert.cc index f2f07535959..4938615eaed 100644 --- a/source/blender/blenkernel/intern/mesh_legacy_convert.cc +++ b/source/blender/blenkernel/intern/mesh_legacy_convert.cc @@ -238,7 +238,7 @@ void BKE_mesh_calc_edges_legacy(Mesh *me) void BKE_mesh_strip_loose_faces(Mesh *me) { - /* NOTE: We need to keep this for edge creation (for now?), and some old `readfile.c` code. */ + /* NOTE: We need to keep this for edge creation (for now?), and some old `readfile.cc` code. */ MFace *f; int a, b; MFace *mfaces = me->mface; diff --git a/source/blender/blenkernel/intern/mesh_normals.cc b/source/blender/blenkernel/intern/mesh_normals.cc index 77a1ae10ca4..40fa61301f3 100644 --- a/source/blender/blenkernel/intern/mesh_normals.cc +++ b/source/blender/blenkernel/intern/mesh_normals.cc @@ -7,7 +7,7 @@ * * Mesh normal calculation functions. * - * \see bmesh_mesh_normals.c for the equivalent #BMesh functionality. + * \see `bmesh_mesh_normals.cc` for the equivalent #BMesh functionality. */ #include diff --git a/source/blender/blenkernel/intern/mesh_tessellate.cc b/source/blender/blenkernel/intern/mesh_tessellate.cc index 16ae7ece52e..83c3ab77544 100644 --- a/source/blender/blenkernel/intern/mesh_tessellate.cc +++ b/source/blender/blenkernel/intern/mesh_tessellate.cc @@ -8,7 +8,7 @@ * This file contains code for face tessellation * (creating triangles from polygons). * - * \see bmesh_mesh_tessellate.c for the #BMesh equivalent of this file. + * \see `bmesh_mesh_tessellate.cc` for the #BMesh equivalent of this file. */ #include "BLI_enumerable_thread_specific.hh" diff --git a/source/blender/blenkernel/intern/modifier.cc b/source/blender/blenkernel/intern/modifier.cc index caeefae28c2..b882d78094f 100644 --- a/source/blender/blenkernel/intern/modifier.cc +++ b/source/blender/blenkernel/intern/modifier.cc @@ -1202,7 +1202,7 @@ void BKE_modifier_blend_write(BlendWriter *writer, const ID *id_owner, ListBase * Unfortunately, this can not be done as a regular do_versions() since the modifier type is * set to NONE, so the do_versions code wouldn't know where the modifier came from. * - * The best approach seems to have the functionality in versioning_280.c but still call the + * The best approach seems to have the functionality in `versioning_280.cc` but still call the * function from #BKE_modifier_blend_read_data(). */ diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc index 0387d27e60c..67aed37b9cb 100644 --- a/source/blender/blenkernel/intern/node.cc +++ b/source/blender/blenkernel/intern/node.cc @@ -424,7 +424,7 @@ static void node_foreach_cache(ID *id, key.id_session_uuid = id->session_uuid; key.offset_in_ID = offsetof(bNodeTree, previews); - /* TODO: see also `direct_link_nodetree()` in readfile.c. */ + /* TODO: see also `direct_link_nodetree()` in `readfile.cc`. */ #if 0 function_callback(id, &key, static_cast(&nodetree->previews), 0, user_data); #endif diff --git a/source/blender/blenkernel/intern/shader_fx.cc b/source/blender/blenkernel/intern/shader_fx.cc index 114f00a8666..51391ff28ff 100644 --- a/source/blender/blenkernel/intern/shader_fx.cc +++ b/source/blender/blenkernel/intern/shader_fx.cc @@ -58,7 +58,7 @@ bool BKE_shaderfx_has_gpencil(const Object *ob) void BKE_shaderfx_init() { /* Initialize shaders */ - shaderfx_type_init(shader_fx_types); /* FX_shader_util.c */ + shaderfx_type_init(shader_fx_types); /* `FX_shader_util.cc`. */ } ShaderFxData *BKE_shaderfx_new(int type) diff --git a/source/blender/blenkernel/intern/tracking_auto.cc b/source/blender/blenkernel/intern/tracking_auto.cc index de1dd55b991..86a7b76d950 100644 --- a/source/blender/blenkernel/intern/tracking_auto.cc +++ b/source/blender/blenkernel/intern/tracking_auto.cc @@ -278,8 +278,7 @@ static MovieTrackingMarker libmv_marker_to_dna_marker(const libmv_Marker &libmv_ /* -------------------------------------------------------------------- */ /** \name General helpers. * - * TODO(sergey): Should be moved to tracking_util.c - * + * TODO(sergey): Should be moved to `tracking_util.cc`. * \{ */ /* Returns false if marker crossed margin area from frame bounds. */ diff --git a/source/blender/blenlib/BLI_fileops.h b/source/blender/blenlib/BLI_fileops.h index 2f9fe40f2e2..2bc18c8a7f5 100644 --- a/source/blender/blenlib/BLI_fileops.h +++ b/source/blender/blenlib/BLI_fileops.h @@ -174,7 +174,7 @@ struct direntry; /** * Does the specified path point to a directory? - * \note Would be better in `fileops.c` except that it needs `stat.h` so add here. + * \note Would be better in `fileops.cc` except that it needs `stat.h` so add here. */ bool BLI_is_dir(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); /** diff --git a/source/blender/blenlib/BLI_mesh_boolean.hh b/source/blender/blenlib/BLI_mesh_boolean.hh index e3eab1ee6df..4fa996e8e46 100644 --- a/source/blender/blenlib/BLI_mesh_boolean.hh +++ b/source/blender/blenlib/BLI_mesh_boolean.hh @@ -18,7 +18,8 @@ namespace blender::meshintersect { /** * Enum values after BOOLEAN_NONE need to match BMESH_ISECT_BOOLEAN_... values in - * editmesh_intersect.c. */ + * `editmesh_intersect.cc`. + */ enum class BoolOpType { None = -1, /* Aligned with #BooleanModifierOp. */ diff --git a/source/blender/blenlib/BLI_rand.h b/source/blender/blenlib/BLI_rand.h index 4dff771f9c0..8aca93264bd 100644 --- a/source/blender/blenlib/BLI_rand.h +++ b/source/blender/blenlib/BLI_rand.h @@ -103,7 +103,7 @@ void BLI_array_randomize(void *data, void BLI_bitmap_randomize(unsigned int *bitmap, unsigned int bits_num, unsigned int seed) ATTR_NONNULL(1); -/** Better seed for the random number generator, using noise.c hash[] */ +/** Better seed for the random number generator, using `noise.cc` hash[] */ /** Allows up to BLENDER_MAX_THREADS threads to address */ void BLI_thread_srandom(int thread, unsigned int seed); diff --git a/source/blender/blenlib/intern/polyfill_2d_beautify.c b/source/blender/blenlib/intern/polyfill_2d_beautify.c index 3f9b6d49100..fc6167a5b1f 100644 --- a/source/blender/blenlib/intern/polyfill_2d_beautify.c +++ b/source/blender/blenlib/intern/polyfill_2d_beautify.c @@ -15,7 +15,8 @@ * - The polygon is primitive with no holes with a continuous boundary. * - Triangles have consistent winding. * - 2d (saves some hassles projecting face pairs on an axis for every edge-rotation) - * also saves us having to store all previous edge-states (see #EdRotState in bmesh_beautify.c) + * also saves us having to store all previous edge-states + * (see #EdRotState in `bmesh_beautify.cc`). * * \note * diff --git a/source/blender/blenlib/intern/rand.cc b/source/blender/blenlib/intern/rand.cc index 19949fa428b..6b995450ec9 100644 --- a/source/blender/blenlib/intern/rand.cc +++ b/source/blender/blenlib/intern/rand.cc @@ -25,7 +25,7 @@ #include "BLI_strict_flags.h" #include "BLI_sys_types.h" -extern "C" uchar BLI_noise_hash_uchar_512[512]; /* noise.c */ +extern "C" uchar BLI_noise_hash_uchar_512[512]; /* `noise.cc` */ #define hash BLI_noise_hash_uchar_512 /** diff --git a/source/blender/blenlib/intern/string_utils.c b/source/blender/blenlib/intern/string_utils.c index 60142945d6a..9c85d15f623 100644 --- a/source/blender/blenlib/intern/string_utils.c +++ b/source/blender/blenlib/intern/string_utils.c @@ -434,7 +434,7 @@ bool BLI_uniquename_cb(UniquenameCheckCallback unique_check, * Generic function to set a unique name. It is only designed to be used in situations * where the name is part of the struct. * - * For places where this is used, see constraint.c for example... + * For places where this is used, see `constraint.cc` for example... * * \param name_offset: should be calculated using `offsetof(structname, membername)` * macro from `stddef.h` diff --git a/source/blender/blenloader/BLO_read_write.h b/source/blender/blenloader/BLO_read_write.h index add681b84e4..eaa8b35b6cc 100644 --- a/source/blender/blenloader/BLO_read_write.h +++ b/source/blender/blenloader/BLO_read_write.h @@ -165,7 +165,7 @@ void blo_write_id_struct(BlendWriter *writer, * Required for writing properly embedded IDs currently. * * \note Once there is a better generic handling of embedded IDs, - * this may go back to private code in `writefile.c`. + * this may go back to private code in `writefile.cc`. */ typedef struct BLO_Write_IDBuffer BLO_Write_IDBuffer; diff --git a/source/blender/blenloader/BLO_undofile.h b/source/blender/blenloader/BLO_undofile.h index 9c2d1acb16f..96f245d9506 100644 --- a/source/blender/blenloader/BLO_undofile.h +++ b/source/blender/blenloader/BLO_undofile.h @@ -66,7 +66,7 @@ typedef struct { extern "C" { #endif -/* Actually only used `writefile.c`. */ +/* Actually only used `writefile.cc`. */ void BLO_memfile_write_init(MemFileWriteData *mem_data, MemFile *written_memfile, diff --git a/source/blender/blenloader/BLO_writefile.h b/source/blender/blenloader/BLO_writefile.h index 4d46875fd56..b1bc0391695 100644 --- a/source/blender/blenloader/BLO_writefile.h +++ b/source/blender/blenloader/BLO_writefile.h @@ -6,7 +6,7 @@ /** \file * \ingroup blenloader - * \brief external `writefile.c` function prototypes. + * \brief external `writefile.cc` function prototypes. */ #ifdef __cplusplus diff --git a/source/blender/blenloader/intern/versioning_250.cc b/source/blender/blenloader/intern/versioning_250.cc index 001dc5a7ff0..47b4fceae05 100644 --- a/source/blender/blenloader/intern/versioning_250.cc +++ b/source/blender/blenloader/intern/versioning_250.cc @@ -77,7 +77,7 @@ #include -/* Make preferences read-only, use versioning_userdef.c. */ +/* Make preferences read-only, use `versioning_userdef.cc`. */ #define U (*((const UserDef *)&U)) /* 2.50 patch */ @@ -107,7 +107,7 @@ static void area_add_header_region(ScrArea *area, ListBase *lb) void sequencer_init_preview_region(ARegion *region) { /* XXX a bit ugly still, copied from space_sequencer */ - /* NOTE: if you change values here, also change them in space_sequencer.c, sequencer_new */ + /* NOTE: if you change values here, also change them in `space_sequencer.cc`, sequencer_new */ region->regiontype = RGN_TYPE_PREVIEW; region->alignment = RGN_ALIGN_TOP; region->flag &= ~RGN_FLAG_HIDDEN; @@ -548,7 +548,7 @@ static void do_version_bone_roll_256(Bone *bone) } } -/* deprecated, only keep this for readfile.c */ +/* deprecated, only keep this for `readfile.cc` */ /* XXX Deprecated function to add a socket in ntree->inputs/ntree->outputs list * (previously called node_group_add_socket). This function has been superseded * by the implementation of proxy nodes. It is still necessary though diff --git a/source/blender/blenloader/intern/versioning_260.cc b/source/blender/blenloader/intern/versioning_260.cc index ebd8e053654..92d186321e3 100644 --- a/source/blender/blenloader/intern/versioning_260.cc +++ b/source/blender/blenloader/intern/versioning_260.cc @@ -76,7 +76,7 @@ #include "readfile.h" -/* Make preferences read-only, use versioning_userdef.c. */ +/* Make preferences read-only, use `versioning_userdef.cc`. */ #define U (*((const UserDef *)&U)) static void do_versions_nodetree_image_default_alpha_output(bNodeTree *ntree) diff --git a/source/blender/blenloader/intern/versioning_270.cc b/source/blender/blenloader/intern/versioning_270.cc index 450722965fd..1e3caec70d3 100644 --- a/source/blender/blenloader/intern/versioning_270.cc +++ b/source/blender/blenloader/intern/versioning_270.cc @@ -74,7 +74,7 @@ #include "MEM_guardedalloc.h" -/* Make preferences read-only, use versioning_userdef.c. */ +/* Make preferences read-only, use `versioning_userdef.cc`. */ #define U (*((const UserDef *)&U)) /* ************************************************** */ diff --git a/source/blender/blenloader/intern/versioning_280.cc b/source/blender/blenloader/intern/versioning_280.cc index c3d6e5c02ed..a03523f96f2 100644 --- a/source/blender/blenloader/intern/versioning_280.cc +++ b/source/blender/blenloader/intern/versioning_280.cc @@ -108,7 +108,7 @@ #include "MEM_guardedalloc.h" -/* Make preferences read-only, use versioning_userdef.c. */ +/* Make preferences read-only, use `versioning_userdef.cc`. */ #define U (*((const UserDef *)&U)) static bScreen *screen_parent_find(const bScreen *screen) @@ -2435,7 +2435,7 @@ void do_versions_after_linking_280(FileData *fd, Main *bmain) } /* Create a tree store element for the collection. This is normally - * done in check_persistent (outliner_tree.c), but we need to access + * done in check_persistent `outliner_tree.cc`, but we need to access * it here :/ (expand element if it's the only one) */ TreeStoreElem *tselem = static_cast( BLI_mempool_calloc(space_outliner->treestore)); @@ -3098,8 +3098,8 @@ void do_versions_after_linking_280(FileData *fd, Main *bmain) * * \note Be sure to check when bumping the version: * - #blo_do_versions_280 in this file. - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ @@ -6527,8 +6527,8 @@ void blo_do_versions_280(FileData *fd, Library * /*lib*/, Main *bmain) * * \note Be sure to check when bumping the version: * - #do_versions_after_linking_280 in this file. - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ diff --git a/source/blender/blenloader/intern/versioning_290.cc b/source/blender/blenloader/intern/versioning_290.cc index baa8b1da6cd..cf455800dd0 100644 --- a/source/blender/blenloader/intern/versioning_290.cc +++ b/source/blender/blenloader/intern/versioning_290.cc @@ -70,7 +70,7 @@ #include "readfile.h" #include "versioning_common.h" -/* Make preferences read-only, use versioning_userdef.c. */ +/* Make preferences read-only, use `versioning_userdef.cc`. */ #define U (*((const UserDef *)&U)) static eSpaceSeq_Proxy_RenderSize get_sequencer_render_size(Main *bmain) @@ -676,8 +676,8 @@ void do_versions_after_linking_290(FileData * /*fd*/, Main *bmain) * * \note Be sure to check when bumping the version: * - #blo_do_versions_290 in this file. - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ @@ -1967,8 +1967,8 @@ void blo_do_versions_290(FileData *fd, Library * /*lib*/, Main *bmain) * Versioning code until next subversion bump goes here. * * \note Be sure to check when bumping the version: - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ diff --git a/source/blender/blenloader/intern/versioning_300.cc b/source/blender/blenloader/intern/versioning_300.cc index 13bae7431a1..9bf811fadba 100644 --- a/source/blender/blenloader/intern/versioning_300.cc +++ b/source/blender/blenloader/intern/versioning_300.cc @@ -1342,8 +1342,8 @@ void do_versions_after_linking_300(FileData * /*fd*/, Main *bmain) * * \note Be sure to check when bumping the version: * - #blo_do_versions_300 in this file. - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ @@ -4523,8 +4523,8 @@ void blo_do_versions_300(FileData *fd, Library * /*lib*/, Main *bmain) * * \note Be sure to check when bumping the version: * - #do_versions_after_linking_300 in this file. - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ diff --git a/source/blender/blenloader/intern/versioning_400.cc b/source/blender/blenloader/intern/versioning_400.cc index 0c272428902..6d78ebd5291 100644 --- a/source/blender/blenloader/intern/versioning_400.cc +++ b/source/blender/blenloader/intern/versioning_400.cc @@ -62,8 +62,8 @@ void do_versions_after_linking_400(FileData * /*fd*/, Main *bmain) * * \note Be sure to check when bumping the version: * - #blo_do_versions_400 in this file. - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ @@ -510,8 +510,8 @@ void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain) * * \note Be sure to check when bumping the version: * - #do_versions_after_linking_400 in this file. - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme + * - `versioning_userdef.cc`, #blo_do_versions_userdef + * - `versioning_userdef.cc`, #do_versions_theme * * \note Keep this message at the bottom of the function. */ diff --git a/source/blender/blenloader/intern/versioning_defaults.cc b/source/blender/blenloader/intern/versioning_defaults.cc index 86ca6400b84..092d279200e 100644 --- a/source/blender/blenloader/intern/versioning_defaults.cc +++ b/source/blender/blenloader/intern/versioning_defaults.cc @@ -66,7 +66,7 @@ #include "versioning_common.h" -/* Make preferences read-only, use versioning_userdef.c. */ +/* Make preferences read-only, use `versioning_userdef.cc`. */ #define U (*((const UserDef *)&U)) static bool blo_is_builtin_template(const char *app_template) diff --git a/source/blender/blenloader/intern/versioning_legacy.cc b/source/blender/blenloader/intern/versioning_legacy.cc index b669b78b744..ca7f512eb56 100644 --- a/source/blender/blenloader/intern/versioning_legacy.cc +++ b/source/blender/blenloader/intern/versioning_legacy.cc @@ -77,7 +77,7 @@ #include -/* Make preferences read-only, use versioning_userdef.c. */ +/* Make preferences read-only, use `versioning_userdef.cc`. */ #define U (*((const UserDef *)&U)) static void vcol_to_fcol(Mesh *me) @@ -1163,7 +1163,7 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain) if ((tex->flag & (TEX_CHECKER_ODD + TEX_CHECKER_EVEN)) == 0) { tex->flag |= TEX_CHECKER_ODD; } - /* copied from kernel texture.c */ + /* Copied from kernel `texture.cc`. */ if (tex->ns_outscale == 0.0f) { /* musgrave */ tex->mg_H = 1.0f; diff --git a/source/blender/blenloader/intern/writefile.cc b/source/blender/blenloader/intern/writefile.cc index e8b250f2d0f..650742aba4d 100644 --- a/source/blender/blenloader/intern/writefile.cc +++ b/source/blender/blenloader/intern/writefile.cc @@ -1160,7 +1160,7 @@ static void id_buffer_init_from_id(BLO_Write_IDBuffer *id_buffer, ID *id, const temp_id->newid = nullptr; /* Even though in theory we could be able to preserve this python instance across undo even * when we need to re-read the ID into its original address, this is currently cleared in - * #direct_link_id_common in `readfile.c` anyway. */ + * #direct_link_id_common in `readfile.cc` anyway. */ temp_id->py_instance = nullptr; } diff --git a/source/blender/bmesh/tools/bmesh_path_region_uv.cc b/source/blender/bmesh/tools/bmesh_path_region_uv.cc index 12b24cfd36c..842679d7451 100644 --- a/source/blender/bmesh/tools/bmesh_path_region_uv.cc +++ b/source/blender/bmesh/tools/bmesh_path_region_uv.cc @@ -8,7 +8,7 @@ * Find the region defined by the path(s) between 2 UV elements. * (path isn't ordered). * - * \note This uses the same behavior as bmesh_path_region.c + * \note This uses the same behavior as `bmesh_path_region.cc` * however walking UVs causes enough differences that it's * impractical to share the code. */ diff --git a/source/blender/bmesh/tools/bmesh_path_uv.cc b/source/blender/bmesh/tools/bmesh_path_uv.cc index cf3cc14c074..36d95bbf132 100644 --- a/source/blender/bmesh/tools/bmesh_path_uv.cc +++ b/source/blender/bmesh/tools/bmesh_path_uv.cc @@ -30,7 +30,7 @@ /** * Use skip options when we want to start measuring from a boundary. * - * See #step_cost_3_v3_ex in bmesh_path.c which follows the same logic. + * See #step_cost_3_v3_ex in `bmesh_path.cc` which follows the same logic. */ static float step_cost_3_v2_ex( const float v1[2], const float v2[2], const float v3[2], bool skip_12, bool skip_23) diff --git a/source/blender/bmesh/tools/bmesh_wireframe.h b/source/blender/bmesh/tools/bmesh_wireframe.h index 015328d2fe0..fad57b10f52 100644 --- a/source/blender/bmesh/tools/bmesh_wireframe.h +++ b/source/blender/bmesh/tools/bmesh_wireframe.h @@ -18,7 +18,7 @@ extern "C" { * \param defgrp_index: Vertex group index, -1 for no vertex groups. * * \note All edge tags must be cleared. - * \note Behavior matches MOD_solidify.c + * \note Behavior matches `MOD_solidify.cc`. */ void BM_mesh_wireframe(BMesh *bm, float offset, diff --git a/source/blender/compositor/COM_compositor.h b/source/blender/compositor/COM_compositor.h index aace84a7a1e..172b5d4b199 100644 --- a/source/blender/compositor/COM_compositor.h +++ b/source/blender/compositor/COM_compositor.h @@ -293,8 +293,8 @@ struct Render; /** * \brief The main method that is used to execute the compositor tree. - * It can be executed during editing (blenkernel/node.cc) or rendering - * (renderer/pipeline.c) + * It can be executed during editing (`blenkernel/node.cc`) or rendering + * (`renderer/pipeline.cc`). * * \param render: [struct Render] * Render instance for GPU context. diff --git a/source/blender/compositor/nodes/COM_ConvertAlphaNode.cc b/source/blender/compositor/nodes/COM_ConvertAlphaNode.cc index 3e9953a9df6..1d974cd9be8 100644 --- a/source/blender/compositor/nodes/COM_ConvertAlphaNode.cc +++ b/source/blender/compositor/nodes/COM_ConvertAlphaNode.cc @@ -13,7 +13,7 @@ void ConvertAlphaNode::convert_to_operations(NodeConverter &converter, NodeOperation *operation = nullptr; const bNode *node = this->get_bnode(); - /* value hardcoded in rna_nodetree.c */ + /* Value hardcoded in `rna_nodetree.cc`. */ if (node->custom1 == 1) { operation = new ConvertPremulToStraightOperation(); } diff --git a/source/blender/compositor/operations/COM_VectorBlurOperation.cc b/source/blender/compositor/operations/COM_VectorBlurOperation.cc index ec213784213..a7497352a03 100644 --- a/source/blender/compositor/operations/COM_VectorBlurOperation.cc +++ b/source/blender/compositor/operations/COM_VectorBlurOperation.cc @@ -169,7 +169,7 @@ void VectorBlurOperation::generate_vector_blur(float *data, /* -------------------------------------------------------------------- */ /** \name Spans * - * Duplicated logic from `zbuf.c`. + * Duplicated logic from `zbuf.cc`. * \{ */ /** Span fill in method, is also used to localize data for Z-buffering. */ @@ -336,7 +336,7 @@ struct DrawBufPixel { }; /** - * \note Near duplicate of `zspan_scanconvert` in `zbuf.c` with some minor adjustments. + * \note Near duplicate of `zspan_scanconvert` in `zbuf.cc` with some minor adjustments. */ static void zbuf_fill_in_rgba( ZSpan *zspan, DrawBufPixel *col, float *v1, float *v2, float *v3, float *v4) diff --git a/source/blender/draw/DRW_select_buffer.h b/source/blender/draw/DRW_select_buffer.h index e69e4335775..8286b4190fc 100644 --- a/source/blender/draw/DRW_select_buffer.h +++ b/source/blender/draw/DRW_select_buffer.h @@ -70,7 +70,7 @@ typedef struct SELECTID_Context { bool is_dirty; } SELECTID_Context; -/* draw_select_buffer.c */ +/* `draw_select_buffer.cc` */ bool DRW_select_buffer_elem_get(uint sel_id, uint *r_elem, uint *r_base_index, char *r_elem_type); uint DRW_select_buffer_context_offset_for_object_elem(struct Depsgraph *depsgraph, diff --git a/source/blender/draw/engines/eevee/eevee_lut_gen.cc b/source/blender/draw/engines/eevee/eevee_lut_gen.cc index ecde34914d4..b42289ff04c 100644 --- a/source/blender/draw/engines/eevee/eevee_lut_gen.cc +++ b/source/blender/draw/engines/eevee/eevee_lut_gen.cc @@ -43,7 +43,7 @@ float *EEVEE_lut_update_ggx_brdf(int lut_size) float *data = static_cast(GPU_texture_read(tex, GPU_DATA_FLOAT, 0)); GPU_texture_free(tex); #if DO_FILE_OUTPUT - /* Content is to be put inside eevee_lut.c */ + /* Content is to be put inside `eevee_lut.cc`. */ FILE *f = BLI_fopen("bsdf_split_sum_ggx.h", "w"); fprintf(f, "const float bsdf_split_sum_ggx[%d * %d * 2] = {", lut_size, lut_size); for (int i = 0; i < lut_size * lut_size * 2;) { @@ -88,7 +88,7 @@ float *EEVEE_lut_update_ggx_btdf(int lut_size, int lut_depth) GPU_texture_free(tex); #if DO_FILE_OUTPUT - /* Content is to be put inside eevee_lut.c. Don't forget to format the output. */ + /* Content is to be put inside `eevee_lut.cc`. Don't forget to format the output. */ FILE *f = BLI_fopen("btdf_split_sum_ggx.h", "w"); fprintf(f, "const float btdf_split_sum_ggx[%d][%d * %d * 2] = {", lut_depth, lut_size, lut_size); fprintf(f, "\n "); diff --git a/source/blender/draw/engines/eevee/eevee_private.h b/source/blender/draw/engines/eevee/eevee_private.h index ce14f0779a4..dd9ae0cb4b2 100644 --- a/source/blender/draw/engines/eevee/eevee_private.h +++ b/source/blender/draw/engines/eevee/eevee_private.h @@ -1058,7 +1058,7 @@ typedef struct EEVEE_PrivateData { int render_sample_count_per_timestep; } EEVEE_PrivateData; /* Transient data */ -/* eevee_data.c */ +/* `eevee_data.cc` */ void EEVEE_motion_blur_data_init(EEVEE_MotionBlurData *mb); void EEVEE_motion_blur_data_free(EEVEE_MotionBlurData *mb); @@ -1084,7 +1084,7 @@ EEVEE_WorldEngineData *EEVEE_world_data_ensure(World *wo); void eevee_id_update(void *vedata, ID *id); -/* eevee_materials.c */ +/* `eevee_materials.cc` */ struct GPUTexture *EEVEE_materials_get_util_tex(void); /* XXX */ void EEVEE_materials_init(EEVEE_ViewLayerData *sldata, @@ -1122,7 +1122,7 @@ void EEVEE_material_bind_resources(DRWShadingGroup *shgrp, const float alpha_clip_threshold, bool use_ssrefraction, bool use_alpha_blend); -/* eevee_lights.c */ +/* `eevee_lights.cc` */ /** * Reconstruct local `obmat` from EEVEE_light. (normalized). @@ -1132,7 +1132,7 @@ void EEVEE_lights_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_lights_cache_add(EEVEE_ViewLayerData *sldata, struct Object *ob); void EEVEE_lights_cache_finish(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); -/* eevee_shadows.c */ +/* `eevee_shadows.cc` */ void eevee_contact_shadow_setup(const Light *la, EEVEE_Shadow *evsh); void EEVEE_shadows_init(EEVEE_ViewLayerData *sldata); @@ -1160,7 +1160,7 @@ void EEVEE_shadows_draw_cascades(EEVEE_ViewLayerData *sldata, void EEVEE_shadow_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, uint tot_samples); void EEVEE_shadow_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); -/* eevee_sampling.c */ +/* `eevee_sampling.cc` */ /** * Special ball distribution: @@ -1183,7 +1183,7 @@ void EEVEE_sample_ellipse(int sample_ofs, float rsample[3]); void EEVEE_random_rotation_m4(int sample_ofs, float scale, float r_mat[4][4]); -/* eevee_shaders.c */ +/* `eevee_shaders.cc` */ void EEVEE_shaders_material_shaders_init(void); struct DRWShaderLibrary *EEVEE_shader_lib_get(void); @@ -1289,7 +1289,7 @@ GPUShader *eevee_shaders_sh_create_helper(const char *name, const char *defines, bool use_layered_rendering); -/* eevee_lightprobes.c */ +/* `eevee_lightprobes.cc` */ bool EEVEE_lightprobes_obj_visibility_cb(bool vis_in, void *user_data); void EEVEE_lightprobes_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); @@ -1360,7 +1360,7 @@ void EEVEE_lightprobes_planar_data_from_object(Object *ob, EEVEE_PlanarReflection *eplanar, EEVEE_LightProbeVisTest *vis_test); -/* eevee_depth_of_field.c */ +/* `eevee_depth_of_field.cc` */ int EEVEE_depth_of_field_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, Object *camera); void EEVEE_depth_of_field_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); @@ -1372,7 +1372,7 @@ int EEVEE_depth_of_field_sample_count_get(EEVEE_EffectsInfo *effects, int sample_count, int *r_ring_count); -/* eevee_bloom.c */ +/* `eevee_bloom.cc` */ int EEVEE_bloom_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_bloom_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); @@ -1380,7 +1380,7 @@ void EEVEE_bloom_draw(EEVEE_Data *vedata); void EEVEE_bloom_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, uint tot_samples); void EEVEE_bloom_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); -/* eevee_cryptomatte.c */ +/* `eevee_cryptomatte.cc` */ void EEVEE_cryptomatte_renderpasses_init(EEVEE_Data *vedata); void EEVEE_cryptomatte_output_init(EEVEE_ViewLayerData *sldata, @@ -1411,7 +1411,7 @@ void EEVEE_cryptomatte_render_result(struct RenderLayer *rl, void EEVEE_cryptomatte_store_metadata(EEVEE_Data *vedata, struct RenderResult *render_result); void EEVEE_cryptomatte_free(EEVEE_Data *vedata); -/* eevee_occlusion.c */ +/* `eevee_occlusion.cc` */ int EEVEE_occlusion_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_occlusion_output_init(EEVEE_ViewLayerData *sldata, @@ -1423,7 +1423,7 @@ void EEVEE_occlusion_compute(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_occlusion_draw_debug(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_occlusion_free(void); -/* eevee_screen_raytrace.c */ +/* `eevee_screen_raytrace.cc` */ int EEVEE_screen_raytrace_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_screen_raytrace_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); @@ -1434,7 +1434,7 @@ void EEVEE_reflection_output_init(EEVEE_ViewLayerData *sldata, uint tot_samples); void EEVEE_reflection_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); -/* eevee_subsurface.c */ +/* `eevee_subsurface.cc` */ void EEVEE_subsurface_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_subsurface_draw_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); @@ -1451,7 +1451,7 @@ void EEVEE_subsurface_data_render(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedat void EEVEE_subsurface_compute(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_subsurface_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); -/* eevee_motion_blur.c */ +/* `eevee_motion_blur.cc` */ int EEVEE_motion_blur_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_motion_blur_step_set(EEVEE_Data *vedata, int step); @@ -1469,12 +1469,12 @@ void EEVEE_motion_blur_swap_data(EEVEE_Data *vedata); void EEVEE_motion_blur_cache_finish(EEVEE_Data *vedata); void EEVEE_motion_blur_draw(EEVEE_Data *vedata); -/* eevee_mist.c */ +/* `eevee_mist.cc` */ void EEVEE_mist_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_mist_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); -/* eevee_renderpasses.c */ +/* `eevee_renderpasses.cc` */ void EEVEE_renderpasses_init(EEVEE_Data *vedata); void EEVEE_renderpasses_output_init(EEVEE_ViewLayerData *sldata, @@ -1510,7 +1510,7 @@ bool EEVEE_renderpasses_only_first_sample_pass_active(EEVEE_Data *vedata); */ uint EEVEE_renderpasses_aov_hash(const ViewLayerAOV *aov); -/* eevee_temporal_sampling.c */ +/* `eevee_temporal_sampling.cc` */ void EEVEE_temporal_sampling_reset(EEVEE_Data *vedata); void EEVEE_temporal_sampling_create_view(EEVEE_Data *vedata); @@ -1528,7 +1528,7 @@ void EEVEE_temporal_sampling_update_matrices(EEVEE_Data *vedata); void EEVEE_temporal_sampling_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_temporal_sampling_draw(EEVEE_Data *vedata); -/* eevee_volumes.c */ +/* `eevee_volumes.cc` */ void EEVEE_volumes_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_volumes_set_jitter(EEVEE_ViewLayerData *sldata, uint current_sample); @@ -1545,7 +1545,7 @@ void EEVEE_volumes_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, void EEVEE_volumes_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_volumes_free(void); -/* eevee_effects.c */ +/* `eevee_effects.cc` */ void EEVEE_effects_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, @@ -1564,7 +1564,7 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, struct GPUTexture *depth_src void EEVEE_downsample_cube_buffer(EEVEE_Data *vedata, struct GPUTexture *texture_src, int level); void EEVEE_draw_effects(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); -/* eevee_render.c */ +/* `eevee_render.cc` */ /** * Return true if initialized properly. @@ -1598,7 +1598,7 @@ void EEVEE_render_update_passes(struct RenderEngine *engine, struct Scene *scene, struct ViewLayer *view_layer); -/** eevee_lookdev.c */ +/** `eevee_lookdev.cc` */ void EEVEE_lookdev_init(EEVEE_Data *vedata); void EEVEE_lookdev_cache_init(EEVEE_Data *vedata, EEVEE_ViewLayerData *sldata, @@ -1607,10 +1607,10 @@ void EEVEE_lookdev_cache_init(EEVEE_Data *vedata, DRWShadingGroup **r_shgrp); void EEVEE_lookdev_draw(EEVEE_Data *vedata); -/** eevee_engine.c */ +/** `eevee_engine.cc` */ void EEVEE_cache_populate(void *vedata, Object *ob); -/** eevee_lut_gen.c */ +/** `eevee_lut_gen.cc` */ float *EEVEE_lut_update_ggx_brdf(int lut_size); float *EEVEE_lut_update_ggx_btdf(int lut_size, int lut_depth); diff --git a/source/blender/draw/engines/image/image_private.hh b/source/blender/draw/engines/image/image_private.hh index 9b9b055065d..6ab0553457b 100644 --- a/source/blender/draw/engines/image/image_private.hh +++ b/source/blender/draw/engines/image/image_private.hh @@ -48,7 +48,7 @@ class AbstractDrawingMode { virtual void draw_finish(IMAGE_Data *vedata) const = 0; }; -/* image_shader.c */ +/* `image_shader.cc` */ GPUShader *IMAGE_shader_image_get(); GPUShader *IMAGE_shader_depth_get(); diff --git a/source/blender/draw/engines/select/select_engine.h b/source/blender/draw/engines/select/select_engine.h index 1ef6563f755..c264ba02111 100644 --- a/source/blender/draw/engines/select/select_engine.h +++ b/source/blender/draw/engines/select/select_engine.h @@ -12,13 +12,13 @@ extern "C" { #endif -/* select_engine.c */ +/* `select_engine.cc` */ extern DrawEngineType draw_engine_select_type; extern RenderEngineType DRW_engine_viewport_select_type; #ifdef WITH_DRAW_DEBUG -/* select_debug_engine.c */ +/* `select_debug_engine.cc` */ extern DrawEngineType draw_engine_debug_select_type; #endif diff --git a/source/blender/draw/engines/select/select_private.h b/source/blender/draw/engines/select/select_private.h index e7807b898f6..ed0d4eb20f7 100644 --- a/source/blender/draw/engines/select/select_private.h +++ b/source/blender/draw/engines/select/select_private.h @@ -57,7 +57,7 @@ typedef struct SELECTID_PrivateData { DRWView *view_verts; } SELECTID_PrivateData; /* Transient data */ -/* select_draw_utils.c */ +/* `select_draw_utils.cc` */ void select_id_object_min_max(struct Object *obj, float r_min[3], float r_max[3]); short select_id_get_object_select_mode(Scene *scene, Object *ob); diff --git a/source/blender/draw/engines/workbench/workbench_private.h b/source/blender/draw/engines/workbench/workbench_private.h index b3865deb0ee..639727b05d5 100644 --- a/source/blender/draw/engines/workbench/workbench_private.h +++ b/source/blender/draw/engines/workbench/workbench_private.h @@ -393,12 +393,12 @@ BLI_INLINE bool workbench_is_specular_highlight_enabled(WORKBENCH_PrivateData *w return false; } -/* workbench_opaque.c */ +/* `workbench_opaque.cc` */ void workbench_opaque_engine_init(WORKBENCH_Data *data); void workbench_opaque_cache_init(WORKBENCH_Data *data); -/* workbench_transparent.c */ +/* `workbench_transparent.cc` */ void workbench_transparent_engine_init(WORKBENCH_Data *data); void workbench_transparent_cache_init(WORKBENCH_Data *data); @@ -408,13 +408,13 @@ void workbench_transparent_cache_init(WORKBENCH_Data *data); */ void workbench_transparent_draw_depth_pass(WORKBENCH_Data *data); -/* workbench_shadow.c */ +/* `workbench_shadow.cc` */ void workbench_shadow_data_update(WORKBENCH_PrivateData *wpd, WORKBENCH_UBO_World *wd); void workbench_shadow_cache_init(WORKBENCH_Data *data); void workbench_shadow_cache_populate(WORKBENCH_Data *data, Object *ob, bool has_transp_mat); -/* workbench_shader.c */ +/* `workbench_shader.cc` */ GPUShader *workbench_shader_opaque_get(WORKBENCH_PrivateData *wpd, eWORKBENCH_DataType data); GPUShader *workbench_shader_opaque_image_get(WORKBENCH_PrivateData *wpd, @@ -451,7 +451,7 @@ void workbench_shader_depth_of_field_get(GPUShader **prepare_sh, void workbench_shader_free(void); -/* workbench_effect_antialiasing.c */ +/* `workbench_effect_antialiasing.cc` */ int workbench_antialiasing_sample_count_get(WORKBENCH_PrivateData *wpd); void workbench_antialiasing_engine_init(WORKBENCH_Data *vedata); @@ -463,22 +463,22 @@ void workbench_antialiasing_view_updated(WORKBENCH_Data *vedata); bool workbench_antialiasing_setup(WORKBENCH_Data *vedata); void workbench_antialiasing_draw_pass(WORKBENCH_Data *vedata); -/* workbench_effect_cavity.c */ +/* `workbench_effect_cavity.cc` */ void workbench_cavity_data_update(WORKBENCH_PrivateData *wpd, WORKBENCH_UBO_World *wd); void workbench_cavity_samples_ubo_ensure(WORKBENCH_PrivateData *wpd); void workbench_cavity_cache_init(WORKBENCH_Data *data); -/* workbench_effect_outline.c */ +/* `workbench_effect_outline.cc` */ void workbench_outline_cache_init(WORKBENCH_Data *data); -/* workbench_effect_dof.c */ +/* `workbench_effect_dof.cc` */ void workbench_dof_engine_init(WORKBENCH_Data *vedata); void workbench_dof_cache_init(WORKBENCH_Data *vedata); void workbench_dof_draw_pass(WORKBENCH_Data *vedata); -/* workbench_materials.c */ +/* `workbench_materials.cc` */ void workbench_material_ubo_data(WORKBENCH_PrivateData *wpd, Object *ob, @@ -521,7 +521,7 @@ DRWShadingGroup *workbench_image_setup_ex(WORKBENCH_PrivateData *wpd, #define workbench_image_ptcloud_setup(wpd, ob, mat_nr, ima, iuser, interp) \ workbench_image_setup_ex(wpd, ob, mat_nr, ima, iuser, interp, WORKBENCH_DATATYPE_POINTCLOUD) -/* workbench_data.c */ +/* `workbench_data.cc` */ void workbench_private_data_alloc(WORKBENCH_StorageList *stl); void workbench_private_data_init(WORKBENCH_PrivateData *wpd); @@ -529,7 +529,7 @@ void workbench_update_world_ubo(WORKBENCH_PrivateData *wpd); void workbench_update_material_ubos(WORKBENCH_PrivateData *wpd); struct GPUUniformBuf *workbench_material_ubo_alloc(WORKBENCH_PrivateData *wpd); -/* workbench_volume.c */ +/* `workbench_volume.cc` */ void workbench_volume_engine_init(WORKBENCH_Data *vedata); void workbench_volume_cache_init(WORKBENCH_Data *vedata); @@ -540,7 +540,7 @@ void workbench_volume_cache_populate(WORKBENCH_Data *vedata, eV3DShadingColorType color_type); void workbench_volume_draw_pass(WORKBENCH_Data *vedata); -/* workbench_engine.c */ +/* `workbench_engine.cc` */ void workbench_engine_init(void *ved); void workbench_cache_init(void *ved); @@ -553,7 +553,7 @@ void workbench_cache_finish(void *ved); void workbench_draw_sample(void *ved); void workbench_draw_finish(void *ved); -/* workbench_render.c */ +/* `workbench_render.cc` */ void workbench_render(void *ved, struct RenderEngine *engine, diff --git a/source/blender/draw/intern/draw_common.h b/source/blender/draw/intern/draw_common.h index 85052c18cd5..bd774b3130b 100644 --- a/source/blender/draw/intern/draw_common.h +++ b/source/blender/draw/intern/draw_common.h @@ -113,7 +113,7 @@ void DRW_volume_init(struct DRWData *drw_data); void DRW_volume_ubos_pool_free(void *pool); void DRW_volume_free(void); -/* draw_fluid.c */ +/* `draw_fluid.cc` */ /* Fluid simulation. */ void DRW_smoke_ensure(struct FluidModifierData *fmd, int highres); @@ -127,7 +127,7 @@ void DRW_smoke_free(struct FluidModifierData *fmd); void DRW_smoke_init(struct DRWData *drw_data); void DRW_smoke_exit(struct DRWData *drw_data); -/* draw_common.c */ +/* `draw_common.cc` */ struct DRW_Global { /** If needed, contains all global/Theme colors diff --git a/source/blender/draw/intern/draw_manager_text.h b/source/blender/draw/intern/draw_manager_text.h index 3080a47f271..56879344546 100644 --- a/source/blender/draw/intern/draw_manager_text.h +++ b/source/blender/draw/intern/draw_manager_text.h @@ -45,7 +45,7 @@ enum { DRW_TEXT_CACHE_STRING_PTR = (1 << 3), }; -/* draw_manager.c */ +/* `draw_manager.cc` */ struct DRWTextStore *DRW_text_cache_ensure(void); diff --git a/source/blender/draw/intern/draw_manager_texture.cc b/source/blender/draw/intern/draw_manager_texture.cc index 1268967f6f1..bfa6814cdde 100644 --- a/source/blender/draw/intern/draw_manager_texture.cc +++ b/source/blender/draw/intern/draw_manager_texture.cc @@ -10,7 +10,7 @@ #include "draw_texture_pool.h" #ifndef NDEBUG -/* Maybe gpu_texture.c is a better place for this. */ +/* Maybe `gpu_texture.cc` is a better place for this. */ static bool drw_texture_format_supports_framebuffer(eGPUTextureFormat format) { /* Some formats do not work with frame-buffers. */ diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh.hh b/source/blender/draw/intern/mesh_extractors/extract_mesh.hh index 31b1ace05b8..ba63f017906 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh.hh +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh.hh @@ -330,7 +330,7 @@ struct MeshExtract { /** \} */ -/* draw_cache_extract_mesh_render_data.c */ +/* `draw_cache_extract_mesh_render_data.cc` */ /** * \param is_mode_active: When true, use the modifiers from the edit-data, diff --git a/source/blender/editors/animation/anim_channels_edit.cc b/source/blender/editors/animation/anim_channels_edit.cc index 3feab5b9dc8..0f683a31910 100644 --- a/source/blender/editors/animation/anim_channels_edit.cc +++ b/source/blender/editors/animation/anim_channels_edit.cc @@ -3733,7 +3733,7 @@ static int mouse_anim_channels(bContext *C, } /* action to take depends on what channel we've got */ - /* WARNING: must keep this in sync with the equivalent function in nla_channels.c */ + /* WARNING: must keep this in sync with the equivalent function in `nla_channels.cc`. */ switch (ale->type) { case ANIMTYPE_SCENE: notifierFlags |= click_select_channel_scene(ale, selectmode); diff --git a/source/blender/editors/animation/anim_deps.cc b/source/blender/editors/animation/anim_deps.cc index e6142eab095..e9f6e1ed73c 100644 --- a/source/blender/editors/animation/anim_deps.cc +++ b/source/blender/editors/animation/anim_deps.cc @@ -212,8 +212,8 @@ static void animchan_sync_fcurve(bAnimListElem *ale) FCurve *fcu = (FCurve *)ale->data; ID *owner_id = ale->id; - /* major priority is selection status, so refer to the checks done in anim_filter.c - * skip_fcurve_selected_data() for reference about what's going on here... + /* major priority is selection status, so refer to the checks done in `anim_filter.cc` + * #skip_fcurve_selected_data() for reference about what's going on here. */ if (ELEM(nullptr, fcu, fcu->rna_path, owner_id)) { return; diff --git a/source/blender/editors/animation/anim_draw.cc b/source/blender/editors/animation/anim_draw.cc index 65494428e17..88e77316fe7 100644 --- a/source/blender/editors/animation/anim_draw.cc +++ b/source/blender/editors/animation/anim_draw.cc @@ -75,7 +75,7 @@ void ANIM_draw_cfra(const bContext *C, View2D *v2d, short flag) /* *************************************************** */ /* PREVIEW RANGE 'CURTAINS' */ -/* NOTE: 'Preview Range' tools are defined in `anim_ops.c`. */ +/* NOTE: 'Preview Range' tools are defined in `anim_ops.cc`. */ void ANIM_draw_previewrange(const bContext *C, View2D *v2d, int end_frame_width) { diff --git a/source/blender/editors/animation/anim_filter.cc b/source/blender/editors/animation/anim_filter.cc index 7392a2556e4..cfd58481552 100644 --- a/source/blender/editors/animation/anim_filter.cc +++ b/source/blender/editors/animation/anim_filter.cc @@ -99,7 +99,7 @@ /* ----------- Private Stuff - Action Editor ------------- */ /* Get shapekey data being edited (for Action Editor -> ShapeKey mode) */ -/* NOTE: there's a similar function in key.c #BKE_key_from_object. */ +/* NOTE: there's a similar function in `key.cc` #BKE_key_from_object. */ static Key *actedit_get_shapekeys(bAnimContext *ac) { Scene *scene = ac->scene; diff --git a/source/blender/editors/animation/anim_intern.h b/source/blender/editors/animation/anim_intern.h index 130b95bd10f..ce5b671c479 100644 --- a/source/blender/editors/animation/anim_intern.h +++ b/source/blender/editors/animation/anim_intern.h @@ -14,7 +14,7 @@ extern "C" { /* KeyingSets/Keyframing Interface ------------- */ -/* list of builtin KeyingSets (defined in keyingsets.c) */ +/** List of builtin KeyingSets (defined in `keyingsets.cc`). */ extern ListBase builtin_keyingsets; /* Operator Define Prototypes ------------------- */ diff --git a/source/blender/editors/armature/armature_intern.h b/source/blender/editors/armature/armature_intern.h index c6399293923..15fefda0c0b 100644 --- a/source/blender/editors/armature/armature_intern.h +++ b/source/blender/editors/armature/armature_intern.h @@ -133,7 +133,7 @@ void POSE_OT_bone_layers(struct wmOperatorType *ot); /** \name Pose Tool Utilities (for PoseLib, Pose Sliding, etc.) * \{ */ -/* pose_utils.c */ +/* `pose_utils.cc` */ /* Temporary data linking PoseChannels with the F-Curves they affect */ typedef struct tPChanFCurveLink { @@ -206,7 +206,7 @@ LinkData *poseAnim_mapping_getNextFCurve(ListBase *fcuLinks, LinkData *prev, con /** \name PoseLib * \{ */ -/* pose_lib_2.c */ +/* `pose_lib_2.cc` */ void POSELIB_OT_apply_pose_asset(struct wmOperatorType *ot); void POSELIB_OT_blend_pose_asset(struct wmOperatorType *ot); @@ -217,7 +217,7 @@ void POSELIB_OT_blend_pose_asset(struct wmOperatorType *ot); /** \name Pose Sliding Tools * \{ */ -/* pose_slide.c */ +/* `pose_slide.cc` */ void POSE_OT_push(struct wmOperatorType *ot); void POSE_OT_relax(struct wmOperatorType *ot); diff --git a/source/blender/editors/asset/intern/asset_list.cc b/source/blender/editors/asset/intern/asset_list.cc index 9b42b3c61b3..566db96ac2e 100644 --- a/source/blender/editors/asset/intern/asset_list.cc +++ b/source/blender/editors/asset/intern/asset_list.cc @@ -7,8 +7,9 @@ * * Abstractions to manage runtime asset lists with a global cache for multiple UI elements to * access. - * Internally this uses the #FileList API and structures from `filelist.c`. This is just because it - * contains most necessary logic already and there's not much time for a more long-term solution. + * Internally this uses the #FileList API and structures from `filelist.cc`. + * This is just because it contains most necessary logic already and + * there's not much time for a more long-term solution. */ #include diff --git a/source/blender/editors/curve/curve_intern.h b/source/blender/editors/curve/curve_intern.h index 4515f51d060..f44bbff9b42 100644 --- a/source/blender/editors/curve/curve_intern.h +++ b/source/blender/editors/curve/curve_intern.h @@ -20,7 +20,7 @@ struct wmOperatorType; extern "C" { #endif -/* editfont.c */ +/* `editfont.cc` */ enum { DEL_NEXT_CHAR, @@ -103,7 +103,7 @@ void FONT_OT_unlink(struct wmOperatorType *ot); void FONT_OT_textbox_add(struct wmOperatorType *ot); void FONT_OT_textbox_remove(struct wmOperatorType *ot); -/* editcurve.c */ +/* `editcurve.cc` */ void CURVE_OT_hide(struct wmOperatorType *ot); void CURVE_OT_reveal(struct wmOperatorType *ot); @@ -144,7 +144,7 @@ void CURVE_OT_match_texture_space(struct wmOperatorType *ot); struct GHash *ED_curve_keyindex_hash_duplicate(struct GHash *keyindex); void ED_curve_keyindex_update_nurb(struct EditNurb *editnurb, struct Nurb *nu, struct Nurb *newnu); -/* exported for editcurve_pen.c */ +/* exported for `editcurve_pen.cc` */ int ed_editcurve_addvert(Curve *cu, EditNurb *editnurb, View3D *v3d, const float location_init[3]); bool curve_toggle_cyclic(View3D *v3d, ListBase *editnurb, int direction); @@ -174,7 +174,7 @@ bool ed_editnurb_spin(float viewmat[4][4], const float axis[3], const float cent[3]); -/* editcurve_select.c */ +/* `editcurve_select.cc` */ void CURVE_OT_de_select_first(struct wmOperatorType *ot); void CURVE_OT_de_select_last(struct wmOperatorType *ot); @@ -191,7 +191,7 @@ void CURVE_OT_select_nth(struct wmOperatorType *ot); void CURVE_OT_select_similar(struct wmOperatorType *ot); void CURVE_OT_shortest_path_pick(struct wmOperatorType *ot); -/* editcurve_add.c */ +/* `editcurve_add.cc` */ void CURVE_OT_primitive_bezier_curve_add(struct wmOperatorType *ot); void CURVE_OT_primitive_bezier_circle_add(struct wmOperatorType *ot); @@ -206,7 +206,7 @@ void SURFACE_OT_primitive_nurbs_surface_cylinder_add(struct wmOperatorType *ot); void SURFACE_OT_primitive_nurbs_surface_sphere_add(struct wmOperatorType *ot); void SURFACE_OT_primitive_nurbs_surface_torus_add(struct wmOperatorType *ot); -/* editcurve_query.c */ +/* `editcurve_query.cc` */ bool ED_curve_pick_vert(struct ViewContext *vc, short sel, @@ -232,11 +232,11 @@ bool ED_curve_pick_vert_ex(struct ViewContext *vc, void ED_curve_nurb_vert_selected_find( Curve *cu, View3D *v3d, Nurb **r_nu, BezTriple **r_bezt, BPoint **r_bp); -/* editcurve_paint.c */ +/* `editcurve_paint.cc` */ void CURVE_OT_draw(struct wmOperatorType *ot); -/* editcurve_pen.c */ +/* `editcurve_pen.cc` */ void CURVE_OT_pen(struct wmOperatorType *ot); struct wmKeyMap *curve_pen_modal_keymap(struct wmKeyConfig *keyconf); diff --git a/source/blender/editors/gizmo_library/geometry/geom_arrow_gizmo.cc b/source/blender/editors/gizmo_library/geometry/geom_arrow_gizmo.cc index 398bbf591c7..93630dd36e6 100644 --- a/source/blender/editors/gizmo_library/geometry/geom_arrow_gizmo.cc +++ b/source/blender/editors/gizmo_library/geometry/geom_arrow_gizmo.cc @@ -8,7 +8,7 @@ #include "../gizmo_geometry.h" -/* The numerical values in the `verts` array are used in arrow3d_gizmo.c +/* The numerical values in the `verts` array are used in `arrow3d_gizmo.cc` * If you change this mesh geometry, update the selection code also. */ static float verts[][3] = { {-0.000000, 0.012320, 0.000000}, {-0.000000, 0.012320, 0.974306}, diff --git a/source/blender/editors/gizmo_library/gizmo_library_intern.h b/source/blender/editors/gizmo_library/gizmo_library_intern.h index f7a655ab442..1bc3caee818 100644 --- a/source/blender/editors/gizmo_library/gizmo_library_intern.h +++ b/source/blender/editors/gizmo_library/gizmo_library_intern.h @@ -17,7 +17,7 @@ extern "C" { #define DIAL_RESOLUTION 48 /** - * Data for common interactions. Used in gizmo_library_utils.c functions. + * Data for common interactions. Used in `gizmo_library_utils.cc` functions. */ typedef struct GizmoCommonData { float range_fac; /* factor for arrow min/max distance */ diff --git a/source/blender/editors/gizmo_library/gizmo_types/arrow3d_gizmo.cc b/source/blender/editors/gizmo_library/gizmo_types/arrow3d_gizmo.cc index 0a613206f54..46c8d47f8a8 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/arrow3d_gizmo.cc +++ b/source/blender/editors/gizmo_library/gizmo_types/arrow3d_gizmo.cc @@ -49,7 +49,7 @@ #include "../gizmo_geometry.h" #include "../gizmo_library_intern.h" -/* to use custom arrows exported to geom_arrow_gizmo.c */ +// /** To use custom arrows exported to `geom_arrow_gizmo.cc`. */ // #define USE_GIZMO_CUSTOM_ARROWS /* Margin to add when selecting the arrow. */ @@ -269,7 +269,7 @@ static void gizmo_arrow_draw(const bContext * /*C*/, wmGizmo *gz) static int gizmo_arrow_test_select(bContext * /*C*/, wmGizmo *gz, const int mval[2]) { /* This following values are based on manual inspection of `verts[]` defined in - * geom_arrow_gizmo.c */ + * `geom_arrow_gizmo.cc`. */ const float head_center_z = (0.974306f + 1.268098f) / 2; const float head_geo_x = 0.051304f; const float stem_geo_x = 0.012320f; diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc index bdabc044d0a..94ef1295923 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc +++ b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc @@ -44,7 +44,7 @@ #include "../gizmo_library_intern.h" #define GIZMO_MARGIN_OFFSET_SCALE 1.5f -/* The same as in `draw_cache.c` */ +/* The same as in `draw_cache.cc`. */ #define CIRCLE_RESOL 32 static int gizmo_cage2d_transform_flag_get(const wmGizmo *gz); diff --git a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.cc b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.cc index a5601858a40..0eba4f33c47 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.cc +++ b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.cc @@ -44,7 +44,7 @@ #include "../gizmo_geometry.h" #include "../gizmo_library_intern.h" -/* To use custom dials exported to geom_dial_gizmo.c */ +// /** To use custom dials exported to `geom_dial_gizmo.cc`. */ // #define USE_GIZMO_CUSTOM_DIAL struct DialInteraction { diff --git a/source/blender/editors/gpencil_legacy/gpencil_intern.h b/source/blender/editors/gpencil_legacy/gpencil_intern.h index e6ed92c1662..273af7c30b2 100644 --- a/source/blender/editors/gpencil_legacy/gpencil_intern.h +++ b/source/blender/editors/gpencil_legacy/gpencil_intern.h @@ -50,7 +50,7 @@ struct PropertyRNA; * The following structs + function prototypes are used * by these operators so that the operator code * (in gpencil_.c) can communicate with the drawing - * code (in drawgpencil.c). + * code (in `drawgpencil.cc`). * * NOTE: All this is within the gpencil module, so nothing needs * to be exported to other modules. @@ -105,7 +105,7 @@ void ED_gpencil_draw_fill(struct tGPDdraw *tgpw); /* Internal API */ /* Stroke Coordinates API ------------------------------ */ -/* gpencil_utils.c */ +/* `gpencil_utils.cc` */ typedef struct GP_SpaceConversion { struct Scene *scene; @@ -353,7 +353,7 @@ void gpencil_stroke_convertcoords_tpoint(struct Scene *scene, float r_out[3]); /* Poll Callbacks ------------------------------------ */ -/* gpencil_utils.c */ +/* `gpencil_utils.cc` */ /** * Poll callback for adding data/layers - special. @@ -372,7 +372,7 @@ bool gpencil_brush_create_presets_poll(bContext *C); int ED_gpencil_new_layer_dialog(bContext *C, wmOperator *op); /* Copy/Paste Buffer --------------------------------- */ -/* gpencil_edit.c */ +/* `gpencil_edit.cc` */ /** * list of #bGPDstroke instances diff --git a/source/blender/editors/gpencil_legacy/gpencil_sculpt_paint.cc b/source/blender/editors/gpencil_legacy/gpencil_sculpt_paint.cc index 9fc83c12255..33ba1b02df4 100644 --- a/source/blender/editors/gpencil_legacy/gpencil_sculpt_paint.cc +++ b/source/blender/editors/gpencil_legacy/gpencil_sculpt_paint.cc @@ -636,8 +636,7 @@ static bool gpencil_brush_push_apply(tGP_BrushEditData *gso, static void gpencil_brush_calc_midpoint(tGP_BrushEditData *gso) { /* Convert mouse position to 3D space - * See: gpencil_paint.c :: gpencil_stroke_convertcoords() - */ + * See: `gpencil_paint.cc`, #gpencil_stroke_convertcoords(). */ RegionView3D *rv3d = static_cast(gso->region->regiondata); const float *rvec = gso->object->loc; const float zfac = ED_view3d_calc_zfac(rv3d, rvec); @@ -2427,7 +2426,7 @@ static int gpencil_sculpt_brush_modal(bContext *C, wmOperator *op, const wmEvent return OPERATOR_PASS_THROUGH; /* Camera/View Gizmo's - Allowed. */ - /* (See rationale in gpencil_paint.c -> gpencil_draw_modal()) */ + /* See rationale in `gpencil_paint.cc`, #gpencil_draw_modal(). */ case EVT_PAD0: case EVT_PAD1: case EVT_PAD2: diff --git a/source/blender/editors/gpencil_legacy/gpencil_select.cc b/source/blender/editors/gpencil_legacy/gpencil_select.cc index a7434d50ec3..47057f48545 100644 --- a/source/blender/editors/gpencil_legacy/gpencil_select.cc +++ b/source/blender/editors/gpencil_legacy/gpencil_select.cc @@ -1473,7 +1473,7 @@ void GPENCIL_OT_select_less(wmOperatorType *ot) * Helper to check if a given stroke is within the area. * * \note Code here is adapted (i.e. copied directly) - * from gpencil_paint.c #gpencil_stroke_eraser_dostroke(). + * from `gpencil_paint.cc` #gpencil_stroke_eraser_dostroke(). * It would be great to de-duplicate the logic here sometime, but that can wait. */ static bool gpencil_stroke_do_circle_sel(bGPdata *gpd, diff --git a/source/blender/editors/gpencil_legacy/gpencil_vertex_paint.cc b/source/blender/editors/gpencil_legacy/gpencil_vertex_paint.cc index 7bc7a40d2eb..8ffb029de9a 100644 --- a/source/blender/editors/gpencil_legacy/gpencil_vertex_paint.cc +++ b/source/blender/editors/gpencil_legacy/gpencil_vertex_paint.cc @@ -1397,7 +1397,7 @@ static int gpencil_vertexpaint_brush_modal(bContext *C, wmOperator *op, const wm return OPERATOR_PASS_THROUGH; /* Camera/View Gizmo's - Allowed. */ - /* (See rationale in gpencil_paint.c -> gpencil_draw_modal()) */ + /* See rationale in `gpencil_paint.cc`, #gpencil_draw_modal(). */ case EVT_PAD0: case EVT_PAD1: case EVT_PAD2: diff --git a/source/blender/editors/gpencil_legacy/gpencil_weight_paint.cc b/source/blender/editors/gpencil_legacy/gpencil_weight_paint.cc index 0b99a323149..e71a4b5016b 100644 --- a/source/blender/editors/gpencil_legacy/gpencil_weight_paint.cc +++ b/source/blender/editors/gpencil_legacy/gpencil_weight_paint.cc @@ -1450,7 +1450,7 @@ static int gpencil_weightpaint_brush_modal(bContext *C, wmOperator *op, const wm return OPERATOR_PASS_THROUGH; /* Camera/View Gizmo's - Allowed. */ - /* (See rationale in gpencil_paint.c -> gpencil_draw_modal()) */ + /* See rationale in `gpencil_paint.cc`, #gpencil_draw_modal(). */ case EVT_PAD0: case EVT_PAD1: case EVT_PAD2: diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index e3d471c1feb..cb377c2c097 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -46,7 +46,7 @@ struct PropertyRNA; /* ************************************************ */ /* ANIMATION CHANNEL FILTERING */ -/* anim_filter.c */ +/* `anim_filter.cc` */ /* -------------------------------------------------------------------- */ /** \name Context @@ -723,7 +723,7 @@ bool ANIM_remove_empty_action_from_animdata(struct AnimData *adt); /* ************************************************ */ /* DRAWING API */ -/* anim_draw.c */ +/* `anim_draw.cc` */ /** \} */ @@ -852,7 +852,7 @@ bool ANIM_fmodifiers_paste_from_buf(ListBase *modifiers, bool replace, struct FC /** \name Animation F-Curves <-> Icons/Names Mapping * \{ */ -/* anim_ipo_utils.c */ +/* `anim_ipo_utils.cc` */ /** * Get icon + name for channel-list displays for F-Curve. @@ -892,7 +892,7 @@ void nla_action_get_color(struct AnimData *adt, struct bAction *act, float color /** \name NLA-Mapping * \{ */ -/* anim_draw.c */ +/* `anim_draw.cc` */ /** * Obtain the AnimData block providing NLA-mapping for the given channel (if applicable). @@ -915,7 +915,7 @@ void ANIM_nla_mapping_apply_fcurve(struct AnimData *adt, /** * Perform validation & auto-blending/extend refreshes after some operations - * \note defined in space_nla/nla_edit.c, not in animation/ + * \note defined in `space_nla/nla_edit.cc`, not in `animation/`. */ void ED_nla_postop_refresh(bAnimContext *ac); @@ -925,7 +925,7 @@ void ED_nla_postop_refresh(bAnimContext *ac); /** \name Unit Conversion Mappings * \{ */ -/* anim_draw.c */ +/* `anim_draw.cc` */ /** Flags for conversion mapping. */ typedef enum eAnimUnitConv_Flags { @@ -1011,7 +1011,7 @@ float ANIM_unit_mapping_get_factor( /** \} */ -/* anim_deps.c */ +/* `anim_deps.cc` */ /* -------------------------------------------------------------------- */ /** \name Animation Updates diff --git a/source/blender/editors/include/ED_armature.h b/source/blender/editors/include/ED_armature.h index f3a0c599de8..83e1779ce3b 100644 --- a/source/blender/editors/include/ED_armature.h +++ b/source/blender/editors/include/ED_armature.h @@ -56,12 +56,12 @@ struct wmOperator; (CHECK_TYPE_INLINE(ebone, EditBone *), \ (((ebone)->flag & BONE_SELECTED) && !((ebone)->flag & BONE_EDITMODE_LOCKED))) -/* Used in `armature_select.c` and `pose_select.c`. */ +/* Used in `armature_select.cc` and `pose_select.cc`. */ #define BONE_SELECT_PARENT 0 #define BONE_SELECT_CHILD 1 -/* armature_add.c */ +/* `armature_add.cc` */ /** * Default bone add, returns it selected, but without tail set. @@ -73,7 +73,7 @@ struct EditBone *ED_armature_ebone_add_primitive(struct Object *obedit_arm, float length, bool view_aligned); -/* armature_edit.c */ +/* `armature_edit.cc` */ /** * Adjust bone roll to align Z axis with vector `align_axis` is in local space and is normalized. @@ -94,7 +94,7 @@ void ED_armature_origin_set( void ED_armature_edit_transform(struct bArmature *arm, const float mat[4][4], bool do_props); void ED_armature_transform(struct bArmature *arm, const float mat[4][4], bool do_props); -/* armature_naming.c */ +/* `armature_naming.cc` */ /** * Ensure the bone name is unique. @@ -126,20 +126,20 @@ void ED_armature_bones_flip_names(struct Main *bmain, struct ListBase *bones_names, bool do_strip_numbers); -/* armature_ops.c */ +/* `armature_ops.cc` */ void ED_operatortypes_armature(void); void ED_operatormacros_armature(void); void ED_keymap_armature(struct wmKeyConfig *keyconf); -/* armature_relations.c */ +/* `armature_relations.cc` */ /** * Join armature exec is exported for use in object->join objects operator. */ int ED_armature_join_objects_exec(struct bContext *C, struct wmOperator *op); -/* armature_select.c */ +/* `armature_select.cc` */ struct Base *ED_armature_base_and_ebone_from_select_buffer(struct Base **bases, uint bases_len, @@ -193,7 +193,7 @@ bool ED_armature_edit_select_pick(struct bContext *C, */ bool ED_armature_edit_select_op_from_tagged(struct bArmature *arm, int sel_op); -/* armature_skinning.c */ +/* `armature_skinning.cc` */ #define ARM_GROUPS_NAME 1 #define ARM_GROUPS_ENVELOPE 2 @@ -211,7 +211,7 @@ void ED_object_vgroup_calc_from_armature(struct ReportList *reports, /** Export for ED_undo_sys. */ void ED_armature_undosys_type(struct UndoType *ut); -/* armature_utils.c */ +/* `armature_utils.cc` */ /** Sync selection to parent for connected children. */ void ED_armature_edit_sync_selection(struct ListBase *edbo); @@ -281,7 +281,7 @@ void ED_armature_ebone_select_set(struct EditBone *ebone, bool select); void ED_armature_ebone_selectflag_enable(struct EditBone *ebone, int flag); void ED_armature_ebone_selectflag_disable(struct EditBone *ebone, int flag); -/* pose_edit.c */ +/* `pose_edit.cc` */ struct Object *ED_pose_object_from_context(struct bContext *C); bool ED_object_posemode_exit_ex(struct Main *bmain, struct Object *ob); @@ -307,7 +307,7 @@ void ED_pose_recalculate_paths(struct bContext *C, struct Object *ob, ePosePathCalcRange range); -/* pose_select.c */ +/* `pose_select.cc` */ /** * \return True when pick finds an element or the selection changed. diff --git a/source/blender/editors/include/ED_clip.h b/source/blender/editors/include/ED_clip.h index f8ab1aab07b..dbb63487359 100644 --- a/source/blender/editors/include/ED_clip.h +++ b/source/blender/editors/include/ED_clip.h @@ -21,7 +21,7 @@ struct SpaceClip; struct bContext; struct bScreen; -/* ** clip_editor.c ** */ +/* `clip_editor.cc` */ /* Returns true when the following conditions are met: * - Current space is Space Clip. @@ -169,7 +169,7 @@ void ED_clip_view_lock_state_store(const struct bContext *C, ClipViewLockState * void ED_clip_view_lock_state_restore_no_jump(const struct bContext *C, const ClipViewLockState *state); -/* ** clip_ops.c ** */ +/* `clip_ops.cc` */ void ED_operatormacros_clip(void); #ifdef __cplusplus diff --git a/source/blender/editors/include/ED_curve.h b/source/blender/editors/include/ED_curve.h index 78c672b9a9a..9df86cdc0a8 100644 --- a/source/blender/editors/include/ED_curve.h +++ b/source/blender/editors/include/ED_curve.h @@ -28,13 +28,13 @@ struct bContext; struct wmKeyConfig; struct wmOperator; -/* curve_ops.c */ +/* `curve_ops.cc` */ void ED_operatortypes_curve(void); void ED_operatormacros_curve(void); void ED_keymap_curve(struct wmKeyConfig *keyconf); -/* editcurve.c */ +/* `editcurve.cc` */ struct ListBase *object_editcurve_get(struct Object *ob); @@ -72,7 +72,7 @@ bool ED_curve_nurb_deselect_all(const struct Nurb *nu); */ int ED_curve_join_objects_exec(struct bContext *C, struct wmOperator *op); -/* editcurve_select.c */ +/* `editcurve_select.cc` */ bool ED_curve_select_check(const struct View3D *v3d, const struct EditNurb *editnurb); bool ED_curve_deselect_all(struct EditNurb *editnurb); @@ -87,7 +87,7 @@ int ED_curve_select_count(const struct View3D *v3d, const struct EditNurb *editn /** Export for ED_undo_sys */ void ED_curve_undosys_type(struct UndoType *ut); -/* editfont.c */ +/* `editfont.cc` */ void ED_curve_editfont_load(struct Object *obedit); void ED_curve_editfont_make(struct Object *obedit); @@ -117,7 +117,7 @@ bool ED_curve_editfont_select_pick(struct bContext *C, const int mval[2], const struct SelectPick_Params *params); -/* editfont_undo.c */ +/* `editfont_undo.cc` */ /** Export for ED_undo_sys. */ void ED_font_undosys_type(struct UndoType *ut); diff --git a/source/blender/editors/include/ED_curves.hh b/source/blender/editors/include/ED_curves.hh index 2b1632fc1eb..d701c47e620 100644 --- a/source/blender/editors/include/ED_curves.hh +++ b/source/blender/editors/include/ED_curves.hh @@ -53,7 +53,7 @@ void ensure_surface_deformation_node_exists(bContext &C, Object &curves_ob); /** * Allocate an array of `TransVert` for cursor/selection snapping (See - * `ED_transverts_create_from_obedit` in `view3d_snap.c`). + * `ED_transverts_create_from_obedit` in `view3d_snap.cc`). * \note: the `TransVert` elements in \a tvs are expected to write to the positions of \a curves. */ void transverts_from_curves_positions_create(bke::CurvesGeometry &curves, TransVertStore *tvs); diff --git a/source/blender/editors/include/ED_gizmo_library.h b/source/blender/editors/include/ED_gizmo_library.h index d53a4417d30..2bd6cdac4a7 100644 --- a/source/blender/editors/include/ED_gizmo_library.h +++ b/source/blender/editors/include/ED_gizmo_library.h @@ -41,7 +41,7 @@ struct wmGizmo; * Intended to be called by custom draw functions. */ -/* gizmo_library_presets.c */ +/* `gizmo_library_presets.cc` */ void ED_gizmo_draw_preset_box(const struct wmGizmo *gz, float mat[4][4], int select_id); void ED_gizmo_draw_preset_arrow(const struct wmGizmo *gz, @@ -239,7 +239,7 @@ enum { /* -------------------------------------------------------------------- */ /* Specific gizmos utils */ -/* snap3d_gizmo.c */ +/* `snap3d_gizmo.cc` */ struct SnapObjectContext *ED_gizmotypes_snap_3d_context_ensure(struct Scene *scene, struct wmGizmo *gz); diff --git a/source/blender/editors/include/ED_gpencil_legacy.h b/source/blender/editors/include/ED_gpencil_legacy.h index a8abb4620ec..ce4bc42e993 100644 --- a/source/blender/editors/include/ED_gpencil_legacy.h +++ b/source/blender/editors/include/ED_gpencil_legacy.h @@ -211,7 +211,7 @@ void ED_operatormacros_gpencil(void); void ED_gpencil_strokes_copybuf_free(void); /* ------------ Grease-Pencil Drawing API ------------------ */ -/* drawgpencil.c */ +/* `drawgpencil.cc` */ /** * Draw grease-pencil sketches to specified 2d-view that uses `ibuf` corrections. diff --git a/source/blender/editors/include/ED_image.h b/source/blender/editors/include/ED_image.h index 37fdff213fd..3eee6ee7b0b 100644 --- a/source/blender/editors/include/ED_image.h +++ b/source/blender/editors/include/ED_image.h @@ -29,7 +29,7 @@ struct Paint; struct wmOperator; struct wmWindowManager; -/* image_draw.c */ +/* `image_draw.cc` */ float ED_space_image_zoom_level(const struct View2D *v2d, int grid_dimension); void ED_space_image_grid_steps(struct SpaceImage *sima, @@ -45,7 +45,7 @@ float ED_space_image_increment_snap_value(int grid_dimensions, const float grid_steps[SI_GRID_STEPS_LEN], float zoom_factor); -/* image_edit.c, exported for transform. */ +/* `image_edit.cc`, exported for transform. */ struct Image *ED_space_image(const struct SpaceImage *sima); void ED_space_image_set(struct Main *bmain, @@ -198,7 +198,7 @@ bool ED_image_should_save_modified(const struct Main *bmain); int ED_image_save_all_modified_info(const struct Main *bmain, struct ReportList *reports); bool ED_image_save_all_modified(const struct bContext *C, struct ReportList *reports); -/* image_sequence.c */ +/* `image_sequence.cc` */ typedef struct ImageFrameRange { struct ImageFrameRange *next, *prev; diff --git a/source/blender/editors/include/ED_info.h b/source/blender/editors/include/ED_info.h index 3119045bd5f..82e6ced5c1f 100644 --- a/source/blender/editors/include/ED_info.h +++ b/source/blender/editors/include/ED_info.h @@ -15,7 +15,7 @@ extern "C" { struct Main; struct wmWindowManager; -/* info_stats.c */ +/* `info_stats.cc` */ void ED_info_stats_clear(struct wmWindowManager *wm, struct ViewLayer *view_layer); const char *ED_info_statusbar_string_ex(struct Main *bmain, diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h index 7523fbd0818..45f57ca33d8 100644 --- a/source/blender/editors/include/ED_keyframes_edit.h +++ b/source/blender/editors/include/ED_keyframes_edit.h @@ -414,7 +414,7 @@ bool keyframe_region_lasso_test(const KeyframeEdit_LassoData *data_lasso, const bool keyframe_region_circle_test(const KeyframeEdit_CircleData *data_circle, const float xy[2]); /* ************************************************ */ -/* Destructive Editing API (keyframes_general.c) */ +/* Destructive Editing API `keyframes_general.cc`. */ bool duplicate_fcurve_keys(struct FCurve *fcu); float get_default_rna_value(struct FCurve *fcu, struct PropertyRNA *prop, struct PointerRNA *ptr); diff --git a/source/blender/editors/include/ED_lattice.h b/source/blender/editors/include/ED_lattice.h index abe76256ffe..c45b067623a 100644 --- a/source/blender/editors/include/ED_lattice.h +++ b/source/blender/editors/include/ED_lattice.h @@ -18,12 +18,12 @@ struct SelectPick_Params; struct UndoType; struct wmKeyConfig; -/* lattice_ops.c */ +/* `lattice_ops.cc` */ void ED_operatortypes_lattice(void); void ED_keymap_lattice(struct wmKeyConfig *keyconf); -/* editlattice_select.c */ +/* `editlattice_select.cc` */ bool ED_lattice_flags_set(struct Object *obedit, int flag); /** @@ -36,7 +36,7 @@ bool ED_lattice_select_pick(struct bContext *C, bool ED_lattice_deselect_all_multi_ex(struct Base **bases, uint bases_len); bool ED_lattice_deselect_all_multi(struct bContext *C); -/* editlattice_undo.c */ +/* `editlattice_undo.cc` */ /** Export for ED_undo_sys. */ void ED_lattice_undosys_type(struct UndoType *ut); diff --git a/source/blender/editors/include/ED_markers.h b/source/blender/editors/include/ED_markers.h index f79432acb39..93b40fb7580 100644 --- a/source/blender/editors/include/ED_markers.h +++ b/source/blender/editors/include/ED_markers.h @@ -94,11 +94,11 @@ struct TimeMarker *ED_markers_get_first_selected(ListBase *markers); * \{ */ /** - * Called in screen_ops.c:ED_operatortypes_screen(). + * Called in `screen_ops.cc`, #ED_operatortypes_screen(). */ void ED_operatortypes_marker(void); /** - * Called in screen_ops.c:ED_keymap_screen(). + * Called in `screen_ops.cc`, #ED_keymap_screen(). */ void ED_keymap_marker(struct wmKeyConfig *keyconf); diff --git a/source/blender/editors/include/ED_mask.h b/source/blender/editors/include/ED_mask.h index 5b38625ee40..d5567dc53fc 100644 --- a/source/blender/editors/include/ED_mask.h +++ b/source/blender/editors/include/ED_mask.h @@ -21,7 +21,7 @@ struct MaskLayerShape; struct bContext; struct wmKeyConfig; -/* mask_edit.c */ +/* `mask_edit.cc` */ /* Returns true when the following conditions are met: * - Current space supports mask editing. @@ -57,7 +57,7 @@ void ED_operatortypes_mask(void); void ED_keymap_mask(struct wmKeyConfig *keyconf); void ED_operatormacros_mask(void); -/* mask_query.c */ +/* `mask_query.cc` */ void ED_mask_get_size(struct ScrArea *area, int *width, int *height); void ED_mask_zoom(struct ScrArea *area, struct ARegion *region, float *zoomx, float *zoomy); @@ -90,7 +90,7 @@ bool ED_mask_selected_minmax(const struct bContext *C, float max[2], bool handles_as_control_point); -/* mask_draw.c */ +/* `mask_draw.cc` */ /** * Sets up the opengl context. @@ -114,7 +114,7 @@ void ED_mask_draw_region(struct Depsgraph *depsgraph, void ED_mask_draw_frames(struct Mask *mask, struct ARegion *region, int cfra, int sfra, int efra); -/* mask_shapekey.c */ +/* `mask_shapekey.cc` */ void ED_mask_layer_shape_auto_key(struct MaskLayer *mask_layer, int frame); bool ED_mask_layer_shape_auto_key_all(struct Mask *mask, int frame); diff --git a/source/blender/editors/include/ED_mball.h b/source/blender/editors/include/ED_mball.h index 0549f0e4a2a..711e6ff78d3 100644 --- a/source/blender/editors/include/ED_mball.h +++ b/source/blender/editors/include/ED_mball.h @@ -65,7 +65,7 @@ void ED_mball_editmball_make(struct Object *obedit); */ void ED_mball_editmball_load(struct Object *obedit); -/* editmball_undo.c */ +/* `editmball_undo.cc` */ /** Export for ED_undo_sys. */ void ED_mball_undosys_type(struct UndoType *ut); diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h index 6f2d8adb8bb..0068880207c 100644 --- a/source/blender/editors/include/ED_mesh.h +++ b/source/blender/editors/include/ED_mesh.h @@ -193,7 +193,7 @@ void EDBM_project_snap_verts(struct bContext *C, struct Object *obedit, struct BMEditMesh *em); -/* editmesh_automerge.c */ +/* `editmesh_automerge.cc` */ void EDBM_automerge(struct Object *obedit, bool update, char hflag, float dist); void EDBM_automerge_and_split(struct Object *obedit, @@ -352,7 +352,7 @@ bool EDBM_selectmode_disable_multi(struct bContext *C, short selectmode_disable, short selectmode_fallback); -/* editmesh_preselect_edgering.c */ +/* `editmesh_preselect_edgering.cc` */ struct EditMesh_PreSelEdgeRing; struct EditMesh_PreSelEdgeRing *EDBM_preselect_edgering_create(void); @@ -365,7 +365,7 @@ void EDBM_preselect_edgering_update_from_edge(struct EditMesh_PreSelEdgeRing *ps int previewlines, const float (*coords)[3]); -/* editmesh_preselect_elem.c */ +/* `editmesh_preselect_elem.cc` */ struct EditMesh_PreSelElem; typedef enum eEditMesh_PreSelPreviewAction { @@ -393,7 +393,7 @@ void EDBM_preselect_action_set(struct EditMesh_PreSelElem *psel, eEditMesh_PreSelPreviewAction action); eEditMesh_PreSelPreviewAction EDBM_preselect_action_get(struct EditMesh_PreSelElem *psel); -/* mesh_ops.c */ +/* `mesh_ops.cc` */ void ED_operatortypes_mesh(void); void ED_operatormacros_mesh(void); diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index 3eb769c9457..23dba4617e3 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -65,7 +65,7 @@ Object **ED_object_array_in_mode_or_selected(struct bContext *C, void *filter_user_data, uint *r_objects_len); -/* object_utils.c */ +/* `object_utils.cc` */ bool ED_object_calc_active_center_for_editmode(struct Object *obedit, bool select_only, @@ -127,13 +127,13 @@ void ED_object_xform_skip_child_container_item_ensure(struct XFormObjectSkipChil void ED_object_xform_array_m4(struct Object **objects, uint objects_len, const float matrix[4][4]); -/* object_ops.c */ +/* `object_ops.cc` */ void ED_operatortypes_object(void); void ED_operatormacros_object(void); void ED_keymap_object(struct wmKeyConfig *keyconf); -/* object_relations.c */ +/* `object_relations.cc` */ typedef enum eParentType { PAR_OBJECT, @@ -538,7 +538,7 @@ Object *ED_object_in_mode_from_index(const struct Scene *scene, eObjectMode mode, int index); -/* object_modifier.c */ +/* `object_modifier.cc` */ enum { MODIFIER_APPLY_DATA = 1, @@ -660,7 +660,7 @@ bool ED_object_gpencil_modifier_copy(struct ReportList *reports, void ED_object_gpencil_modifier_copy_to_object(struct Object *ob_dst, struct GpencilModifierData *md); -/* object_shader_fx.c */ +/* `object_shader_fx.cc` */ struct ShaderFxData *ED_object_shaderfx_add(struct ReportList *reports, struct Main *bmain, @@ -686,7 +686,7 @@ bool ED_object_shaderfx_move_to_index(struct ReportList *reports, void ED_object_shaderfx_link(struct Object *dst, struct Object *src); void ED_object_shaderfx_copy(struct Object *dst, struct ShaderFxData *fx); -/* object_select.c */ +/* `object_select.cc` */ void ED_object_select_linked_by_id(struct bContext *C, struct ID *id); diff --git a/source/blender/editors/include/ED_paint.h b/source/blender/editors/include/ED_paint.h index b2ace8c196d..f773671797a 100644 --- a/source/blender/editors/include/ED_paint.h +++ b/source/blender/editors/include/ED_paint.h @@ -32,7 +32,7 @@ void ED_operatortypes_paint(void); void ED_operatormacros_paint(void); void ED_keymap_paint(struct wmKeyConfig *keyconf); -/* paint_image.c */ +/* `paint_image.cc` */ void ED_imapaint_clear_partial_redraw(void); void ED_imapaint_dirty_region(struct Image *ima, @@ -48,7 +48,7 @@ void ED_imapaint_bucket_fill(struct bContext *C, struct wmOperator *op, const int mouse[2]); -/* paint_image_proj.c */ +/* `paint_image_proj.cc` */ void ED_paint_data_warning(struct ReportList *reports, bool uvs, bool mat, bool tex, bool stencil); /** @@ -58,7 +58,7 @@ void ED_paint_data_warning(struct ReportList *reports, bool uvs, bool mat, bool bool ED_paint_proj_mesh_data_check( struct Scene *scene, struct Object *ob, bool *uvs, bool *mat, bool *tex, bool *stencil); -/* image_undo.c */ +/* `image_undo.cc` */ /** * The caller is responsible for running #ED_image_undo_push_end, @@ -108,7 +108,7 @@ struct PaintTileMap *ED_image_paint_tile_map_get(void); #define ED_IMAGE_UNDO_TILE_NUMBER(size) \ (((size) + ED_IMAGE_UNDO_TILE_SIZE - 1) >> ED_IMAGE_UNDO_TILE_BITS) -/* paint_curve_undo.c */ +/* `paint_curve_undo.cc` */ void ED_paintcurve_undo_push_begin(const char *name); void ED_paintcurve_undo_push_end(struct bContext *C); diff --git a/source/blender/editors/include/ED_particle.h b/source/blender/editors/include/ED_particle.h index 7a52856c8da..ccfbced6035 100644 --- a/source/blender/editors/include/ED_particle.h +++ b/source/blender/editors/include/ED_particle.h @@ -69,7 +69,7 @@ int PE_lasso_select(struct bContext *C, const int mcoords[][2], int mcoords_len, bool PE_deselect_all_visible_ex(struct PTCacheEdit *edit); bool PE_deselect_all_visible(struct bContext *C); -/* particle_edit_undo.c */ +/* `particle_edit_undo.cc` */ /** Export for ED_undo_sys. */ void ED_particle_undosys_type(struct UndoType *ut); diff --git a/source/blender/editors/include/ED_physics.h b/source/blender/editors/include/ED_physics.h index ec002011fa2..4f54cc20531 100644 --- a/source/blender/editors/include/ED_physics.h +++ b/source/blender/editors/include/ED_physics.h @@ -19,13 +19,13 @@ struct wmKeyConfig; struct Object; struct Scene; -/* particle_edit.c */ +/* `particle_edit.cc` */ bool PE_poll(struct bContext *C); bool PE_hair_poll(struct bContext *C); bool PE_poll_view3d(struct bContext *C); -/* rigidbody_object.c */ +/* `rigidbody_object.cc` */ bool ED_rigidbody_object_add(struct Main *bmain, struct Scene *scene, @@ -34,7 +34,7 @@ bool ED_rigidbody_object_add(struct Main *bmain, struct ReportList *reports); void ED_rigidbody_object_remove(struct Main *bmain, struct Scene *scene, struct Object *ob); -/* rigidbody_constraint.c */ +/* `rigidbody_constraint.cc` */ bool ED_rigidbody_constraint_add(struct Main *bmain, struct Scene *scene, diff --git a/source/blender/editors/include/ED_render.h b/source/blender/editors/include/ED_render.h index c19c4940760..b26214b150a 100644 --- a/source/blender/editors/include/ED_render.h +++ b/source/blender/editors/include/ED_render.h @@ -29,11 +29,11 @@ struct PreviewImage; struct wmWindow; struct wmWindowManager; -/* render_ops.c */ +/* `render_ops.cc` */ void ED_operatortypes_render(void); -/* render_update.c */ +/* `render_update.cc` */ void ED_render_engine_changed(struct Main *bmain, bool update_scene_data); void ED_render_engine_area_exit(struct Main *bmain, struct ScrArea *area); diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 1538b13cc62..4fc0ae1d2b3 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -134,7 +134,7 @@ void ED_region_toggle_hidden(struct bContext *C, struct ARegion *region); void ED_region_visibility_change_update(struct bContext *C, struct ScrArea *area, struct ARegion *region); -/* screen_ops.c */ +/* `screen_ops.cc` */ /** * \note Assumes that \a region itself is not a split version from previous region. @@ -190,7 +190,7 @@ void ED_region_message_subscribe(struct wmRegionMessageSubscribeParams *params); /** * \note Keymap definitions are registered only once per WM initialize, * usually on file read, using the keymap the actual areas/regions add the handlers. - * \note Called in wm.c. */ + * \note Called in `wm.cc`. */ void ED_spacetypes_keymap(struct wmKeyConfig *keyconf); /** * Returns offset for next button in header. @@ -318,7 +318,7 @@ void ED_screen_scene_change(struct bContext *C, struct Scene *scene, bool refresh_toolsystem); /** - * Called in wm_event_system.c. sets state vars in screen, cursors. + * Called in `wm_event_system.cc`. sets state vars in screen, cursors. * event type is mouse move. */ void ED_screen_set_active_region(struct bContext *C, struct wmWindow *win, const int xy[2]); @@ -605,7 +605,7 @@ bool ED_operator_posemode(struct bContext *C); bool ED_operator_posemode_local(struct bContext *C); bool ED_operator_camera_poll(struct bContext *C); -/* screen_user_menu.c */ +/* `screen_user_menu.cc` */ bUserMenu **ED_screen_user_menus_find(const struct bContext *C, uint *r_len); struct bUserMenu *ED_screen_user_menu_ensure(struct bContext *C); @@ -653,7 +653,7 @@ void ED_region_cache_draw_curfra_label(int framenr, float x, float y); void ED_region_cache_draw_cached_segments( struct ARegion *region, int num_segments, const int *points, int sfra, int efra); -/* area_utils.c */ +/* `area_utils.cc` */ /** * Callback for #ARegionType.message_subscribe @@ -665,7 +665,7 @@ void ED_region_generic_tools_region_message_subscribe( */ int ED_region_generic_tools_region_snap_size(const struct ARegion *region, int size, int axis); -/* area_query.c */ +/* `area_query.cc` */ bool ED_region_overlap_isect_x(const ARegion *region, int event_x); bool ED_region_overlap_isect_y(const ARegion *region, int event_y); @@ -694,7 +694,7 @@ bool ED_region_contains_xy(const struct ARegion *region, const int event_xy[2]); */ ARegion *ED_area_find_region_xy_visual(const ScrArea *area, int regiontype, const int event_xy[2]); -/* interface_region_hud.c */ +/* `interface_region_hud.cc` */ struct ARegionType *ED_area_type_hud(int space_type); void ED_area_type_hud_clear(struct wmWindowManager *wm, ScrArea *area_keep); diff --git a/source/blender/editors/include/ED_text.h b/source/blender/editors/include/ED_text.h index 98d74b50e93..f5f0b3416a1 100644 --- a/source/blender/editors/include/ED_text.h +++ b/source/blender/editors/include/ED_text.h @@ -42,7 +42,7 @@ void ED_text_undosys_type(struct UndoType *ut); /** Use operator system to finish the undo step. */ struct UndoStep *ED_text_undo_push_init(struct bContext *C); -/* text_format.c */ +/* `text_format.cc` */ const char *ED_text_format_comment_line_prefix(struct Text *text); diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index 96619c7b7bf..4a23a36a036 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -132,7 +132,7 @@ int BIF_countTransformOrientation(const struct bContext *C); void Transform_Properties(struct wmOperatorType *ot, int flags); -/* *** transform_orientations.c *** */ +/* `transform_orientations.cc` */ void ED_transform_calc_orientation_from_type(const struct bContext *C, float r_mat[3][3]); /** * \note The resulting matrix may not be orthogonal, @@ -167,7 +167,7 @@ void VIEW3D_GGT_xform_gizmo_context(struct wmGizmoGroupType *gzgt); void VIEW3D_GGT_xform_cage(struct wmGizmoGroupType *gzgt); void VIEW3D_GGT_xform_shear(struct wmGizmoGroupType *gzgt); -/* *** transform_gizmo_extrude_3d.c *** */ +/* `transform_gizmo_extrude_3d.cc` */ void VIEW3D_GGT_xform_extrude(struct wmGizmoGroupType *gzgt); /* Generic 2D transform gizmo callback assignment. */ diff --git a/source/blender/editors/include/ED_undo.h b/source/blender/editors/include/ED_undo.h index e9c34cb3e13..7f2e27c13c8 100644 --- a/source/blender/editors/include/ED_undo.h +++ b/source/blender/editors/include/ED_undo.h @@ -106,12 +106,12 @@ void ED_undo_object_set_active_or_warn(struct Scene *scene, const char *info, struct CLG_LogRef *log); -/* undo_system_types.c */ +/* `undo_system_types.cc` */ void ED_undosys_type_init(void); void ED_undosys_type_free(void); -/* memfile_undo.c */ +/* `memfile_undo.cc` */ struct MemFile *ED_undosys_stack_memfile_get_active(struct UndoStack *ustack); /** diff --git a/source/blender/editors/include/ED_util_imbuf.h b/source/blender/editors/include/ED_util_imbuf.h index 6ac4bcbe929..58c88189ecf 100644 --- a/source/blender/editors/include/ED_util_imbuf.h +++ b/source/blender/editors/include/ED_util_imbuf.h @@ -20,7 +20,7 @@ struct bContext; struct wmEvent; struct wmOperator; -/* ed_util_imbuf.c */ +/* `ed_util_imbuf.cc` */ void ED_imbuf_sample_draw(const struct bContext *C, struct ARegion *region, void *arg_info); void ED_imbuf_sample_exit(struct bContext *C, struct wmOperator *op); diff --git a/source/blender/editors/include/ED_uvedit.h b/source/blender/editors/include/ED_uvedit.h index b011591a86e..0ba3970cceb 100644 --- a/source/blender/editors/include/ED_uvedit.h +++ b/source/blender/editors/include/ED_uvedit.h @@ -34,7 +34,7 @@ struct bNode; struct bNodeTree; struct wmKeyConfig; -/* uvedit_ops.c */ +/* `uvedit_ops.cc` */ void ED_operatortypes_uvedit(void); void ED_operatormacros_uvedit(void); @@ -317,7 +317,7 @@ void ED_uvedit_select_sync_flush(const struct ToolSettings *ts, struct BMEditMesh *em, bool select); -/* uvedit_unwrap_ops.c */ +/* `uvedit_unwrap_ops.cc` */ void ED_uvedit_live_unwrap_begin(struct Scene *scene, struct Object *obedit); void ED_uvedit_live_unwrap_re_solve(void); @@ -326,15 +326,15 @@ void ED_uvedit_live_unwrap_end(short cancel); void ED_uvedit_live_unwrap(const struct Scene *scene, struct Object **objects, int objects_len); void ED_uvedit_add_simple_uvs(struct Main *bmain, const struct Scene *scene, struct Object *ob); -/* uvedit_draw.c */ +/* `uvedit_draw.cc` */ void ED_image_draw_cursor(struct ARegion *region, const float cursor[2]); -/* uvedit_buttons.c */ +/* `uvedit_buttons.cc` */ void ED_uvedit_buttons_register(struct ARegionType *art); -/* uvedit_islands.c */ +/* `uvedit_islands.cc` */ struct FaceIsland { struct FaceIsland *next; diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index cf35d910052..1c9d3cbe028 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -289,13 +289,13 @@ ENUM_OPERATORS(eV3DProjTest, V3D_PROJ_TEST_CLIP_CONTENT); (V3D_PROJ_TEST_CLIP_CONTENT | V3D_PROJ_TEST_CLIP_NEAR | V3D_PROJ_TEST_CLIP_FAR | \ V3D_PROJ_TEST_CLIP_WIN) -/* view3d_snap.c */ +/* `view3d_snap.cc` */ bool ED_view3d_snap_selected_to_location(struct bContext *C, const float snap_target_global[3], int pivot_point); -/* view3d_cursor_snap.c */ +/* `view3d_cursor_snap.cc` */ #define USE_SNAP_DETECT_FROM_KEYMAP_HACK typedef enum { @@ -447,7 +447,7 @@ void pose_foreachScreenBone(struct ViewContext *vc, eV3DProjTest clip_flag); /* *** end iterators *** */ -/* view3d_project.c */ +/* `view3d_project.cc` */ /** * \note use #ED_view3d_ob_project_mat_get to get the projection matrix @@ -1369,7 +1369,7 @@ void ED_view3d_buttons_region_layout_ex(const struct bContext *C, struct ARegion *region, const char *category_override); -/* view3d_view.c */ +/* `view3d_view.cc` */ /** * See if current UUID is valid, otherwise set a valid UUID to v3d, diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 18c2c76a28c..c6e3654fa20 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -653,7 +653,7 @@ typedef bool (*uiMenuStepFunc)(struct bContext *C, int direction, void *arg1); typedef void *(*uiCopyArgFunc)(const void *arg); typedef void (*uiFreeArgFunc)(void *arg); -/* interface_query.c */ +/* `interface_query.cc` */ bool UI_but_has_tooltip_label(const uiBut *but); bool UI_but_is_tool(const uiBut *but); @@ -667,7 +667,7 @@ bool UI_block_can_add_separator(const uiBlock *block); struct uiList *UI_list_find_mouse_over(const struct ARegion *region, const struct wmEvent *event); -/* interface_region_menu_popup.c */ +/* `interface_region_menu_popup.cc` */ /** * Popup Menus @@ -711,7 +711,7 @@ void UI_popup_menu_retval_set(const uiBlock *block, int retval, bool enable); */ void UI_popup_menu_but_set(uiPopupMenu *pup, struct ARegion *butregion, uiBut *but); -/* interface_region_popover.c */ +/* `interface_region_popover.cc` */ typedef struct uiPopover uiPopover; @@ -735,7 +735,7 @@ void UI_popover_end(struct bContext *C, struct uiPopover *pup, struct wmKeyMap * struct uiLayout *UI_popover_layout(uiPopover *pup); void UI_popover_once_clear(uiPopover *pup); -/* interface_region_menu_pie.c */ +/* `interface_region_menu_pie.cc` */ /* Pie menus */ typedef struct uiPieMenu uiPieMenu; @@ -758,7 +758,7 @@ struct uiPieMenu *UI_pie_menu_begin(struct bContext *C, void UI_pie_menu_end(struct bContext *C, uiPieMenu *pie); struct uiLayout *UI_pie_menu_layout(struct uiPieMenu *pie); -/* interface_region_menu_popup.c */ +/* `interface_region_menu_popup.cc` */ /* Popup Blocks * diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 8c1bf8fd0e8..77feb5adae6 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -498,7 +498,7 @@ void UI_view2d_smooth_view(const struct bContext *C, /** \name Gizmo Types * \{ */ -/* view2d_gizmo_navigate.c */ +/* `view2d_gizmo_navigate.cc` */ /** * Caller defines the name for gizmo group. diff --git a/source/blender/editors/interface/eyedroppers/eyedropper_intern.hh b/source/blender/editors/interface/eyedroppers/eyedropper_intern.hh index 958bf0d82cd..47972d7aba6 100644 --- a/source/blender/editors/interface/eyedroppers/eyedropper_intern.hh +++ b/source/blender/editors/interface/eyedroppers/eyedropper_intern.hh @@ -10,7 +10,7 @@ #pragma once -/* interface_eyedropper.c */ +/* `interface_eyedropper.cc` */ void eyedropper_draw_cursor_text_window(const struct wmWindow *window, const char *name); void eyedropper_draw_cursor_text_region(const int xy[2], const char *name); diff --git a/source/blender/editors/interface/interface.cc b/source/blender/editors/interface/interface.cc index c3489d2c180..5e4c4110c7b 100644 --- a/source/blender/editors/interface/interface.cc +++ b/source/blender/editors/interface/interface.cc @@ -6471,7 +6471,7 @@ static void operator_enum_search_exec_fn(bContext * /*C*/, void *but, void *arg2 if (ot->prop) { RNA_property_enum_set(opptr, ot->prop, POINTER_AS_INT(arg2)); /* We do not call op from here, will be called by button code. - * ui_apply_but_funcs_after() (in interface_handlers.c) + * ui_apply_but_funcs_after() (in `interface_handlers.cc`) * called this func before checking operators, * because one of its parameters is the button itself! */ } diff --git a/source/blender/editors/interface/interface_handlers.cc b/source/blender/editors/interface/interface_handlers.cc index 3727a68f797..9df5d880bbc 100644 --- a/source/blender/editors/interface/interface_handlers.cc +++ b/source/blender/editors/interface/interface_handlers.cc @@ -9661,7 +9661,7 @@ static int ui_handle_list_event(bContext *C, const wmEvent *event, ARegion *regi } /* If type still is mouse-pan, we call it handled, since delta-y accumulate. */ - /* also see wm_event_system.c do_wheel_ui hack */ + /* also see `wm_event_system.cc` do_wheel_ui hack. */ if (type == MOUSEPAN) { retval = WM_UI_HANDLER_BREAK; } diff --git a/source/blender/editors/interface/interface_intern.hh b/source/blender/editors/interface/interface_intern.hh index f212fb76c5a..90daed73aa3 100644 --- a/source/blender/editors/interface/interface_intern.hh +++ b/source/blender/editors/interface/interface_intern.hh @@ -601,7 +601,7 @@ struct uiSafetyRct { rctf safety; }; -/* interface.c */ +/* `interface.cc` */ void ui_fontscale(float *points, float aspect); @@ -772,7 +772,7 @@ void ui_block_bounds_calc(uiBlock *block); ColorManagedDisplay *ui_block_cm_display_get(uiBlock *block); void ui_block_cm_to_display_space_v3(uiBlock *block, float pixel[3]); -/* interface_regions.c */ +/* `interface_regions.cc` */ struct uiKeyNavLock { /** Set when we're using keyboard-input. */ @@ -853,11 +853,11 @@ struct uiPopupBlockHandle { /* -------------------------------------------------------------------- */ /* interface_region_*.c */ -/* interface_region_tooltip.c */ +/* `interface_region_tooltip.cc` */ /* exposed as public API in UI_interface.h */ -/* interface_region_color_picker.c */ +/* `interface_region_color_picker.cc` */ void ui_color_picker_rgb_to_hsv_compat(const float rgb[3], float r_cp[3]); void ui_color_picker_rgb_to_hsv(const float rgb[3], float r_cp[3]); @@ -875,7 +875,7 @@ void ui_perceptual_to_scene_linear_space(uiBut *but, float rgb[3]); uiBlock *ui_block_func_COLOR(bContext *C, uiPopupBlockHandle *handle, void *arg_but); ColorPicker *ui_block_colorpicker_create(uiBlock *block); -/* interface_region_search.c */ +/* `interface_region_search.cc` */ /** * Search-box for string button. @@ -906,7 +906,7 @@ void ui_searchbox_free(bContext *C, ARegion *region); */ void ui_but_search_refresh(uiButSearch *but); -/* interface_region_menu_popup.c */ +/* `interface_region_menu_popup.cc` */ int ui_but_menu_step(uiBut *but, int direction); bool ui_but_menu_step_poll(const uiBut *but); @@ -931,12 +931,12 @@ uiPopupBlockHandle *ui_popup_block_create(bContext *C, uiPopupBlockHandle *ui_popup_menu_create( bContext *C, ARegion *butregion, uiBut *but, uiMenuCreateFunc menu_func, void *arg); -/* interface_region_popover.c */ +/* `interface_region_popover.cc` */ uiPopupBlockHandle *ui_popover_panel_create( bContext *C, ARegion *butregion, uiBut *but, uiMenuCreateFunc menu_func, void *arg); -/* interface_region_menu_pie.c */ +/* `interface_region_menu_pie.cc` */ /** * Set up data for defining a new pie menu level and add button that invokes it. @@ -950,7 +950,7 @@ void ui_pie_menu_level_create(uiBlock *block, wmOperatorCallContext context, eUI_Item_Flag flag); -/* interface_region_popup.c */ +/* `interface_region_popup.cc` */ /** * Translate any popup regions (so we can drag them). @@ -961,7 +961,7 @@ void ui_popup_block_scrolltest(uiBlock *block); /* end interface_region_*.c */ -/* interface_panel.c */ +/* `interface_panel.cc` */ /** * Handle region panel events like opening and closing panels, changing categories, etc. @@ -1026,7 +1026,7 @@ void ui_draw_but_TRACKPREVIEW(ARegion *region, const uiWidgetColors *wcol, const rcti *rect); -/* interface_undo.c */ +/* `interface_undo.cc` */ /** * Start the undo stack. @@ -1051,7 +1051,7 @@ void ui_handle_afterfunc_add_operator(wmOperatorType *ot, wmOperatorCallContext */ void ui_pan_to_scroll(const wmEvent *event, int *type, int *val); /** - * Exported to interface.c: #UI_but_active_only() + * Exported to `interface.cc`: #UI_but_active_only() * \note The region is only for the button. * The context needs to be set by the caller. */ @@ -1210,7 +1210,7 @@ void ui_draw_preview_item_stateless(const uiFontStyle *fstyle, #define UI_PIXEL_AA_JITTER 8 extern const float ui_pixel_jitter[UI_PIXEL_AA_JITTER][2]; -/* interface_style.c */ +/* `interface_style.cc` */ /** * Called on each startup.blend read, @@ -1290,7 +1290,7 @@ int ui_but_align_opposite_to_area_align_get(const ARegion *region) ATTR_WARN_UNU */ void ui_block_align_calc(uiBlock *block, const ARegion *region); -/* interface_anim.c */ +/* `interface_anim.cc` */ void ui_but_anim_flag(uiBut *but, const AnimationEvalContext *anim_eval_context); void ui_but_anim_copy_driver(bContext *C); @@ -1310,7 +1310,7 @@ void ui_but_anim_autokey(bContext *C, uiBut *but, Scene *scene, float cfra); void ui_but_anim_decorate_cb(bContext *C, void *arg_but, void *arg_dummy); void ui_but_anim_decorate_update_from_flag(uiButDecorator *but); -/* interface_query.c */ +/* `interface_query.cc` */ bool ui_but_is_editable(const uiBut *but) ATTR_WARN_UNUSED_RESULT; bool ui_but_is_editable_as_text(const uiBut *but) ATTR_WARN_UNUSED_RESULT; @@ -1407,7 +1407,7 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but, const wmEvent *ev */ void ui_popup_context_menu_for_panel(bContext *C, ARegion *region, Panel *panel); -/* interface_eyedropper.c */ +/* `interface_eyedropper.cc` */ wmKeyMap *eyedropper_modal_keymap(wmKeyConfig *keyconf); wmKeyMap *eyedropper_colorband_modal_keymap(wmKeyConfig *keyconf); @@ -1460,7 +1460,7 @@ struct uiRNACollectionSearch { void ui_rna_collection_search_update_fn( const bContext *C, void *arg, const char *str, uiSearchItems *items, bool is_first); -/* interface_ops.c */ +/* `interface_ops.cc` */ bool ui_jump_to_target_button_poll(bContext *C); diff --git a/source/blender/editors/interface/interface_layout.cc b/source/blender/editors/interface/interface_layout.cc index e3b07ca7fff..a272c26ce8e 100644 --- a/source/blender/editors/interface/interface_layout.cc +++ b/source/blender/editors/interface/interface_layout.cc @@ -5831,7 +5831,7 @@ void UI_block_layout_resolve(uiBlock *block, int *r_x, int *r_y) BLI_listbase_clear(&block->layouts); - /* XXX silly trick, interface_templates.c doesn't get linked + /* XXX silly trick, `interface_templates.cc` doesn't get linked * because it's not used by other files in this module? */ { UI_template_fix_linking(); diff --git a/source/blender/editors/interface/interface_region_popover.cc b/source/blender/editors/interface/interface_region_popover.cc index b55b6cbc737..498f3239664 100644 --- a/source/blender/editors/interface/interface_region_popover.cc +++ b/source/blender/editors/interface/interface_region_popover.cc @@ -7,7 +7,7 @@ * * Pop-Over Region * - * \note This is very close to 'interface_region_menu_popup.c' + * \note This is very close to `interface_region_menu_popup.cc`. * * We could even merge them, however menu logic is already over-loaded. * PopOver's have the following differences. diff --git a/source/blender/editors/interface/interface_templates.cc b/source/blender/editors/interface/interface_templates.cc index ac6d86b0ffd..9d98a24b3da 100644 --- a/source/blender/editors/interface/interface_templates.cc +++ b/source/blender/editors/interface/interface_templates.cc @@ -5982,7 +5982,7 @@ static void handle_layer_buttons(bContext *C, void *arg1, void *arg2) } /* view3d layer change should update depsgraph (invisible object changed maybe) */ - /* see view3d_header.c */ + /* see `view3d_header.cc` */ } void uiTemplateLayers(uiLayout *layout, diff --git a/source/blender/editors/interface/view2d_ops.cc b/source/blender/editors/interface/view2d_ops.cc index 09a4dd13b06..2a60c775b1e 100644 --- a/source/blender/editors/interface/view2d_ops.cc +++ b/source/blender/editors/interface/view2d_ops.cc @@ -2156,9 +2156,8 @@ static int scroller_activate_invoke(bContext *C, wmOperator *op, const wmEvent * vsm->zone = SCROLLHANDLE_BAR; } - /* check if zoom zones are inappropriate (i.e. zoom widgets not shown), so cannot continue - * NOTE: see view2d.c for latest conditions, and keep this in sync with that - */ + /* Check if zoom zones are inappropriate (i.e. zoom widgets not shown), so cannot continue + * NOTE: see `view2d.cc` for latest conditions, and keep this in sync with that. */ if (ELEM(vsm->zone, SCROLLHANDLE_MIN, SCROLLHANDLE_MAX)) { if (((vsm->scroller == 'h') && (v2d->scroll & V2D_SCROLL_HORIZONTAL_HANDLES) == 0) || ((vsm->scroller == 'v') && (v2d->scroll & V2D_SCROLL_VERTICAL_HANDLES) == 0)) diff --git a/source/blender/editors/io/io_alembic.cc b/source/blender/editors/io/io_alembic.cc index a172ceb2c22..f3e27d0019b 100644 --- a/source/blender/editors/io/io_alembic.cc +++ b/source/blender/editors/io/io_alembic.cc @@ -475,7 +475,7 @@ void WM_OT_alembic_export(wmOperatorType *ot) /* ************************************************************************** */ -/* TODO(kevin): check on de-duplicating all this with code in image_ops.c */ +/* TODO(kevin): check on de-duplicating all this with code in `image_ops.cc` */ struct CacheFrame { CacheFrame *next, *prev; diff --git a/source/blender/editors/lattice/lattice_intern.h b/source/blender/editors/lattice/lattice_intern.h index 3854d3f995c..18d7fea3cf5 100644 --- a/source/blender/editors/lattice/lattice_intern.h +++ b/source/blender/editors/lattice/lattice_intern.h @@ -12,7 +12,7 @@ extern "C" { #endif -/* editlattice_select.c */ +/* `editlattice_select.cc` */ void LATTICE_OT_select_all(struct wmOperatorType *ot); void LATTICE_OT_select_more(struct wmOperatorType *ot); @@ -21,7 +21,7 @@ void LATTICE_OT_select_ungrouped(struct wmOperatorType *ot); void LATTICE_OT_select_random(struct wmOperatorType *ot); void LATTICE_OT_select_mirror(struct wmOperatorType *ot); -/* editlattice_tools.c */ +/* `editlattice_tools.cc` */ void LATTICE_OT_make_regular(struct wmOperatorType *ot); void LATTICE_OT_flip(struct wmOperatorType *ot); diff --git a/source/blender/editors/mask/mask_intern.h b/source/blender/editors/mask/mask_intern.h index 305cd5c3e94..1b3dfac8454 100644 --- a/source/blender/editors/mask/mask_intern.h +++ b/source/blender/editors/mask/mask_intern.h @@ -16,14 +16,14 @@ struct wmOperatorType; /* internal exports only */ -/* mask_add.c */ +/* `mask_add.cc` */ void MASK_OT_add_vertex(struct wmOperatorType *ot); void MASK_OT_add_feather_vertex(struct wmOperatorType *ot); void MASK_OT_primitive_circle_add(struct wmOperatorType *ot); void MASK_OT_primitive_square_add(struct wmOperatorType *ot); -/* mask_ops.c */ +/* `mask_ops.cc` */ struct Mask *ED_mask_new(struct bContext *C, const char *name); /** @@ -56,13 +56,13 @@ void MASK_OT_duplicate(struct wmOperatorType *ot); void MASK_OT_copy_splines(struct wmOperatorType *ot); void MASK_OT_paste_splines(struct wmOperatorType *ot); -/* mask_relationships.c */ +/* `mask_relationships.cc` */ /** based on #OBJECT_OT_parent_set */ void MASK_OT_parent_set(struct wmOperatorType *ot); void MASK_OT_parent_clear(struct wmOperatorType *ot); -/* mask_select.c */ +/* `mask_select.cc` */ void MASK_OT_select(struct wmOperatorType *ot); void MASK_OT_select_all(struct wmOperatorType *ot); @@ -100,7 +100,7 @@ void ED_mask_view_lock_state_store(const struct bContext *C, MaskViewLockState * void ED_mask_view_lock_state_restore_no_jump(const struct bContext *C, const MaskViewLockState *state); -/* mask_query.c */ +/* `mask_query.cc` */ bool ED_mask_find_nearest_diff_point(const struct bContext *C, struct Mask *mask, @@ -133,7 +133,7 @@ struct MaskSplinePoint *ED_mask_point_find_nearest(const struct bContext *C, eMaskWhichHandle *r_which_handle, float *r_score); -/* mask_shapekey.c */ +/* `mask_shapekey.cc` */ void MASK_OT_shape_key_insert(struct wmOperatorType *ot); void MASK_OT_shape_key_clear(struct wmOperatorType *ot); diff --git a/source/blender/editors/mesh/mesh_intern.h b/source/blender/editors/mesh/mesh_intern.h index 82c00cee710..8c45e66c71d 100644 --- a/source/blender/editors/mesh/mesh_intern.h +++ b/source/blender/editors/mesh/mesh_intern.h @@ -106,7 +106,7 @@ bool edbm_extrude_edges_indiv(struct BMEditMesh *em, char hflag, bool use_normal_flip); -/* *** editmesh_add.c *** */ +/* *** `editmesh_add.cc` *** */ void MESH_OT_primitive_plane_add(struct wmOperatorType *ot); void MESH_OT_primitive_cube_add(struct wmOperatorType *ot); @@ -118,7 +118,7 @@ void MESH_OT_primitive_monkey_add(struct wmOperatorType *ot); void MESH_OT_primitive_uv_sphere_add(struct wmOperatorType *ot); void MESH_OT_primitive_ico_sphere_add(struct wmOperatorType *ot); -/* *** editmesh_add_gizmo.c *** */ +/* *** `editmesh_add_gizmo.cc` *** */ void MESH_OT_primitive_cube_add_gizmo(struct wmOperatorType *ot); @@ -126,16 +126,16 @@ void MESH_OT_primitive_cube_add_gizmo(struct wmOperatorType *ot); void MESH_OT_attribute_set(struct wmOperatorType *ot); -/* *** editmesh_bevel.c *** */ +/* *** `editmesh_bevel.cc` *** */ void MESH_OT_bevel(struct wmOperatorType *ot); struct wmKeyMap *bevel_modal_keymap(struct wmKeyConfig *keyconf); -/* *** editmesh_bisect.c *** */ +/* *** `editmesh_bisect.cc` *** */ void MESH_OT_bisect(struct wmOperatorType *ot); -/* *** editmesh_extrude.c *** */ +/* *** `editmesh_extrude.cc` *** */ void MESH_OT_extrude_repeat(struct wmOperatorType *ot); void MESH_OT_extrude_region(struct wmOperatorType *ot); @@ -145,20 +145,20 @@ void MESH_OT_extrude_edges_indiv(struct wmOperatorType *ot); void MESH_OT_extrude_faces_indiv(struct wmOperatorType *ot); void MESH_OT_dupli_extrude_cursor(struct wmOperatorType *ot); -/* *** editmesh_extrude_screw.c *** */ +/* *** `editmesh_extrude_screw.cc` *** */ void MESH_OT_screw(struct wmOperatorType *ot); -/* *** editmesh_extrude_spin.c *** */ +/* *** `editmesh_extrude_spin.cc` *** */ void MESH_OT_spin(struct wmOperatorType *ot); -/* *** editmesh_extrude_spin_gizmo.c *** */ +/* *** `editmesh_extrude_spin_gizmo.cc` *** */ void MESH_GGT_spin(struct wmGizmoGroupType *gzgt); void MESH_GGT_spin_redo(struct wmGizmoGroupType *gzgt); -/* *** editmesh_polybuild.c *** */ +/* *** `editmesh_polybuild.cc` *** */ void MESH_OT_polybuild_face_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_split_at_cursor(struct wmOperatorType *ot); @@ -166,17 +166,17 @@ void MESH_OT_polybuild_dissolve_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_transform_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_delete_at_cursor(struct wmOperatorType *ot); -/* *** editmesh_inset.c *** */ +/* *** `editmesh_inset.cc` *** */ void MESH_OT_inset(struct wmOperatorType *ot); -/* *** editmesh_intersect.c *** */ +/* *** `editmesh_intersect.cc` *** */ void MESH_OT_intersect(struct wmOperatorType *ot); void MESH_OT_intersect_boolean(struct wmOperatorType *ot); void MESH_OT_face_split_by_edges(struct wmOperatorType *ot); -/* *** editmesh_knife.c *** */ +/* *** `editmesh_knife.cc` *** */ void MESH_OT_knife_tool(struct wmOperatorType *ot); void MESH_OT_knife_project(struct wmOperatorType *ot); @@ -192,11 +192,11 @@ void EDBM_mesh_knife(struct ViewContext *vc, struct wmKeyMap *knifetool_modal_keymap(struct wmKeyConfig *keyconf); -/* *** editmesh_loopcut.c *** */ +/* *** `editmesh_loopcut.cc` *** */ void MESH_OT_loopcut(struct wmOperatorType *ot); -/* *** editmesh_rip.c *** */ +/* *** `editmesh_rip.cc` *** */ void MESH_OT_rip(struct wmOperatorType *ot); void MESH_OT_rip_edge(struct wmOperatorType *ot); @@ -308,7 +308,7 @@ void MESH_OT_paint_mask_extract(struct wmOperatorType *ot); void MESH_OT_face_set_extract(struct wmOperatorType *ot); void MESH_OT_paint_mask_slice(struct wmOperatorType *ot); -/** Called in transform_ops.c, on each regeneration of key-maps. */ +/** Called in `transform_ops.cc`, on each regeneration of key-maps. */ struct wmKeyMap *point_normals_modal_keymap(wmKeyConfig *keyconf); #if defined(WITH_FREESTYLE) diff --git a/source/blender/editors/mesh/meshtools.cc b/source/blender/editors/mesh/meshtools.cc index 499bffc25a4..ca7423fd86a 100644 --- a/source/blender/editors/mesh/meshtools.cc +++ b/source/blender/editors/mesh/meshtools.cc @@ -5,7 +5,7 @@ /** \file * \ingroup edmesh * - * meshtools.c: no editmode (violated already :), mirror & join), + * `meshtools.cc`: no editmode (violated already :), mirror & join), * tools operating on meshes */ diff --git a/source/blender/editors/object/object_intern.h b/source/blender/editors/object/object_intern.h index d83ceac891a..97be5cf4e76 100644 --- a/source/blender/editors/object/object_intern.h +++ b/source/blender/editors/object/object_intern.h @@ -41,7 +41,7 @@ void OBJECT_OT_parent_inverse_apply(wmOperatorType *ot); void OBJECT_OT_transform_axis_target(struct wmOperatorType *ot); void OBJECT_OT_origin_set(struct wmOperatorType *ot); -/* object_relations.c */ +/* `object_relations.cc` */ void OBJECT_OT_parent_set(struct wmOperatorType *ot); void OBJECT_OT_parent_no_inverse_set(struct wmOperatorType *ot); @@ -95,7 +95,7 @@ void OBJECT_OT_link_to_collection(struct wmOperatorType *ot); void OBJECT_OT_transfer_mode(struct wmOperatorType *ot); -/* object_select.c */ +/* `object_select.cc` */ void OBJECT_OT_select_all(struct wmOperatorType *ot); void OBJECT_OT_select_random(struct wmOperatorType *ot); @@ -141,7 +141,7 @@ void OBJECT_OT_join(struct wmOperatorType *ot); void OBJECT_OT_join_shapes(struct wmOperatorType *ot); void OBJECT_OT_convert(struct wmOperatorType *ot); -/* object_volume.c */ +/* `object_volume.cc` */ void OBJECT_OT_volume_add(struct wmOperatorType *ot); /** @@ -149,7 +149,7 @@ void OBJECT_OT_volume_add(struct wmOperatorType *ot); */ void OBJECT_OT_volume_import(struct wmOperatorType *ot); -/* object_hook.c */ +/* `object_hook.cc` */ void OBJECT_OT_hook_add_selob(struct wmOperatorType *ot); void OBJECT_OT_hook_add_newob(struct wmOperatorType *ot); @@ -159,7 +159,7 @@ void OBJECT_OT_hook_assign(struct wmOperatorType *ot); void OBJECT_OT_hook_reset(struct wmOperatorType *ot); void OBJECT_OT_hook_recenter(struct wmOperatorType *ot); -/* object_collection.c */ +/* `object_collection.cc` */ void COLLECTION_OT_create(struct wmOperatorType *ot); void COLLECTION_OT_objects_remove_all(struct wmOperatorType *ot); @@ -179,7 +179,7 @@ void OBJECT_OT_light_linking_blockers_link(struct wmOperatorType *ot); void OBJECT_OT_light_linking_unlink_from_collection(struct wmOperatorType *ot); -/* object_modifier.c */ +/* `object_modifier.cc` */ bool edit_modifier_poll_generic(struct bContext *C, struct StructRNA *rna_type, @@ -244,7 +244,7 @@ void GPENCIL_OT_time_segment_add(struct wmOperatorType *ot); void GPENCIL_OT_time_segment_remove(struct wmOperatorType *ot); void GPENCIL_OT_time_segment_move(struct wmOperatorType *ot); -/* object_shader_fx.c */ +/* `object_shader_fx.cc` */ void OBJECT_OT_shaderfx_add(struct wmOperatorType *ot); void OBJECT_OT_shaderfx_copy(struct wmOperatorType *ot); @@ -253,7 +253,7 @@ void OBJECT_OT_shaderfx_move_up(struct wmOperatorType *ot); void OBJECT_OT_shaderfx_move_down(struct wmOperatorType *ot); void OBJECT_OT_shaderfx_move_to_index(struct wmOperatorType *ot); -/* object_constraint.c */ +/* `object_constraint.cc` */ void OBJECT_OT_constraint_add(struct wmOperatorType *ot); void OBJECT_OT_constraint_add_with_targets(struct wmOperatorType *ot); @@ -316,11 +316,11 @@ void OBJECT_OT_vertex_weight_set_active(struct wmOperatorType *ot); void OBJECT_OT_vertex_weight_normalize_active_vertex(struct wmOperatorType *ot); void OBJECT_OT_vertex_weight_copy(struct wmOperatorType *ot); -/* object_warp.c */ +/* `object_warp.cc` */ void TRANSFORM_OT_vertex_warp(struct wmOperatorType *ot); -/* object_shapekey.c */ +/* `object_shapekey.cc` */ void OBJECT_OT_shape_key_add(struct wmOperatorType *ot); void OBJECT_OT_shape_key_remove(struct wmOperatorType *ot); @@ -329,7 +329,7 @@ void OBJECT_OT_shape_key_retime(struct wmOperatorType *ot); void OBJECT_OT_shape_key_mirror(struct wmOperatorType *ot); void OBJECT_OT_shape_key_move(struct wmOperatorType *ot); -/* object_collection.c */ +/* `object_collection.cc` */ void OBJECT_OT_collection_add(struct wmOperatorType *ot); void OBJECT_OT_collection_link(struct wmOperatorType *ot); @@ -337,7 +337,7 @@ void OBJECT_OT_collection_remove(struct wmOperatorType *ot); void OBJECT_OT_collection_unlink(struct wmOperatorType *ot); void OBJECT_OT_collection_objects_select(struct wmOperatorType *ot); -/* object_bake.c */ +/* `object_bake.cc` */ void OBJECT_OT_bake_image(wmOperatorType *ot); void OBJECT_OT_bake(wmOperatorType *ot); @@ -348,7 +348,7 @@ void OBJECT_OT_simulation_nodes_cache_calculate_to_frame(wmOperatorType *ot); void OBJECT_OT_simulation_nodes_cache_bake(wmOperatorType *ot); void OBJECT_OT_simulation_nodes_cache_delete(wmOperatorType *ot); -/* object_random.c */ +/* `object_random.cc` */ void TRANSFORM_OT_vertex_random(struct wmOperatorType *ot); diff --git a/source/blender/editors/physics/physics_intern.h b/source/blender/editors/physics/physics_intern.h index e5414b87fb8..d1d11a73641 100644 --- a/source/blender/editors/physics/physics_intern.h +++ b/source/blender/editors/physics/physics_intern.h @@ -20,7 +20,7 @@ struct wmOperatorType; extern "C" { #endif -/* particle_edit.c */ +/* `particle_edit.cc` */ void PARTICLE_OT_select_all(struct wmOperatorType *ot); void PARTICLE_OT_select_roots(struct wmOperatorType *ot); @@ -70,7 +70,7 @@ void recalc_emitter_field(struct Depsgraph *depsgraph, struct ParticleSystem *psys); void update_world_cos(struct Object *ob, struct PTCacheEdit *edit); -/* particle_object.c */ +/* `particle_object.cc` */ void OBJECT_OT_particle_system_add(struct wmOperatorType *ot); void OBJECT_OT_particle_system_remove(struct wmOperatorType *ot); @@ -91,7 +91,7 @@ void PARTICLE_OT_dupliob_move_up(struct wmOperatorType *ot); void PARTICLE_OT_dupliob_move_down(struct wmOperatorType *ot); void PARTICLE_OT_dupliob_refresh(struct wmOperatorType *ot); -/* particle_boids.c */ +/* `particle_boids.cc` */ void BOID_OT_rule_add(struct wmOperatorType *ot); void BOID_OT_rule_del(struct wmOperatorType *ot); @@ -103,7 +103,7 @@ void BOID_OT_state_del(struct wmOperatorType *ot); void BOID_OT_state_move_up(struct wmOperatorType *ot); void BOID_OT_state_move_down(struct wmOperatorType *ot); -/* physics_fluid.c */ +/* `physics_fluid.cc` */ void FLUID_OT_bake_all(struct wmOperatorType *ot); void FLUID_OT_free_all(struct wmOperatorType *ot); @@ -133,7 +133,7 @@ void DPAINT_OT_surface_slot_remove(struct wmOperatorType *ot); void DPAINT_OT_type_toggle(struct wmOperatorType *ot); void DPAINT_OT_output_toggle(struct wmOperatorType *ot); -/* physics_pointcache.c */ +/* `physics_pointcache.cc` */ void PTCACHE_OT_bake_all(struct wmOperatorType *ot); void PTCACHE_OT_free_bake_all(struct wmOperatorType *ot); @@ -143,7 +143,7 @@ void PTCACHE_OT_bake_from_cache(struct wmOperatorType *ot); void PTCACHE_OT_add(struct wmOperatorType *ot); void PTCACHE_OT_remove(struct wmOperatorType *ot); -/* rigidbody_object.c */ +/* `rigidbody_object.cc` */ void RIGIDBODY_OT_object_add(struct wmOperatorType *ot); void RIGIDBODY_OT_object_remove(struct wmOperatorType *ot); @@ -154,12 +154,12 @@ void RIGIDBODY_OT_objects_remove(struct wmOperatorType *ot); void RIGIDBODY_OT_shape_change(struct wmOperatorType *ot); void RIGIDBODY_OT_mass_calculate(struct wmOperatorType *ot); -/* rigidbody_constraint.c */ +/* `rigidbody_constraint.cc` */ void RIGIDBODY_OT_constraint_add(struct wmOperatorType *ot); void RIGIDBODY_OT_constraint_remove(struct wmOperatorType *ot); -/* rigidbody_world.c */ +/* `rigidbody_world.cc` */ void RIGIDBODY_OT_world_add(struct wmOperatorType *ot); void RIGIDBODY_OT_world_remove(struct wmOperatorType *ot); diff --git a/source/blender/editors/render/render_intern.hh b/source/blender/editors/render/render_intern.hh index 99a384672c7..47c0c2503e9 100644 --- a/source/blender/editors/render/render_intern.hh +++ b/source/blender/editors/render/render_intern.hh @@ -12,7 +12,7 @@ struct ScrArea; struct bContext; struct wmOperatorType; -/* render_shading.c */ +/* `render_shading.cc` */ void OBJECT_OT_material_slot_add(struct wmOperatorType *ot); void OBJECT_OT_material_slot_remove(struct wmOperatorType *ot); @@ -72,7 +72,7 @@ void TEXTURE_OT_slot_copy(struct wmOperatorType *ot); void TEXTURE_OT_slot_paste(struct wmOperatorType *ot); void TEXTURE_OT_slot_move(struct wmOperatorType *ot); -/* render_internal.c */ +/* `render_internal.cc` */ /** * Contextual render, using current scene, view3d? @@ -80,7 +80,7 @@ void TEXTURE_OT_slot_move(struct wmOperatorType *ot); void RENDER_OT_render(struct wmOperatorType *ot); void RENDER_OT_shutter_curve_preset(struct wmOperatorType *ot); -/* render_view.c */ +/* `render_view.cc` */ /** * New window uses x,y to set position. @@ -90,6 +90,6 @@ struct ScrArea *render_view_open(struct bContext *C, int mx, int my, struct Repo void RENDER_OT_view_show(struct wmOperatorType *ot); void RENDER_OT_view_cancel(struct wmOperatorType *ot); -/* render_opengl.c */ +/* `render_opengl.cc` */ void RENDER_OT_opengl(struct wmOperatorType *ot); diff --git a/source/blender/editors/render/render_ops.cc b/source/blender/editors/render/render_ops.cc index 6225d2e1bbc..ae69e9366c2 100644 --- a/source/blender/editors/render/render_ops.cc +++ b/source/blender/editors/render/render_ops.cc @@ -78,12 +78,12 @@ void ED_operatortypes_render() WM_operatortype_append(TEXTURE_OT_slot_paste); WM_operatortype_append(TEXTURE_OT_slot_move); - /* render_internal.c */ + /* `render_internal.cc` */ WM_operatortype_append(RENDER_OT_view_show); WM_operatortype_append(RENDER_OT_render); WM_operatortype_append(RENDER_OT_view_cancel); WM_operatortype_append(RENDER_OT_shutter_curve_preset); - /* render_opengl.c */ + /* `render_opengl.cc` */ WM_operatortype_append(RENDER_OT_opengl); } diff --git a/source/blender/editors/screen/screen_edit.cc b/source/blender/editors/screen/screen_edit.cc index 28edd177524..7933ef801f6 100644 --- a/source/blender/editors/screen/screen_edit.cc +++ b/source/blender/editors/screen/screen_edit.cc @@ -212,7 +212,7 @@ bScreen *screen_add(Main *bmain, const char *name, const rcti *rect) void screen_data_copy(bScreen *to, bScreen *from) { - /* free contents of 'to', is from blenkernel screen.c */ + /* Free contents of 'to', is from blenkernel `screen.cc`. */ BKE_screen_free_data(to); to->flag = from->flag; diff --git a/source/blender/editors/sculpt_paint/paint_intern.hh b/source/blender/editors/sculpt_paint/paint_intern.hh index a0ac953ffef..2aa13c5de62 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.hh +++ b/source/blender/editors/sculpt_paint/paint_intern.hh @@ -107,7 +107,7 @@ bool PAINT_brush_tool_poll(bContext *C); */ void paint_cursor_delete_textures(void); -/* paint_vertex.c */ +/* `paint_vertex.cc` */ bool weight_paint_poll(bContext *C); bool weight_paint_poll_ignore_tool(bContext *C); @@ -142,7 +142,7 @@ void PAINT_OT_vertex_paint(wmOperatorType *ot); */ unsigned int ED_vpaint_blend_tool(int tool, uint col, uint paintcol, int alpha_i); -/* paint_vertex_weight_utils.c */ +/* `paint_vertex_weight_utils.cc` */ /** * \param weight: Typically the current weight: #MDeformWeight.weight @@ -171,7 +171,7 @@ bool ED_wpaint_ensure_data(bContext *C, /** Return -1 when invalid. */ int ED_wpaint_mirror_vgroup_ensure(Object *ob, int vgroup_active); -/* paint_vertex_color_ops.c */ +/* `paint_vertex_color_ops.cc` */ void PAINT_OT_vertex_color_set(wmOperatorType *ot); void PAINT_OT_vertex_color_from_weight(wmOperatorType *ot); @@ -181,13 +181,13 @@ void PAINT_OT_vertex_color_hsv(wmOperatorType *ot); void PAINT_OT_vertex_color_invert(wmOperatorType *ot); void PAINT_OT_vertex_color_levels(wmOperatorType *ot); -/* paint_vertex_weight_ops.c */ +/* `paint_vertex_weight_ops.cc` */ void PAINT_OT_weight_from_bones(wmOperatorType *ot); void PAINT_OT_weight_sample(wmOperatorType *ot); void PAINT_OT_weight_sample_group(wmOperatorType *ot); -/* paint_vertex_proj.c */ +/* `paint_vertex_proj.cc` */ VertProjHandle *ED_vpaint_proj_handle_create(Depsgraph *depsgraph, Scene *scene, @@ -200,7 +200,7 @@ void ED_vpaint_proj_handle_update(Depsgraph *depsgraph, const float mval_fl[2]); void ED_vpaint_proj_handle_free(VertProjHandle *vp_handle); -/* paint_image.c */ +/* `paint_image.cc` */ struct ImagePaintPartialRedraw { rcti dirty_region; @@ -310,7 +310,7 @@ void paint_curve_mask_cache_update(CurveMaskCache *curve_mask_cache, float radius, const float cursor_position[2]); -/* sculpt_uv.c */ +/* `sculpt_uv.cc` */ void SCULPT_OT_uv_sculpt_stroke(wmOperatorType *ot); @@ -467,7 +467,7 @@ typedef enum { void PAINT_OT_hide_show(wmOperatorType *ot); -/* paint_mask.c */ +/* `paint_mask.cc` */ /* The gesture API doesn't write to this enum type, * it writes to eSelectOp from ED_select_utils.h. @@ -487,7 +487,7 @@ void PAINT_OT_mask_lasso_gesture(wmOperatorType *ot); void PAINT_OT_mask_box_gesture(wmOperatorType *ot); void PAINT_OT_mask_line_gesture(wmOperatorType *ot); -/* paint_curve.c */ +/* `paint_curve.cc` */ void PAINTCURVE_OT_new(wmOperatorType *ot); void PAINTCURVE_OT_add_point(wmOperatorType *ot); diff --git a/source/blender/editors/sculpt_paint/paint_vertex.cc b/source/blender/editors/sculpt_paint/paint_vertex.cc index 6c436667321..ad2a8fc2664 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.cc +++ b/source/blender/editors/sculpt_paint/paint_vertex.cc @@ -8,7 +8,7 @@ * Used for vertex color & weight paint and mode switching. * * \note This file is already big, - * use `paint_vertex_color_ops.c` & `paint_vertex_weight_ops.c` for general purpose operators. + * use `paint_vertex_color_ops.cc` & `paint_vertex_weight_ops.cc` for general purpose operators. */ #include "MEM_guardedalloc.h" diff --git a/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.cc b/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.cc index af08de5aa55..a7090c11729 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.cc +++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.cc @@ -5,7 +5,7 @@ /** \file * \ingroup edsculpt * - * Intended for use by `paint_vertex.c` & `paint_vertex_weight_ops.c`. + * Intended for use by `paint_vertex.cc` & `paint_vertex_weight_ops.cc`. */ #include "BLI_listbase.h" diff --git a/source/blender/editors/sculpt_paint/paint_weight.cc b/source/blender/editors/sculpt_paint/paint_weight.cc index 29c268eac36..56061b67dc1 100644 --- a/source/blender/editors/sculpt_paint/paint_weight.cc +++ b/source/blender/editors/sculpt_paint/paint_weight.cc @@ -8,7 +8,7 @@ * Used for vertex color & weight paint and mode switching. * * \note This file is already big, - * use `paint_vertex_color_ops.c` & `paint_vertex_weight_ops.c` for general purpose operators. + * use `paint_vertex_color_ops.cc` & `paint_vertex_weight_ops.cc` for general purpose operators. */ #include "MEM_guardedalloc.h" diff --git a/source/blender/editors/space_action/action_data.cc b/source/blender/editors/space_action/action_data.cc index 43fdfd5ea4a..e7cb6aad040 100644 --- a/source/blender/editors/space_action/action_data.cc +++ b/source/blender/editors/space_action/action_data.cc @@ -691,7 +691,7 @@ static int action_unlink_exec(bContext *C, wmOperator *op) static int action_unlink_invoke(bContext *C, wmOperator *op, const wmEvent *event) { /* NOTE: this is hardcoded to match the behavior for the unlink button - * (in interface_templates.c). */ + * (in `interface_templates.cc`). */ RNA_boolean_set(op->ptr, "force_delete", event->modifier & KM_SHIFT); return action_unlink_exec(C, op); } diff --git a/source/blender/editors/space_action/action_intern.hh b/source/blender/editors/space_action/action_intern.hh index ab370382d75..115e9800e3e 100644 --- a/source/blender/editors/space_action/action_intern.hh +++ b/source/blender/editors/space_action/action_intern.hh @@ -20,12 +20,12 @@ struct wmOperatorType; /* internal exports only */ /* **************************************** */ -/* space_action.c / action_buttons.c */ +/* `space_action.cc` / `action_buttons.cc` */ void action_buttons_register(ARegionType *art); /* ***************************************** */ -/* action_draw.c */ +/* `action_draw.cc` */ /** * Left hand part. @@ -39,7 +39,7 @@ void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *region void timeline_draw_cache(const SpaceAction *saction, const Object *ob, const Scene *scene); /* ***************************************** */ -/* action_select.c */ +/* `action_select.cc` */ void ACTION_OT_select_all(wmOperatorType *ot); void ACTION_OT_select_box(wmOperatorType *ot); @@ -68,7 +68,7 @@ enum eActKeys_ColumnSelect_Mode { }; /* ***************************************** */ -/* action_edit.c */ +/* `action_edit.cc` */ void ACTION_OT_previewrange_set(wmOperatorType *ot); void ACTION_OT_view_all(wmOperatorType *ot); @@ -128,7 +128,7 @@ enum eActKeys_Mirror_Mode { }; /* ***************************************** */ -/* action_ops.c */ +/* `action_ops.cc` */ void action_operatortypes(void); void action_keymap(wmKeyConfig *keyconf); diff --git a/source/blender/editors/space_action/action_select.cc b/source/blender/editors/space_action/action_select.cc index 8e05648b2e9..c114a905f93 100644 --- a/source/blender/editors/space_action/action_select.cc +++ b/source/blender/editors/space_action/action_select.cc @@ -993,7 +993,7 @@ static const EnumPropertyItem prop_column_select_types[] = { /* Selects all visible keyframes between the specified markers */ /* TODO(@ideasman42): this is almost an _exact_ duplicate of a function of the same name in - * graph_select.c should de-duplicate. */ + * `graph_select.cc` should de-duplicate. */ static void markers_selectkeys_between(bAnimContext *ac) { ListBase anim_data = {nullptr, nullptr}; diff --git a/source/blender/editors/space_action/space_action.cc b/source/blender/editors/space_action/space_action.cc index 2711cc8e908..2cbbecf7bd9 100644 --- a/source/blender/editors/space_action/space_action.cc +++ b/source/blender/editors/space_action/space_action.cc @@ -780,7 +780,7 @@ static void action_refresh(const bContext *C, ScrArea *area) /* Perform syncing of channel state incl. selection * Active action setting also occurs here - * (as part of anim channel filtering in anim_filter.c). */ + * (as part of anim channel filtering in `anim_filter.cc`). */ ANIM_sync_animchannels_to_data(C); saction->runtime.flag &= ~SACTION_RUNTIME_FLAG_NEED_CHAN_SYNC; diff --git a/source/blender/editors/space_buttons/buttons_intern.h b/source/blender/editors/space_buttons/buttons_intern.h index 3e436d28230..f8e7f28f936 100644 --- a/source/blender/editors/space_buttons/buttons_intern.h +++ b/source/blender/editors/space_buttons/buttons_intern.h @@ -76,7 +76,7 @@ typedef struct ButsContextTexture { /* internal exports only */ -/* buttons_context.c */ +/* `buttons_context.cc` */ void buttons_context_compute(const struct bContext *C, struct SpaceProperties *sbuts); int buttons_context(const struct bContext *C, @@ -87,11 +87,11 @@ struct ID *buttons_context_id_path(const struct bContext *C); extern const char *buttons_context_dir[]; /* doc access */ -/* buttons_texture.c */ +/* `buttons_texture.cc` */ void buttons_texture_context_compute(const struct bContext *C, struct SpaceProperties *sbuts); -/* buttons_ops.c */ +/* `buttons_ops.cc` */ void BUTTONS_OT_start_filter(struct wmOperatorType *ot); void BUTTONS_OT_clear_filter(struct wmOperatorType *ot); diff --git a/source/blender/editors/space_clip/space_clip.cc b/source/blender/editors/space_clip/space_clip.cc index d840fe704f8..0e34909d16b 100644 --- a/source/blender/editors/space_clip/space_clip.cc +++ b/source/blender/editors/space_clip/space_clip.cc @@ -347,7 +347,7 @@ static void clip_listener(const wmSpaceTypeListenerParams *params) static void clip_operatortypes() { - /* ** clip_ops.c ** */ + /* `clip_ops.cc` */ WM_operatortype_append(CLIP_OT_open); WM_operatortype_append(CLIP_OT_reload); WM_operatortype_append(CLIP_OT_view_pan); @@ -369,7 +369,7 @@ static void clip_operatortypes() WM_operatortype_append(CLIP_OT_cursor_set); WM_operatortype_append(CLIP_OT_lock_selection_toggle); - /* ** tracking_ops.c ** */ + /* `tracking_ops.cc` */ /* navigation */ WM_operatortype_append(CLIP_OT_frame_jump); @@ -449,7 +449,7 @@ static void clip_operatortypes() WM_operatortype_append(CLIP_OT_new_image_from_plane_marker); WM_operatortype_append(CLIP_OT_update_image_from_plane_marker); - /* ** clip_graph_ops.c ** */ + /* `clip_graph_ops.cc` */ /* graph editing */ @@ -465,7 +465,7 @@ static void clip_operatortypes() WM_operatortype_append(CLIP_OT_graph_disable_markers); - /* ** clip_dopesheet_ops.c ** */ + /* `clip_dopesheet_ops.cc` */ WM_operatortype_append(CLIP_OT_dopesheet_select_channel); WM_operatortype_append(CLIP_OT_dopesheet_view_all); diff --git a/source/blender/editors/space_console/console_intern.hh b/source/blender/editors/space_console/console_intern.hh index d7b0e5bf4d2..4933fd169de 100644 --- a/source/blender/editors/space_console/console_intern.hh +++ b/source/blender/editors/space_console/console_intern.hh @@ -14,7 +14,7 @@ struct ConsoleLine; struct bContext; struct wmOperatorType; -/* console_draw.c */ +/* `console_draw.cc` */ void console_textview_main(struct SpaceConsole *sc, const struct ARegion *region); /* Needed to calculate the scroll-bar. */ @@ -24,7 +24,7 @@ int console_char_pick(struct SpaceConsole *sc, const struct ARegion *region, con void console_scrollback_prompt_begin(struct SpaceConsole *sc, ConsoleLine *cl_dummy); void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy); -/* console_ops.c */ +/* `console_ops.cc` */ void console_history_free(SpaceConsole *sc, ConsoleLine *cl); void console_scrollback_free(SpaceConsole *sc, ConsoleLine *cl); diff --git a/source/blender/editors/space_console/space_console.cc b/source/blender/editors/space_console/space_console.cc index 9ff3637c225..f2bd970efd0 100644 --- a/source/blender/editors/space_console/space_console.cc +++ b/source/blender/editors/space_console/space_console.cc @@ -220,7 +220,7 @@ static void console_main_region_draw(const bContext *C, ARegion *region) static void console_operatortypes() { - /* console_ops.c */ + /* `console_ops.cc` */ WM_operatortype_append(CONSOLE_OT_move); WM_operatortype_append(CONSOLE_OT_delete); WM_operatortype_append(CONSOLE_OT_insert); diff --git a/source/blender/editors/space_file/file_intern.h b/source/blender/editors/space_file/file_intern.h index a9353bb0797..41367f21c56 100644 --- a/source/blender/editors/space_file/file_intern.h +++ b/source/blender/editors/space_file/file_intern.h @@ -26,7 +26,7 @@ struct SpaceFile; struct View2D; struct uiLayout; -/* file_draw.c */ +/* `file_draw.cc` */ #define ATTRIBUTE_COLUMN_PADDING (0.5f * UI_UNIT_X) @@ -113,11 +113,11 @@ void file_sfile_to_operator(struct bContext *C, void file_operator_to_sfile(struct Main *bmain, struct SpaceFile *sfile, struct wmOperator *op); -/* space_file.c */ +/* `space_file.cc` */ extern const char *file_context_dir[]; /* doc access */ -/* filesel.c */ +/* `filesel.cc` */ void fileselect_refresh_params(struct SpaceFile *sfile); /** @@ -210,13 +210,13 @@ void folder_history_list_ensure_for_active_browse_mode(struct SpaceFile *sfile); void folder_history_list_free(struct SpaceFile *sfile); struct ListBase folder_history_list_duplicate(struct ListBase *listbase); -/* file_panels.c */ +/* `file_panels.cc` */ void file_tool_props_region_panels_register(struct ARegionType *art); void file_execute_region_panels_register(struct ARegionType *art); void file_tools_region_panels_register(struct ARegionType *art); -/* file_utils.c */ +/* `file_utils.cc` */ void file_tile_boundbox(const ARegion *region, FileLayout *layout, int file, rcti *r_bounds); diff --git a/source/blender/editors/space_graph/graph_buttons.cc b/source/blender/editors/space_graph/graph_buttons.cc index 4236fbc6f87..513dc620e81 100644 --- a/source/blender/editors/space_graph/graph_buttons.cc +++ b/source/blender/editors/space_graph/graph_buttons.cc @@ -1408,7 +1408,7 @@ static void graph_panel_drivers_popover(const bContext *C, Panel *panel) /* -------------------------------------------------------------------- */ /** \name F-Curve Modifiers * - * \note All the drawing code is in `editors/animation/fmodifier_ui.c` + * \note All the drawing code is in `editors/animation/fmodifier_ui.cc`. * \{ */ #define B_FMODIFIER_REDRAW 20 diff --git a/source/blender/editors/space_graph/graph_intern.h b/source/blender/editors/space_graph/graph_intern.h index 9c4777f316a..4dd3e7154f9 100644 --- a/source/blender/editors/space_graph/graph_intern.h +++ b/source/blender/editors/space_graph/graph_intern.h @@ -22,7 +22,7 @@ extern "C" { /* internal exports only */ /* ***************************************** */ -/* graph_draw.c */ +/* `graph_draw.cc` */ /** * Left hand part. @@ -30,7 +30,7 @@ extern "C" { void graph_draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *region); /** - * This is called twice from space_graph.c -> graph_main_region_draw() + * This is called twice from `space_graph.cc`, #graph_main_region_draw() * Unselected then selected F-Curves are drawn so that they do not occlude each other. */ void graph_draw_curves(struct bAnimContext *ac, @@ -46,7 +46,7 @@ void graph_draw_ghost_curves(struct bAnimContext *ac, struct ARegion *region); /* ***************************************** */ -/* graph_select.c */ +/* `graph_select.cc` */ /** * Deselects keyframes in the Graph Editor @@ -88,7 +88,7 @@ enum eGraphKeys_ColumnSelect_Mode { }; /* ***************************************** */ -/* graph_edit.c */ +/* `graph_edit.cc` */ /** * Get the min/max keyframes. @@ -192,12 +192,12 @@ void GRAPH_OT_ghost_curves_create(struct wmOperatorType *ot); void GRAPH_OT_ghost_curves_clear(struct wmOperatorType *ot); /* ***************************************** */ -/* graph_buttons.c */ +/* `graph_buttons.cc` */ void graph_buttons_register(struct ARegionType *art); /* ***************************************** */ -/* graph_utils.c */ +/* `graph_utils.cc` */ /** * Find 'active' F-Curve. @@ -232,7 +232,7 @@ bool graphop_active_editable_fcurve_ctx_poll(struct bContext *C); bool graphop_selected_fcurve_poll(struct bContext *C); /* ***************************************** */ -/* graph_ops.c */ +/* `graph_ops.cc` */ void graphedit_keymap(struct wmKeyConfig *keyconf); void graphedit_operatortypes(void); diff --git a/source/blender/editors/space_graph/graph_select.cc b/source/blender/editors/space_graph/graph_select.cc index 85977bdf712..a1014543abb 100644 --- a/source/blender/editors/space_graph/graph_select.cc +++ b/source/blender/editors/space_graph/graph_select.cc @@ -1165,7 +1165,7 @@ static const EnumPropertyItem prop_column_select_types[] = { /* Selects all visible keyframes between the specified markers */ /* TODO(@ideasman42): this is almost an _exact_ duplicate of a function of the same name in - * action_select.c should de-duplicate. */ + * `action_select.cc` should de-duplicate. */ static void markers_selectkeys_between(bAnimContext *ac) { ListBase anim_data = {nullptr, nullptr}; diff --git a/source/blender/editors/space_image/image_intern.h b/source/blender/editors/space_image/image_intern.h index a8ccbd6093c..e0bd62a29bb 100644 --- a/source/blender/editors/space_image/image_intern.h +++ b/source/blender/editors/space_image/image_intern.h @@ -20,17 +20,17 @@ struct wmOperatorType; extern "C" { #endif -/* space_image.c */ +/* `space_image.cc` */ extern const char *image_context_dir[]; /* doc access */ -/* image_draw.c */ +/* `image_draw.cc` */ void draw_image_main_helpers(const struct bContext *C, struct ARegion *region); void draw_image_cache(const struct bContext *C, struct ARegion *region); void draw_image_sample_line(struct SpaceImage *sima); -/* image_ops.c */ +/* `image_ops.cc` */ bool space_image_main_region_poll(struct bContext *C); bool space_image_view_center_cursor_poll(struct bContext *C); diff --git a/source/blender/editors/space_info/info_intern.hh b/source/blender/editors/space_info/info_intern.hh index 8ca64f09b7e..29429c9ac8d 100644 --- a/source/blender/editors/space_info/info_intern.hh +++ b/source/blender/editors/space_info/info_intern.hh @@ -28,7 +28,7 @@ void FILE_OT_find_missing_files(struct wmOperatorType *ot); void INFO_OT_reports_display_update(struct wmOperatorType *ot); -/* info_draw.c */ +/* `info_draw.cc` */ void *info_text_pick(const struct SpaceInfo *sinfo, const struct ARegion *region, @@ -41,7 +41,7 @@ void info_textview_main(const struct SpaceInfo *sinfo, const struct ARegion *region, const struct ReportList *reports); -/* info_report.c */ +/* `info_report.cc` */ int info_report_mask(const struct SpaceInfo *sinfo); void INFO_OT_select_pick(struct wmOperatorType *ot); /* report selection */ diff --git a/source/blender/editors/space_info/info_ops.cc b/source/blender/editors/space_info/info_ops.cc index bb050f393c4..93bd9e10663 100644 --- a/source/blender/editors/space_info/info_ops.cc +++ b/source/blender/editors/space_info/info_ops.cc @@ -566,7 +566,7 @@ void FILE_OT_find_missing_files(wmOperatorType *ot) /* NOTE(@broken): Hard to decide whether to keep this as an operator, * or turn it into a hard_coded UI control feature, - * handling TIMER events for all regions in `interface_handlers.c`. + * handling TIMER events for all regions in `interface_handlers.cc`. * Not sure how good that is to be accessing UI data from * inactive regions, so use this for now. */ diff --git a/source/blender/editors/space_info/space_info.cc b/source/blender/editors/space_info/space_info.cc index 189246c9e7f..3f57fac5022 100644 --- a/source/blender/editors/space_info/space_info.cc +++ b/source/blender/editors/space_info/space_info.cc @@ -157,7 +157,7 @@ static void info_operatortypes() WM_operatortype_append(FILE_OT_find_missing_files); WM_operatortype_append(INFO_OT_reports_display_update); - /* info_report.c */ + /* `info_report.cc` */ WM_operatortype_append(INFO_OT_select_pick); WM_operatortype_append(INFO_OT_select_all); WM_operatortype_append(INFO_OT_select_box); diff --git a/source/blender/editors/space_nla/nla_channels.cc b/source/blender/editors/space_nla/nla_channels.cc index 07f5d545548..26068ece115 100644 --- a/source/blender/editors/space_nla/nla_channels.cc +++ b/source/blender/editors/space_nla/nla_channels.cc @@ -86,7 +86,7 @@ static int mouse_nla_channels(bContext *C, bAnimContext *ac, int channel_index, } /* action to take depends on what channel we've got */ - /* WARNING: must keep this in sync with the equivalent function in anim_channels_edit.c */ + /* WARNING: must keep this in sync with the equivalent function in `anim_channels_edit.cc`. */ switch (ale->type) { case ANIMTYPE_SCENE: { Scene *sce = static_cast(ale->data); @@ -519,7 +519,7 @@ static int nla_action_unlink_exec(bContext *C, wmOperator *op) static int nla_action_unlink_invoke(bContext *C, wmOperator *op, const wmEvent *event) { /* NOTE: this is hardcoded to match the behavior for the unlink button - * (in interface_templates.c) */ + * (in `interface_templates.cc`). */ RNA_boolean_set(op->ptr, "force_delete", event->modifier & KM_SHIFT); return nla_action_unlink_exec(C, op); } diff --git a/source/blender/editors/space_nla/nla_intern.hh b/source/blender/editors/space_nla/nla_intern.hh index 44736d1e924..7b91a03199c 100644 --- a/source/blender/editors/space_nla/nla_intern.hh +++ b/source/blender/editors/space_nla/nla_intern.hh @@ -14,7 +14,7 @@ /* Macros, etc. only used by NLA */ /* **************************************** */ -/* space_nla.c / nla_buttons.c */ +/* `space_nla.cc` / `nla_buttons.cc`. */ bool nla_panel_context(const bContext *C, PointerRNA *adt_ptr, @@ -24,13 +24,13 @@ bool nla_panel_context(const bContext *C, void nla_buttons_register(ARegionType *art); /* **************************************** */ -/* nla_draw.c */ +/* `nla_draw.cc` */ void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region); void draw_nla_channel_list(const bContext *C, bAnimContext *ac, ARegion *region); /* **************************************** */ -/* nla_select.c */ +/* `nla_select.cc` */ /* defines for left-right select tool */ enum eNlaEdit_LeftRightSelect_Mode { @@ -48,7 +48,7 @@ void NLA_OT_select_leftright(wmOperatorType *ot); void NLA_OT_click_select(wmOperatorType *ot); /* **************************************** */ -/* nla_edit.c */ +/* `nla_edit.cc` */ /* defines for snap strips */ enum eNlaEdit_Snap_Mode { @@ -107,7 +107,7 @@ void NLA_OT_fmodifier_copy(wmOperatorType *ot); void NLA_OT_fmodifier_paste(wmOperatorType *ot); /* **************************************** */ -/* nla_channels.c */ +/* `nla_channels.cc` */ /** * Helper - add NLA Tracks alongside existing ones. @@ -131,7 +131,7 @@ void NLA_OT_tracks_delete(wmOperatorType *ot); void NLA_OT_selected_objects_add(wmOperatorType *ot); /* **************************************** */ -/* nla_ops.c */ +/* `nla_ops.cc` */ /** * Tweak-mode is NOT enabled. diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index a8fd7efe552..57260284f0f 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -3414,7 +3414,7 @@ static void snode_setup_v2d(SpaceNode &snode, ARegion ®ion, const float2 &cen snode.runtime->aspect = BLI_rctf_size_x(&v2d.cur) / float(region.winx); } -/* Similar to is_compositor_enabled() in draw_manager.c but checks all 3D views. */ +/* Similar to is_compositor_enabled() in `draw_manager.cc` but checks all 3D views. */ static bool realtime_compositor_is_in_use(const bContext &context) { const Scene *scene = CTX_data_scene(&context); diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh index 9396e4e7c41..55f8c9fbf14 100644 --- a/source/blender/editors/space_node/node_intern.hh +++ b/source/blender/editors/space_node/node_intern.hh @@ -396,7 +396,7 @@ void node_geometry_add_attribute_search_button(const bContext &C, PointerRNA &socket_ptr, uiLayout &layout); -/* node_context_path.c */ +/* `node_context_path.cc` */ Vector context_path_for_space_node(const bContext &C); diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc index 7f1a34bebe1..a6a80d95196 100644 --- a/source/blender/editors/space_outliner/outliner_draw.cc +++ b/source/blender/editors/space_outliner/outliner_draw.cc @@ -2902,7 +2902,7 @@ static bool tselem_draw_icon(uiBlock *block, /* Collection colors and icons covered by restrict buttons. */ if (!is_clickable || x >= xmax || is_collection) { - /* Placement of icons, copied from interface_widgets.c */ + /* Placement of icons, copied from `interface_widgets.cc`. */ float aspect = (0.8f * UI_UNIT_Y) / ICON_DEFAULT_HEIGHT; x += 2.0f * aspect; y += 2.0f * aspect; diff --git a/source/blender/editors/space_outliner/outliner_intern.hh b/source/blender/editors/space_outliner/outliner_intern.hh index c0a8f84ee93..24f34cf0b73 100644 --- a/source/blender/editors/space_outliner/outliner_intern.hh +++ b/source/blender/editors/space_outliner/outliner_intern.hh @@ -257,7 +257,7 @@ enum TreeItemSelectAction { OL_ITEM_RECURSIVE = (1 << 4), /* Select recursively */ }; -/* outliner_tree.c ----------------------------------------------- */ +/* `outliner_tree.cc` */ void outliner_free_tree(ListBase *tree); void outliner_cleanup_tree(struct SpaceOutliner *space_outliner); @@ -317,7 +317,7 @@ struct ParticleSystemElementCreateData { TreeTraversalAction outliner_collect_selected_collections(TreeElement *te, void *customdata); TreeTraversalAction outliner_collect_selected_objects(TreeElement *te, void *customdata); -/* outliner_draw.c ---------------------------------------------- */ +/* `outliner_draw.cc` */ void draw_outliner(const struct bContext *C); @@ -341,7 +341,7 @@ void outliner_collection_isolate_flag(struct Scene *scene, */ int tree_element_id_type_to_index(TreeElement *te); -/* outliner_select.c -------------------------------------------- */ +/* `outliner_select.cc` */ /** * Generic call for non-id data to make active in UI */ @@ -403,7 +403,7 @@ void outliner_item_mode_toggle(struct bContext *C, TreeElement *te, bool do_extend); -/* outliner_edit.c ---------------------------------------------- */ +/* `outliner_edit.cc` */ typedef void (*outliner_operation_fn)(struct bContext *C, struct ReportList *, struct Scene *scene, @@ -489,7 +489,7 @@ void outliner_set_coordinates(const struct ARegion *region, */ void outliner_item_openclose(TreeElement *te, bool open, bool toggle_all); -/* outliner_dragdrop.c */ +/* `outliner_dragdrop.cc` */ /** * Region drop-box definition. @@ -536,12 +536,12 @@ void OUTLINER_OT_drivers_delete_selected(struct wmOperatorType *ot); void OUTLINER_OT_orphans_purge(struct wmOperatorType *ot); -/* outliner_query.cc ---------------------------------------------- */ +/* `outliner_query.cc` */ bool outliner_shows_mode_column(const SpaceOutliner &space_outliner); bool outliner_has_element_warnings(const SpaceOutliner &space_outliner); -/* outliner_tools.c ---------------------------------------------- */ +/* `outliner_tools.cc` */ void merged_element_search_menu_invoke(struct bContext *C, TreeElement *parent_te, @@ -566,14 +566,12 @@ void OUTLINER_OT_constraint_operation(struct wmOperatorType *ot); void OUTLINER_OT_modifier_operation(struct wmOperatorType *ot); void OUTLINER_OT_delete(struct wmOperatorType *ot); -/* ---------------------------------------------------------------- */ - -/* outliner_ops.c */ +/* `outliner_ops.cc` */ void outliner_operatortypes(void); void outliner_keymap(struct wmKeyConfig *keyconf); -/* outliner_collections.c */ +/* `outliner_collections.cc` */ bool outliner_is_collection_tree_element(const TreeElement *te); struct Collection *outliner_collection_from_tree_element(const TreeElement *te); @@ -612,7 +610,7 @@ void OUTLINER_OT_unhide_all(struct wmOperatorType *ot); void OUTLINER_OT_collection_color_tag_set(struct wmOperatorType *ot); -/* outliner_utils.c ---------------------------------------------- */ +/* `outliner_utils.cc` */ void outliner_viewcontext_init(const struct bContext *C, TreeViewContext *tvc); @@ -697,14 +695,14 @@ void outliner_scroll_view(struct SpaceOutliner *space_outliner, void outliner_tag_redraw_avoid_rebuild_on_open_change(const struct SpaceOutliner *space_outliner, struct ARegion *region); -/* outliner_sync.c ---------------------------------------------- */ +/* `outliner_sync.cc` */ /** * If outliner is dirty sync selection from view layer and sequencer. */ void outliner_sync_selection(const struct bContext *C, struct SpaceOutliner *space_outliner); -/* outliner_context.c ------------------------------------------- */ +/* `outliner_context.cc` */ int outliner_context(const struct bContext *C, const char *member, diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index 39bd58b15fa..0db55423ea5 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -1811,7 +1811,7 @@ static void refreshdrivers_animdata_fn(int /*event*/, IdAdtTemplate *iat = (IdAdtTemplate *)tselem->id; /* Loop over drivers, performing refresh - * (i.e. check graph_buttons.c and rna_fcurve.cc for details). */ + * (i.e. check `graph_buttons.cc` and `rna_fcurve.cc` for details). */ LISTBASE_FOREACH (FCurve *, fcu, &iat->adt->drivers) { fcu->flag &= ~FCURVE_DISABLED; diff --git a/source/blender/editors/space_outliner/outliner_tree.cc b/source/blender/editors/space_outliner/outliner_tree.cc index 40e331168f9..d4a16ae31f2 100644 --- a/source/blender/editors/space_outliner/outliner_tree.cc +++ b/source/blender/editors/space_outliner/outliner_tree.cc @@ -110,7 +110,7 @@ static void check_persistent( SpaceOutliner *space_outliner, TreeElement *te, ID *id, short type, short nr) { if (space_outliner->treestore == nullptr) { - /* if treestore was not created in readfile.c, create it here */ + /* If treestore was not created in `readfile.cc`, create it here. */ space_outliner->treestore = BLI_mempool_create( sizeof(TreeStoreElem), 1, 512, BLI_MEMPOOL_ALLOW_ITER); } diff --git a/source/blender/editors/space_script/script_intern.h b/source/blender/editors/space_script/script_intern.h index 18d2d4e6782..869c42064b0 100644 --- a/source/blender/editors/space_script/script_intern.h +++ b/source/blender/editors/space_script/script_intern.h @@ -14,12 +14,12 @@ extern "C" { /* internal exports only */ -/* script_ops.c */ +/* `script_ops.cc` */ void script_operatortypes(void); void script_keymap(struct wmKeyConfig *keyconf); -/* script_edit.c */ +/* `script_edit.cc` */ void SCRIPT_OT_reload(struct wmOperatorType *ot); void SCRIPT_OT_python_file_run(struct wmOperatorType *ot); diff --git a/source/blender/editors/space_sequencer/sequencer_intern.h b/source/blender/editors/space_sequencer/sequencer_intern.h index 77fb977c55a..c2ecac83b59 100644 --- a/source/blender/editors/space_sequencer/sequencer_intern.h +++ b/source/blender/editors/space_sequencer/sequencer_intern.h @@ -58,7 +58,7 @@ typedef struct SeqChannelDrawContext { float scale; } SeqChannelDrawContext; -/* sequencer_draw.c */ +/* `sequencer_draw.cc` */ void draw_timeline_seq(const struct bContext *C, struct ARegion *region); void draw_timeline_seq_display(const struct bContext *C, struct ARegion *region); @@ -100,7 +100,7 @@ struct ImBuf *sequencer_ibuf_get(struct Main *bmain, int frame_ofs, const char *viewname); -/* sequencer_thumbnails.c */ +/* `sequencer_thumbnails.cc` */ void last_displayed_thumbnails_list_free(void *val); void draw_seq_strip_thumbnail(struct View2D *v2d, @@ -119,7 +119,7 @@ void channel_draw_context_init(const struct bContext *C, struct ARegion *region, struct SeqChannelDrawContext *r_context); -/* sequencer_edit.c */ +/* `sequencer_edit.cc` */ struct View2D; void seq_rectf(const struct Scene *scene, struct Sequence *seq, struct rctf *rectf); @@ -226,7 +226,7 @@ void SEQUENCER_OT_strip_color_tag_set(struct wmOperatorType *ot); void SEQUENCER_OT_cursor_set(struct wmOperatorType *ot); void SEQUENCER_OT_scene_frame_range_update(struct wmOperatorType *ot); -/* sequencer_select.c */ +/* `sequencer_select.cc` */ void SEQUENCER_OT_select_all(struct wmOperatorType *ot); void SEQUENCER_OT_select(struct wmOperatorType *ot); @@ -241,7 +241,7 @@ void SEQUENCER_OT_select_box(struct wmOperatorType *ot); void SEQUENCER_OT_select_inverse(struct wmOperatorType *ot); void SEQUENCER_OT_select_grouped(struct wmOperatorType *ot); -/* sequencer_add.c */ +/* `sequencer_add.cc` */ void SEQUENCER_OT_scene_strip_add(struct wmOperatorType *ot); void SEQUENCER_OT_scene_strip_add_new(struct wmOperatorType *ot); @@ -252,11 +252,11 @@ void SEQUENCER_OT_sound_strip_add(struct wmOperatorType *ot); void SEQUENCER_OT_image_strip_add(struct wmOperatorType *ot); void SEQUENCER_OT_effect_strip_add(struct wmOperatorType *ot); -/* sequencer_drag_drop.c */ +/* `sequencer_drag_drop.cc` */ void sequencer_dropboxes(void); -/* sequencer_ops.c */ +/* `sequencer_ops.cc` */ void sequencer_operatortypes(void); void sequencer_keymap(struct wmKeyConfig *keyconf); @@ -269,7 +269,7 @@ struct ImBuf *make_vectorscope_view_from_ibuf(struct ImBuf *ibuf); struct ImBuf *make_zebra_view_from_ibuf(struct ImBuf *ibuf, float perc); struct ImBuf *make_histogram_view_from_ibuf(struct ImBuf *ibuf); -/* sequencer_buttons.c */ +/* `sequencer_buttons.cc` */ void sequencer_buttons_register(struct ARegionType *art); @@ -280,7 +280,7 @@ void SEQUENCER_OT_strip_modifier_remove(struct wmOperatorType *ot); void SEQUENCER_OT_strip_modifier_move(struct wmOperatorType *ot); void SEQUENCER_OT_strip_modifier_copy(struct wmOperatorType *ot); -/* sequencer_view.c */ +/* `sequencer_view.cc` */ void SEQUENCER_OT_sample(struct wmOperatorType *ot); void SEQUENCER_OT_view_all(struct wmOperatorType *ot); @@ -290,15 +290,15 @@ void SEQUENCER_OT_view_zoom_ratio(struct wmOperatorType *ot); void SEQUENCER_OT_view_selected(struct wmOperatorType *ot); void SEQUENCER_OT_view_ghost_border(struct wmOperatorType *ot); -/* sequencer_channels_edit.c */ +/* `sequencer_channels_edit.cc` */ void SEQUENCER_OT_rename_channel(struct wmOperatorType *ot); -/* sequencer_preview.c */ +/* `sequencer_preview.cc` */ void sequencer_preview_add_sound(const struct bContext *C, struct Sequence *seq); -/* sequencer_add.c */ +/* `sequencer_add.cc` */ int sequencer_image_seq_get_minmax_frame(struct wmOperator *op, int sfra, @@ -307,17 +307,17 @@ int sequencer_image_seq_get_minmax_frame(struct wmOperator *op, void sequencer_image_seq_reserve_frames( struct wmOperator *op, struct StripElem *se, int len, int minframe, int numdigits); -/* sequencer_retiming.c */ +/* `sequencer_retiming.cc` */ void SEQUENCER_OT_retiming_reset(struct wmOperatorType *ot); void SEQUENCER_OT_retiming_handle_move(struct wmOperatorType *ot); void SEQUENCER_OT_retiming_handle_add(struct wmOperatorType *ot); void SEQUENCER_OT_retiming_handle_remove(struct wmOperatorType *ot); void SEQUENCER_OT_retiming_segment_speed_set(struct wmOperatorType *ot); -/* sequencer_gizmo_retime.c */ +/* `sequencer_gizmo_retime.cc` */ void SEQUENCER_GGT_gizmo_retime(struct wmGizmoGroupType *gzgt); -/* sequencer_gizmo_retime_type.c */ +/* `sequencer_gizmo_retime_type.cc` */ void GIZMO_GT_retime_handle_add(struct wmGizmoType *gzt); void GIZMO_GT_retime_handle(struct wmGizmoType *gzt); void GIZMO_GT_retime_remove(struct wmGizmoType *gzt); diff --git a/source/blender/editors/space_sequencer/sequencer_ops.cc b/source/blender/editors/space_sequencer/sequencer_ops.cc index d1d335d99f9..3af29d03e65 100644 --- a/source/blender/editors/space_sequencer/sequencer_ops.cc +++ b/source/blender/editors/space_sequencer/sequencer_ops.cc @@ -22,7 +22,7 @@ void sequencer_operatortypes() { - /* sequencer_edit.c */ + /* `sequencer_edit.cc` */ WM_operatortype_append(SEQUENCER_OT_split); WM_operatortype_append(SEQUENCER_OT_slip); WM_operatortype_append(SEQUENCER_OT_mute); @@ -69,14 +69,14 @@ void sequencer_operatortypes() WM_operatortype_append(SEQUENCER_OT_cursor_set); WM_operatortype_append(SEQUENCER_OT_scene_frame_range_update); - /* sequencer_retiming.c */ + /* `sequencer_retiming.cc` */ WM_operatortype_append(SEQUENCER_OT_retiming_reset); WM_operatortype_append(SEQUENCER_OT_retiming_handle_move); WM_operatortype_append(SEQUENCER_OT_retiming_handle_add); WM_operatortype_append(SEQUENCER_OT_retiming_handle_remove); WM_operatortype_append(SEQUENCER_OT_retiming_segment_speed_set); - /* sequencer_select.c */ + /* `sequencer_select.cc` */ WM_operatortype_append(SEQUENCER_OT_select_all); WM_operatortype_append(SEQUENCER_OT_select); WM_operatortype_append(SEQUENCER_OT_select_more); @@ -89,7 +89,7 @@ void sequencer_operatortypes() WM_operatortype_append(SEQUENCER_OT_select_box); WM_operatortype_append(SEQUENCER_OT_select_grouped); - /* sequencer_add.c */ + /* `sequencer_add.cc` */ WM_operatortype_append(SEQUENCER_OT_scene_strip_add); WM_operatortype_append(SEQUENCER_OT_scene_strip_add_new); WM_operatortype_append(SEQUENCER_OT_movieclip_strip_add); @@ -114,7 +114,7 @@ void sequencer_operatortypes() WM_operatortype_append(SEQUENCER_OT_view_selected); WM_operatortype_append(SEQUENCER_OT_view_ghost_border); - /* sequencer_channels_edit.c */ + /* `sequencer_channels_edit.cc` */ WM_operatortype_append(SEQUENCER_OT_rename_channel); } diff --git a/source/blender/editors/space_text/text_intern.hh b/source/blender/editors/space_text/text_intern.hh index 6873e2c6bd5..458f3f6b302 100644 --- a/source/blender/editors/space_text/text_intern.hh +++ b/source/blender/editors/space_text/text_intern.hh @@ -22,7 +22,7 @@ struct wmOperatorType; extern "C" { #endif -/* text_draw.c */ +/* `text_draw.cc` */ void draw_text_main(struct SpaceText *st, struct ARegion *region); @@ -98,7 +98,7 @@ int text_get_span_wrap(const struct SpaceText *st, struct TextLine *to); int text_get_total_lines(struct SpaceText *st, struct ARegion *region); -/* text_ops.c */ +/* `text_ops.cc` */ enum { LINE_BEGIN, @@ -174,11 +174,11 @@ void TEXT_OT_resolve_conflict(struct wmOperatorType *ot); bool text_space_edit_poll(struct bContext *C); -/* text_autocomplete.c */ +/* `text_autocomplete.cc` */ void TEXT_OT_autocomplete(struct wmOperatorType *ot); -/* space_text.c */ +/* `space_text.cc` */ extern const char *text_context_dir[]; /* doc access */ diff --git a/source/blender/editors/space_view3d/view3d_intern.h b/source/blender/editors/space_view3d/view3d_intern.h index 954470308d9..c8498499786 100644 --- a/source/blender/editors/space_view3d/view3d_intern.h +++ b/source/blender/editors/space_view3d/view3d_intern.h @@ -30,15 +30,15 @@ struct wmGizmoType; struct wmKeyConfig; struct wmOperatorType; -/* view3d_header.c */ +/* `view3d_header.cc` */ void VIEW3D_OT_toggle_matcap_flip(struct wmOperatorType *ot); -/* view3d_ops.c */ +/* `view3d_ops.cc` */ void view3d_operatortypes(void); -/* view3d_edit.c */ +/* `view3d_edit.cc` */ void VIEW3D_OT_zoom_camera_1_to_1(struct wmOperatorType *ot); void VIEW3D_OT_view_lock_clear(struct wmOperatorType *ot); @@ -57,7 +57,7 @@ void VIEW3D_OT_clear_render_border(struct wmOperatorType *ot); void VIEW3D_OT_toggle_shading(struct wmOperatorType *ot); void VIEW3D_OT_toggle_xray(struct wmOperatorType *ot); -/* view3d_draw.c */ +/* `view3d_draw.cc` */ void view3d_main_region_draw(const struct bContext *C, struct ARegion *region); /** @@ -96,7 +96,7 @@ void VIEW3D_OT_select_lasso(struct wmOperatorType *ot); void VIEW3D_OT_select_menu(struct wmOperatorType *ot); void VIEW3D_OT_bone_select_menu(struct wmOperatorType *ot); -/* view3d_utils.c */ +/* `view3d_utils.cc` */ /** * For home, center etc. @@ -112,7 +112,7 @@ bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, float obmat[4][4]); bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const struct BoundBox *bb); -/* view3d_view.c */ +/* `view3d_view.cc` */ void VIEW3D_OT_camera_to_view(struct wmOperatorType *ot); void VIEW3D_OT_camera_to_view_selected(struct wmOperatorType *ot); @@ -145,18 +145,18 @@ void view3d_viewmatrix_set(struct Depsgraph *depsgraph, RegionView3D *rv3d, const float rect_scale[2]); -/* Called in transform_ops.c, on each regeneration of key-maps. */ +/* Called in `transform_ops.cc`, on each regeneration of key-maps. */ -/* view3d_placement.c */ +/* `view3d_placement.cc` */ void viewplace_modal_keymap(struct wmKeyConfig *keyconf); -/* view3d_buttons.c */ +/* `view3d_buttons.cc` */ void VIEW3D_OT_object_mode_pie_or_toggle(struct wmOperatorType *ot); void view3d_buttons_register(struct ARegionType *art); -/* view3d_camera_control.c */ +/* `view3d_camera_control.cc` */ /** * Creates a #View3DCameraControl handle and sets up @@ -186,7 +186,7 @@ void ED_view3d_cameracontrol_release(struct View3DCameraControl *vctrl, bool res */ struct Object *ED_view3d_cameracontrol_object_get(struct View3DCameraControl *vctrl); -/* view3d_snap.c */ +/* `view3d_snap.cc` */ /** * Calculates the bounding box corners (min and max) for \a obedit. @@ -202,7 +202,7 @@ void VIEW3D_OT_snap_cursor_to_center(struct wmOperatorType *ot); void VIEW3D_OT_snap_cursor_to_selected(struct wmOperatorType *ot); void VIEW3D_OT_snap_cursor_to_active(struct wmOperatorType *ot); -/* view3d_placement.c */ +/* `view3d_placement.cc` */ void VIEW3D_OT_interactive_add(struct wmOperatorType *ot); diff --git a/source/blender/editors/space_view3d/view3d_select.cc b/source/blender/editors/space_view3d/view3d_select.cc index df6c0ea6730..76da06ef4ab 100644 --- a/source/blender/editors/space_view3d/view3d_select.cc +++ b/source/blender/editors/space_view3d/view3d_select.cc @@ -1900,7 +1900,8 @@ static bool bone_mouse_select_menu(bContext *C, GSet *added_bones = BLI_gset_ptr_new("Bone mouse select menu"); - /* Select logic taken from ed_armature_pick_bone_from_selectbuffer_impl in armature_select.c */ + /* Select logic taken from #ed_armature_pick_bone_from_selectbuffer_impl + * in `armature_select.cc`. */ for (int a = 0; a < hits; a++) { void *bone_ptr = nullptr; Base *bone_base = nullptr; diff --git a/source/blender/editors/transform/transform.hh b/source/blender/editors/transform/transform.hh index e1b2957f1d6..a01f5b8abd8 100644 --- a/source/blender/editors/transform/transform.hh +++ b/source/blender/editors/transform/transform.hh @@ -403,7 +403,7 @@ struct TransCenterData { /** * Rule of thumb for choosing between mode/type: * - If transform mode uses the data, assign to `mode` - * (typically in transform.c). + * (typically in `transform.cc`). * - If conversion uses the data as an extension to the #TransData, assign to `type` * (typically in transform_conversion.c). */ @@ -701,7 +701,7 @@ void applyAspectRatio(TransInfo *t, float vec[2]); void removeAspectRatio(TransInfo *t, float vec[2]); /** - * Called in transform_ops.c, on each regeneration of key-maps. + * Called in `transform_ops.cc`, on each regeneration of key-maps. */ wmKeyMap *transform_modal_keymap(wmKeyConfig *keyconf); diff --git a/source/blender/editors/transform/transform_convert.hh b/source/blender/editors/transform/transform_convert.hh index fdd54d39500..f149ad260f1 100644 --- a/source/blender/editors/transform/transform_convert.hh +++ b/source/blender/editors/transform/transform_convert.hh @@ -40,7 +40,7 @@ struct TransConvertTypeInfo { void (*special_aftertrans_update)(bContext *C, TransInfo *t); }; -/* transform_convert.c */ +/* `transform_convert.cc` */ /** * Change the chain-length of auto-IK. @@ -60,17 +60,17 @@ void transform_convert_flush_handle2D(TransData *td, TransData2D *td2d, float y_ */ void recalc_data(TransInfo *t); -/* transform_convert_mesh.c */ +/* `transform_convert_mesh.cc` */ void transform_convert_mesh_customdatacorrect_init(TransInfo *t); -/* transform_convert_sequencer.c */ +/* `transform_convert_sequencer.cc` */ void transform_convert_sequencer_channel_clamp(TransInfo *t, float r_val[2]); /********************* intern **********************/ -/* transform_convert.c */ +/* `transform_convert.cc` */ bool transform_mode_use_local_origins(const TransInfo *t); /** @@ -106,11 +106,11 @@ void transform_convert_clip_mirror_modifier_apply(TransDataContainer *tc); */ void animrecord_check_state(TransInfo *t, ID *id); -/* transform_convert_action.c */ +/* `transform_convert_action.cc` */ extern TransConvertTypeInfo TransConvertType_Action; -/* transform_convert_armature.c */ +/* `transform_convert_armature.cc` */ extern TransConvertTypeInfo TransConvertType_EditArmature; extern TransConvertTypeInfo TransConvertType_Pose; @@ -121,13 +121,13 @@ extern TransConvertTypeInfo TransConvertType_Pose; */ void transform_convert_pose_transflags_update(Object *ob, int mode, short around); -/* transform_convert_cursor.c */ +/* `transform_convert_cursor.cc` */ extern TransConvertTypeInfo TransConvertType_CursorImage; extern TransConvertTypeInfo TransConvertType_CursorSequencer; extern TransConvertTypeInfo TransConvertType_Cursor3D; -/* transform_convert_curve.c */ +/* `transform_convert_curve.cc` */ extern TransConvertTypeInfo TransConvertType_Curve; @@ -135,27 +135,27 @@ extern TransConvertTypeInfo TransConvertType_Curve; extern TransConvertTypeInfo TransConvertType_Curves; -/* transform_convert_graph.c */ +/* `transform_convert_graph.cc` */ extern TransConvertTypeInfo TransConvertType_Graph; -/* transform_convert_gpencil_legacy.c */ +/* `transform_convert_gpencil_legacy.cc` */ extern TransConvertTypeInfo TransConvertType_GPencil; -/* transform_convert_lattice.c */ +/* `transform_convert_lattice.cc` */ extern TransConvertTypeInfo TransConvertType_Lattice; -/* transform_convert_mask.c */ +/* `transform_convert_mask.cc` */ extern TransConvertTypeInfo TransConvertType_Mask; -/* transform_convert_mball.c */ +/* `transform_convert_mball.cc` */ extern TransConvertTypeInfo TransConvertType_MBall; -/* transform_convert_mesh.c */ +/* `transform_convert_mesh.cc` */ extern TransConvertTypeInfo TransConvertType_Mesh; @@ -217,23 +217,23 @@ void transform_convert_mesh_crazyspace_transdata_set(const float mtx[3][3], TransData *r_td); void transform_convert_mesh_crazyspace_free(TransMeshDataCrazySpace *r_crazyspace_data); -/* transform_convert_mesh_edge.c */ +/* `transform_convert_mesh_edge.cc` */ extern TransConvertTypeInfo TransConvertType_MeshEdge; -/* transform_convert_mesh_skin.c */ +/* `transform_convert_mesh_skin.cc` */ extern TransConvertTypeInfo TransConvertType_MeshSkin; -/* transform_convert_mesh_uv.c */ +/* `transform_convert_mesh_uv.cc` */ extern TransConvertTypeInfo TransConvertType_MeshUV; -/* transform_convert_mesh_vert_cdata.c */ +/* `transform_convert_mesh_vert_cdata.cc` */ extern TransConvertTypeInfo TransConvertType_MeshVertCData; -/* transform_convert_nla.c */ +/* `transform_convert_nla.cc` */ extern TransConvertTypeInfo TransConvertType_NLA; @@ -241,19 +241,19 @@ extern TransConvertTypeInfo TransConvertType_NLA; extern TransConvertTypeInfo TransConvertType_Node; -/* transform_convert_object.c */ +/* `transform_convert_object.cc` */ extern TransConvertTypeInfo TransConvertType_Object; -/* transform_convert_object_texspace.c */ +/* `transform_convert_object_texspace.cc` */ extern TransConvertTypeInfo TransConvertType_ObjectTexSpace; -/* transform_convert_paintcurve.c */ +/* `transform_convert_paintcurve.cc` */ extern TransConvertTypeInfo TransConvertType_PaintCurve; -/* transform_convert_particle.c */ +/* `transform_convert_particle.cc` */ extern TransConvertTypeInfo TransConvertType_Particle; @@ -261,18 +261,18 @@ extern TransConvertTypeInfo TransConvertType_Particle; extern TransConvertTypeInfo TransConvertType_Sculpt; -/* transform_convert_sequencer.c */ +/* `transform_convert_sequencer.cc` */ extern TransConvertTypeInfo TransConvertType_Sequencer; -/* transform_convert_sequencer_image.c */ +/* `transform_convert_sequencer_image.cc` */ extern TransConvertTypeInfo TransConvertType_SequencerImage; -/* transform_convert_tracking.c */ +/* `transform_convert_tracking.cc` */ extern TransConvertTypeInfo TransConvertType_Tracking; -/* transform_convert_tracking_curves.c */ +/* `transform_convert_tracking_curves.cc` */ extern TransConvertTypeInfo TransConvertType_TrackingCurves; diff --git a/source/blender/editors/transform/transform_convert_armature.cc b/source/blender/editors/transform/transform_convert_armature.cc index c46dd9b8148..65542f8a20b 100644 --- a/source/blender/editors/transform/transform_convert_armature.cc +++ b/source/blender/editors/transform/transform_convert_armature.cc @@ -1582,7 +1582,7 @@ static short apply_targetless_ik(Object *ob) data = has_targetless_ik(pchan); if (data && (data->flag & CONSTRAINT_IK_AUTO)) { - /* fill the array with the bones of the chain (armature.c does same, keep it synced) */ + /* Fill the array with the bones of the chain (`armature.cc` does same, keep it synced). */ segcount = 0; /* exclude tip from chain? */ diff --git a/source/blender/editors/transform/transform_gizmo.hh b/source/blender/editors/transform/transform_gizmo.hh index 289c3ddb7b2..3cb7312ccc5 100644 --- a/source/blender/editors/transform/transform_gizmo.hh +++ b/source/blender/editors/transform/transform_gizmo.hh @@ -30,7 +30,7 @@ struct wmMsgBus; /** \name Gizmo * \{ */ -/* transform_gizmo_3d.c */ +/* `transform_gizmo_3d.cc` */ #define GIZMO_AXIS_LINE_WIDTH 2.0f diff --git a/source/blender/editors/transform/transform_mode.hh b/source/blender/editors/transform/transform_mode.hh index 45eea2dfaf3..75a0a43f9ab 100644 --- a/source/blender/editors/transform/transform_mode.hh +++ b/source/blender/editors/transform/transform_mode.hh @@ -56,7 +56,7 @@ struct TransDataGenericSlideVert { float co_orig_3d[3]; }; -/* transform_mode.c */ +/* `transform_mode.cc` */ eTfmMode transform_mode_really_used(bContext *C, eTfmMode mode); bool transdata_check_local_center(const TransInfo *t, short around); @@ -99,127 +99,127 @@ void transform_mode_init(TransInfo *t, wmOperator *op, int mode); */ void transform_mode_default_modal_orientation_set(TransInfo *t, int type); -/* transform_mode_align.c */ +/* `transform_mode_align.cc` */ extern TransModeInfo TransMode_align; -/* transform_mode_baketime.c */ +/* `transform_mode_baketime.cc` */ extern TransModeInfo TransMode_baketime; -/* transform_mode_bbone_resize.c */ +/* `transform_mode_bbone_resize.cc` */ extern TransModeInfo TransMode_bboneresize; -/* transform_mode_bend.c */ +/* `transform_mode_bend.cc` */ extern TransModeInfo TransMode_bend; -/* transform_mode_boneenvelope.c */ +/* `transform_mode_boneenvelope.cc` */ extern TransModeInfo TransMode_boneenvelope; -/* transform_mode_boneroll.c */ +/* `transform_mode_boneroll.cc` */ extern TransModeInfo TransMode_boneroll; -/* transform_mode_curveshrinkfatten.c */ +/* `transform_mode_curveshrinkfatten.cc` */ extern TransModeInfo TransMode_curveshrinkfatten; -/* transform_mode_customdata.c */ +/* `transform_mode_customdata.cc` */ extern TransModeInfo TransMode_edgecrease; extern TransModeInfo TransMode_vertcrease; extern TransModeInfo TransMode_bevelweight; -/* transform_mode_edge_rotate_normal.c */ +/* `transform_mode_edge_rotate_normal.cc` */ extern TransModeInfo TransMode_rotatenormal; -/* transform_mode_edge_seq_slide.c */ +/* `transform_mode_edge_seq_slide.cc` */ extern TransModeInfo TransMode_seqslide; -/* transform_mode_edge_slide.c */ +/* `transform_mode_edge_slide.cc` */ extern TransModeInfo TransMode_edgeslide; void transform_mode_edge_slide_reproject_input(TransInfo *t); -/* transform_mode_gpopacity.c */ +/* `transform_mode_gpopacity.cc` */ extern TransModeInfo TransMode_gpopacity; -/* transform_mode_gpshrinkfatten.c */ +/* `transform_mode_gpshrinkfatten.cc` */ extern TransModeInfo TransMode_gpshrinkfatten; -/* transform_mode_maskshrinkfatten.c */ +/* `transform_mode_maskshrinkfatten.cc` */ extern TransModeInfo TransMode_maskshrinkfatten; -/* transform_mode_mirror.c */ +/* `transform_mode_mirror.cc` */ extern TransModeInfo TransMode_mirror; -/* transform_mode_push_pull.c */ +/* `transform_mode_push_pull.cc` */ extern TransModeInfo TransMode_pushpull; -/* transform_mode_resize.c */ +/* `transform_mode_resize.cc` */ extern TransModeInfo TransMode_resize; -/* transform_mode_rotate.c */ +/* `transform_mode_rotate.cc` */ extern TransModeInfo TransMode_rotate; -/* transform_mode_shear.c */ +/* `transform_mode_shear.cc` */ extern TransModeInfo TransMode_shear; -/* transform_mode_shrink_fatten.c */ +/* `transform_mode_shrink_fatten.cc` */ extern TransModeInfo TransMode_shrinkfatten; -/* transform_mode_skin_resize.c */ +/* `transform_mode_skin_resize.cc` */ extern TransModeInfo TransMode_skinresize; -/* transform_mode_snapsource.c */ +/* `transform_mode_snapsource.cc` */ extern TransModeInfo TransMode_snapsource; void transform_mode_snap_source_init(TransInfo *t, wmOperator *op); -/* transform_mode_tilt.c */ +/* `transform_mode_tilt.cc` */ extern TransModeInfo TransMode_tilt; -/* transform_mode_timescale.c */ +/* `transform_mode_timescale.cc` */ extern TransModeInfo TransMode_timescale; -/* transform_mode_timeslide.c */ +/* `transform_mode_timeslide.cc` */ extern TransModeInfo TransMode_timeslide; -/* transform_mode_timetranslate.c */ +/* `transform_mode_timetranslate.cc` */ extern TransModeInfo TransMode_timetranslate; -/* transform_mode_tosphere.c */ +/* `transform_mode_tosphere.cc` */ extern TransModeInfo TransMode_tosphere; -/* transform_mode_trackball.c */ +/* `transform_mode_trackball.cc` */ extern TransModeInfo TransMode_trackball; -/* transform_mode_translate.c */ +/* `transform_mode_translate.cc` */ extern TransModeInfo TransMode_translate; -/* transform_mode_vert_slide.c */ +/* `transform_mode_vert_slide.cc` */ extern TransModeInfo TransMode_vertslide; void transform_mode_vert_slide_reproject_input(TransInfo *t); diff --git a/source/blender/editors/transform/transform_snap.hh b/source/blender/editors/transform/transform_snap.hh index 858b615fbdd..23ede5277ac 100644 --- a/source/blender/editors/transform/transform_snap.hh +++ b/source/blender/editors/transform/transform_snap.hh @@ -66,14 +66,14 @@ void removeSnapPoint(TransInfo *t); float transform_snap_distance_len_squared_fn(TransInfo *t, const float p1[3], const float p2[3]); -/* transform_snap_sequencer.c */ +/* `transform_snap_sequencer.cc` */ TransSeqSnapData *transform_snap_sequencer_data_alloc(const TransInfo *t); void transform_snap_sequencer_data_free(TransSeqSnapData *data); bool transform_snap_sequencer_calc(TransInfo *t); void transform_snap_sequencer_apply_translate(TransInfo *t, float *vec); -/* transform_snap_animation.c */ +/* `transform_snap_animation.cc` */ /** * This function returns the snapping 'mode' for Animation Editors only. diff --git a/source/blender/editors/uvedit/uvedit_intern.h b/source/blender/editors/uvedit/uvedit_intern.h index eb8113464a7..713c7660967 100644 --- a/source/blender/editors/uvedit/uvedit_intern.h +++ b/source/blender/editors/uvedit/uvedit_intern.h @@ -140,12 +140,12 @@ void UV_OT_smart_project(struct wmOperatorType *ot); void UV_OT_copy(wmOperatorType *ot); void UV_OT_paste(wmOperatorType *ot); -/* uvedit_path.c */ +/* `uvedit_path.cc` */ void UV_OT_shortest_path_pick(struct wmOperatorType *ot); void UV_OT_shortest_path_select(struct wmOperatorType *ot); -/* uvedit_select.c */ +/* `uvedit_select.cc` */ bool uvedit_select_is_any_selected(const struct Scene *scene, struct Object *obedit); bool uvedit_select_is_any_selected_multi(const struct Scene *scene, diff --git a/source/blender/editors/uvedit/uvedit_ops.cc b/source/blender/editors/uvedit/uvedit_ops.cc index 100f7fe7e50..f27313877b3 100644 --- a/source/blender/editors/uvedit/uvedit_ops.cc +++ b/source/blender/editors/uvedit/uvedit_ops.cc @@ -2051,7 +2051,7 @@ static void UV_OT_mark_seam(wmOperatorType *ot) void ED_operatortypes_uvedit() { - /* uvedit_select.c */ + /* `uvedit_select.cc` */ WM_operatortype_append(UV_OT_select_all); WM_operatortype_append(UV_OT_select); WM_operatortype_append(UV_OT_select_loop); diff --git a/source/blender/editors/uvedit/uvedit_path.cc b/source/blender/editors/uvedit/uvedit_path.cc index 6b3e7794fb3..625e0e19cd4 100644 --- a/source/blender/editors/uvedit/uvedit_path.cc +++ b/source/blender/editors/uvedit/uvedit_path.cc @@ -5,7 +5,7 @@ /** \file * \ingroup eduv * - * \note The logic in this file closely follows editmesh_path.c + * \note The logic in this file closely follows `editmesh_path.cc`. */ #include diff --git a/source/blender/gpencil_modifiers_legacy/MOD_gpencil_legacy_modifiertypes.h b/source/blender/gpencil_modifiers_legacy/MOD_gpencil_legacy_modifiertypes.h index 2c99e1b1a60..e9643537aed 100644 --- a/source/blender/gpencil_modifiers_legacy/MOD_gpencil_legacy_modifiertypes.h +++ b/source/blender/gpencil_modifiers_legacy/MOD_gpencil_legacy_modifiertypes.h @@ -44,7 +44,7 @@ extern GpencilModifierTypeInfo modifierType_Gpencil_Dash; extern GpencilModifierTypeInfo modifierType_Gpencil_Shrinkwrap; extern GpencilModifierTypeInfo modifierType_Gpencil_Envelope; -/* MOD_gpencil_legacy_util.c */ +/* `MOD_gpencil_legacy_util.cc` */ void gpencil_modifier_type_init(GpencilModifierTypeInfo *types[]); diff --git a/source/blender/gpencil_modifiers_legacy/intern/lineart/lineart_cpu.cc b/source/blender/gpencil_modifiers_legacy/intern/lineart/lineart_cpu.cc index f51bf66e625..6db5a815d05 100644 --- a/source/blender/gpencil_modifiers_legacy/intern/lineart/lineart_cpu.cc +++ b/source/blender/gpencil_modifiers_legacy/intern/lineart/lineart_cpu.cc @@ -5105,7 +5105,7 @@ bool MOD_lineart_compute_feature_lines(Depsgraph *depsgraph, lineart_main_remove_unused_lines_from_tiles(ld); - /* Chaining is all single threaded. See lineart_chain.c + /* Chaining is all single threaded. See `lineart_chain.cc`. * In this particular call, only lines that are geometrically connected (share the _exact_ * same end point) will be chained together. */ MOD_lineart_chain_feature_lines(ld); diff --git a/source/blender/gpu/GPU_batch_presets.h b/source/blender/gpu/GPU_batch_presets.h index 32b6f0e8094..f184ec5fa9e 100644 --- a/source/blender/gpu/GPU_batch_presets.h +++ b/source/blender/gpu/GPU_batch_presets.h @@ -18,7 +18,7 @@ extern "C" { #endif -/* gpu_batch_presets.c */ +/* `gpu_batch_presets.cc` */ /* Replacement for #gluSphere */ diff --git a/source/blender/gpu/GPU_batch_utils.h b/source/blender/gpu/GPU_batch_utils.h index 15f4517ff1c..cfadc005b84 100644 --- a/source/blender/gpu/GPU_batch_utils.h +++ b/source/blender/gpu/GPU_batch_utils.h @@ -17,7 +17,7 @@ extern "C" { struct rctf; -/* gpu_batch_utils.c */ +/* `gpu_batch_utils.cc` */ /** * Creates triangles from a byte-array of polygons. diff --git a/source/blender/gpu/intern/gpu_select.cc b/source/blender/gpu/intern/gpu_select.cc index 5d153d8df35..75612139b0e 100644 --- a/source/blender/gpu/intern/gpu_select.cc +++ b/source/blender/gpu/intern/gpu_select.cc @@ -27,11 +27,15 @@ /* Internal algorithm used */ enum eGPUSelectAlgo { - /** glBegin/EndQuery(GL_SAMPLES_PASSED... ), `gpu_select_query.c` - * Only sets 4th component (ID) correctly. */ + /** + * `glBegin/EndQuery(GL_SAMPLES_PASSED... )`, `gpu_select_query.c` + * Only sets 4th component (ID) correctly. + */ ALGO_GL_QUERY = 1, - /** Read depth buffer for every drawing pass and extract depths, `gpu_select_pick.c` - * Only sets 4th component (ID) correctly. */ + /** + * Read depth buffer for every drawing pass and extract depths, `gpu_select_pick.cc` + * Only sets 4th component (ID) correctly. + */ ALGO_GL_PICK = 2, /** Use Select-Next draw engine. */ ALGO_SELECT_NEXT = 3, diff --git a/source/blender/gpu/intern/gpu_viewport.cc b/source/blender/gpu/intern/gpu_viewport.cc index ec9b2611ba3..46c9094c099 100644 --- a/source/blender/gpu/intern/gpu_viewport.cc +++ b/source/blender/gpu/intern/gpu_viewport.cc @@ -284,7 +284,7 @@ void GPU_viewport_stereo_composite(GPUViewport *viewport, Stereo3dFormat *stereo { if (!ELEM(stereo_format->display_mode, S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE)) { /* Early Exit: the other display modes need access to the full screen and cannot be - * done from a single viewport. See `wm_stereo.c` */ + * done from a single viewport. See `wm_stereo.cc`. */ return; } /* The composite framebuffer object needs to be created in the window context. */ diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index f415adf1751..c7aae476fd7 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -70,19 +70,19 @@ struct ColorManagedDisplay; struct GSet; /** - * \attention defined in DNA_scene_types.h + * \attention defined in `DNA_scene_types.h`. */ struct ImageFormatData; struct Stereo3dFormat; /** - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ void IMB_init(void); void IMB_exit(void); /** - * \attention Defined in readimage.c + * \attention Defined in `readimage.cc`. */ struct ImBuf *IMB_ibImageFromMemory(const unsigned char *mem, size_t size, @@ -91,29 +91,29 @@ struct ImBuf *IMB_ibImageFromMemory(const unsigned char *mem, const char *descr); /** - * \attention Defined in readimage.c + * \attention Defined in `readimage.cc`. */ struct ImBuf *IMB_testiffname(const char *filepath, int flags); /** - * \attention Defined in readimage.c + * \attention Defined in `readimage.cc`. */ struct ImBuf *IMB_loadiffname(const char *filepath, int flags, char colorspace[IM_MAX_SPACE]); /** - * \attention Defined in readimage.c + * \attention Defined in `readimage.cc`. */ struct ImBuf *IMB_thumb_load_image(const char *filepath, const size_t max_thumb_size, char colorspace[IM_MAX_SPACE]); /** - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ void IMB_freeImBuf(struct ImBuf *ibuf); /** - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ struct ImBuf *IMB_allocImBuf(unsigned int x, unsigned int y, @@ -125,7 +125,7 @@ struct ImBuf *IMB_allocImBuf(unsigned int x, * * Use in cases when temporary image buffer is allocated on stack. * - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ bool IMB_initImBuf( struct ImBuf *ibuf, unsigned int x, unsigned int y, unsigned char planes, unsigned int flags); @@ -133,7 +133,7 @@ bool IMB_initImBuf( /** * Create a copy of a pixel buffer and wrap it to a new ImBuf * (transferring ownership to the in imbuf). - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ struct ImBuf *IMB_allocFromBufferOwn(uint8_t *byte_buffer, float *float_buffer, @@ -143,7 +143,7 @@ struct ImBuf *IMB_allocFromBufferOwn(uint8_t *byte_buffer, /** * Create a copy of a pixel buffer and wrap it to a new ImBuf - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ struct ImBuf *IMB_allocFromBuffer(const uint8_t *byte_buffer, const float *float_buffer, @@ -182,21 +182,21 @@ uint8_t *IMB_steal_encoded_buffer(struct ImBuf *ibuf); * (to delete an imbuf you have to call freeImBuf as many times as it * is referenced) * - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ void IMB_refImBuf(struct ImBuf *ibuf); struct ImBuf *IMB_makeSingleUser(struct ImBuf *ibuf); /** - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ struct ImBuf *IMB_dupImBuf(const struct ImBuf *ibuf1); /** * Approximate size of ImBuf in memory * - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ size_t IMB_get_size_in_memory(struct ImBuf *ibuf); @@ -207,12 +207,12 @@ size_t IMB_get_size_in_memory(struct ImBuf *ibuf); * This function is preferred over `ibuf->x * ibuf->y` due to overflow issues when * working with large resolution images (30kx30k). * - * \attention Defined in allocimbuf.c + * \attention Defined in `allocimbuf.cc`. */ size_t IMB_get_rect_len(const struct ImBuf *ibuf); /** - * \attention Defined in rectop.c + * \attention Defined in `rectop.cc`. */ typedef enum IMB_BlendMode { @@ -318,7 +318,7 @@ void IMB_rectblend_threaded(struct ImBuf *dbuf, bool accumulate); /** - * \attention Defined in indexer.c + * \attention Defined in `indexer.cc`. */ typedef enum IMB_Timecode_Type { @@ -413,7 +413,7 @@ double IMD_anim_get_offset(struct anim *anim); bool IMB_anim_get_fps(struct anim *anim, short *frs_sec, float *frs_sec_base, bool no_av_base); /** - * \attention Defined in anim_movie.c + * \attention Defined in `anim_movie.cc`. */ struct anim *IMB_open_anim(const char *filepath, int ib_flags, @@ -425,7 +425,7 @@ void IMB_close_anim_proxies(struct anim *anim); bool IMB_anim_can_produce_frames(const struct anim *anim); /** - * \attention Defined in anim_movie.c + * \attention Defined in `anim_movie.cc`. */ int ismovie(const char *filepath); @@ -434,7 +434,7 @@ int IMB_anim_get_image_height(struct anim *anim); bool IMB_get_gop_decode_time(struct anim *anim); /** - * \attention Defined in anim_movie.c + * \attention Defined in `anim_movie.cc`. */ struct ImBuf *IMB_anim_absolute(struct anim *anim, @@ -443,18 +443,18 @@ struct ImBuf *IMB_anim_absolute(struct anim *anim, IMB_Proxy_Size preview_size /* = 0 = IMB_PROXY_NONE */); /** - * \attention Defined in anim_movie.c + * \attention Defined in `anim_movie.cc`. * fetches a define preview-frame, usually half way into the movie. */ struct ImBuf *IMB_anim_previewframe(struct anim *anim); /** - * \attention Defined in anim_movie.c + * \attention Defined in `anim_movie.cc`. */ void IMB_free_anim(struct anim *anim); /** - * \attention Defined in filter.c + * \attention Defined in `filter.cc`. */ #define FILTER_MASK_NULL 0 @@ -482,24 +482,24 @@ void IMB_remakemipmap(struct ImBuf *ibuf, int use_filter); struct ImBuf *IMB_getmipmap(struct ImBuf *ibuf, int level); /** - * \attention Defined in filter.c + * \attention Defined in `filter.cc`. */ void IMB_filtery(struct ImBuf *ibuf); /** - * \attention Defined in scaling.c + * \attention Defined in `scaling.cc`. */ struct ImBuf *IMB_onehalf(struct ImBuf *ibuf1); /** - * \attention Defined in scaling.c + * \attention Defined in `scaling.cc`. * * Return true if \a ibuf is modified. */ bool IMB_scaleImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy); /** - * \attention Defined in scaling.c + * \attention Defined in `scaling.cc`. */ /** * Return true if \a ibuf is modified. @@ -507,17 +507,17 @@ bool IMB_scaleImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy); bool IMB_scalefastImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy); /** - * \attention Defined in scaling.c + * \attention Defined in `scaling.cc`. */ void IMB_scaleImBuf_threaded(struct ImBuf *ibuf, unsigned int newx, unsigned int newy); /** - * \attention Defined in writeimage.c + * \attention Defined in `writeimage.cc`. */ bool IMB_saveiff(struct ImBuf *ibuf, const char *filepath, int flags); /** - * \attention Defined in util.c + * \attention Defined in `util.cc`. */ bool IMB_ispic(const char *filepath); bool IMB_ispic_type_matches(const char *filepath, int filetype); @@ -525,12 +525,12 @@ int IMB_ispic_type_from_memory(const unsigned char *buf, size_t buf_size); int IMB_ispic_type(const char *filepath); /** - * \attention Defined in util.c + * \attention Defined in `util.cc`. */ bool IMB_isanim(const char *filepath); /** - * \attention Defined in util.c + * \attention Defined in `util.cc`. */ int imb_get_anim_type(const char *filepath); @@ -647,14 +647,14 @@ void IMB_buffer_float_premultiply(float *buf, int width, int height); * Change the ordering of the color bytes pointed to by rect from * RGBA to ABGR. size * 4 color bytes are reordered. * - * \attention Defined in imageprocess.c + * \attention Defined in `imageprocess.cc`. * * Only this one is used liberally here, and in imbuf. */ void IMB_convert_rgba_to_abgr(struct ImBuf *ibuf); /** - * \attention defined in imageprocess.c + * \attention defined in `imageprocess.cc`. */ void bicubic_interpolation( @@ -704,7 +704,7 @@ void IMB_sampleImageAtLocation( struct ImBuf *ibuf, float x, float y, bool make_linear_rgb, float color[4]); /** - * \attention defined in readimage.c + * \attention defined in `readimage.cc`. */ struct ImBuf *IMB_loadifffile(int file, int flags, @@ -712,37 +712,37 @@ struct ImBuf *IMB_loadifffile(int file, const char *descr); /** - * \attention defined in scaling.c + * \attention defined in `scaling.cc`. */ struct ImBuf *IMB_half_x(struct ImBuf *ibuf1); /** - * \attention defined in scaling.c + * \attention defined in `scaling.cc`. */ struct ImBuf *IMB_double_fast_x(struct ImBuf *ibuf1); /** - * \attention defined in scaling.c + * \attention defined in `scaling.cc`. */ struct ImBuf *IMB_double_x(struct ImBuf *ibuf1); /** - * \attention defined in scaling.c + * \attention defined in `scaling.cc`. */ struct ImBuf *IMB_half_y(struct ImBuf *ibuf1); /** - * \attention defined in scaling.c + * \attention defined in `scaling.cc`. */ struct ImBuf *IMB_double_fast_y(struct ImBuf *ibuf1); /** - * \attention defined in scaling.c + * \attention defined in `scaling.cc`. */ struct ImBuf *IMB_double_y(struct ImBuf *ibuf1); /** - * \attention Defined in rotate.c + * \attention Defined in `rotate.cc`. */ void IMB_flipx(struct ImBuf *ibuf); void IMB_flipy(struct ImBuf *ibuf); @@ -753,7 +753,7 @@ void IMB_premultiply_alpha(struct ImBuf *ibuf); void IMB_unpremultiply_alpha(struct ImBuf *ibuf); /** - * \attention Defined in rectop.c + * \attention Defined in `rectop.cc`. */ /** * Replace pixels of entire image with solid color. @@ -904,7 +904,7 @@ void IMB_ffmpeg_init(void); const char *IMB_ffmpeg_last_error(void); /** - * \attention defined in util_gpu.c + * \attention defined in `util_gpu.cc`. */ GPUTexture *IMB_create_gpu_texture(const char *name, struct ImBuf *ibuf, @@ -951,7 +951,7 @@ void IMB_update_gpu_texture_sub(GPUTexture *tex, bool use_premult); /** - * \attention defined in stereoimbuf.c + * \attention defined in `stereoimbuf.cc`. */ void IMB_stereo3d_write_dimensions( char mode, bool is_squeezed, size_t width, size_t height, size_t *r_width, size_t *r_height); diff --git a/source/blender/imbuf/intern/IMB_allocimbuf.h b/source/blender/imbuf/intern/IMB_allocimbuf.h index 57dbcae4249..8208c436a52 100644 --- a/source/blender/imbuf/intern/IMB_allocimbuf.h +++ b/source/blender/imbuf/intern/IMB_allocimbuf.h @@ -4,7 +4,7 @@ /** \file * \ingroup imbuf - * \brief Header file for allocimbuf.c + * \brief Header file for `allocimbuf.cc`. */ #pragma once diff --git a/source/blender/imbuf/intern/IMB_filter.h b/source/blender/imbuf/intern/IMB_filter.h index fd353e08fd2..c18dbb8300c 100644 --- a/source/blender/imbuf/intern/IMB_filter.h +++ b/source/blender/imbuf/intern/IMB_filter.h @@ -4,7 +4,7 @@ /** \file * \ingroup imbuf - * \brief Function declarations for filter.c + * \brief Function declarations for `filter.cc`. */ #pragma once diff --git a/source/blender/imbuf/intern/imageprocess.cc b/source/blender/imbuf/intern/imageprocess.cc index 694a1fcf22a..8bb28c871f6 100644 --- a/source/blender/imbuf/intern/imageprocess.cc +++ b/source/blender/imbuf/intern/imageprocess.cc @@ -8,7 +8,7 @@ * This file was moved here from the `src/` directory. * It is meant to deal with endianness. It resided in a general blending lib. * The other functions were only used during rendering. This single function remained. - * It should probably move to `imbuf/intern/util.c`, but we'll keep it here for the time being. + * It should probably move to `imbuf/intern/util.cc`, but we'll keep it here for the time being. */ #include diff --git a/source/blender/io/collada/MeshImporter.h b/source/blender/io/collada/MeshImporter.h index 83e2c23167e..cf4f9866c64 100644 --- a/source/blender/io/collada/MeshImporter.h +++ b/source/blender/io/collada/MeshImporter.h @@ -134,10 +134,10 @@ class MeshImporter : public MeshImporterBase { bool primitive_has_faces(COLLADAFW::MeshPrimitive *mp); /** - * This function is copied from source/blender/editors/mesh/mesh_data.c + * This function is copied from `source/blender/editors/mesh/mesh_data.cc` * * TODO: (As discussed with sergey-) : - * Maybe move this function to `blenderkernel/intern/mesh.c`. + * Maybe move this function to `blenderkernel/intern/mesh.cc`. * and add definition to BKE_mesh.c. */ static void mesh_add_edges(Mesh *mesh, int len); diff --git a/source/blender/io/collada/collada_utils.cpp b/source/blender/io/collada/collada_utils.cpp index 51d053c15a1..269ebc30e47 100644 --- a/source/blender/io/collada/collada_utils.cpp +++ b/source/blender/io/collada/collada_utils.cpp @@ -83,7 +83,7 @@ float bc_get_float_value(const COLLADAFW::FloatOrDoubleArray &array, uint index) int bc_test_parent_loop(Object *par, Object *ob) { - /* Copied from /editors/object/object_relations.c */ + /* Copied from `editors/object/object_relations.cc`. */ /* test if 'ob' is a parent somewhere in par's parents */ @@ -183,7 +183,7 @@ void bc_update_scene(BlenderContext &blender_context, float ctime) Scene *scene = blender_context.get_scene(); Depsgraph *depsgraph = blender_context.get_depsgraph(); - /* See remark in physics_fluid.c lines 395...) */ + /* See remark in `physics_fluid.cc` lines 395...) */ // BKE_scene_update_for_newframe(ev_context, bmain, scene, scene->lay); BKE_scene_frame_set(scene, ctime); ED_update_for_newframe(bmain, depsgraph); diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index 2ed7307389d..e4f5406ad3a 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -511,7 +511,7 @@ typedef struct Library_Runtime { /** * For each library file used, a Library struct is added to Main - * WARNING: readfile.c, expand_doit() reads this struct without DNA check! + * WARNING: `readfile.cc`, expand_doit() reads this struct without DNA check! */ typedef struct Library { ID id; @@ -832,7 +832,7 @@ enum { * * RESET_AFTER_USE * - * \note Also used internally in readfile.c to mark data-blocks needing do_versions. + * \note Also used internally in `readfile.cc` to mark data-blocks needing do_versions. */ LIB_TAG_NEW = 1 << 12, /** @@ -844,22 +844,22 @@ enum { LIB_TAG_PRE_EXISTING = 1 << 13, /** - * Tag used internally in readfile.c, to mark IDs needing to be expanded (only done once). + * Tag used internally in `readfile.cc`, to mark IDs needing to be expanded (only done once). * * RESET_AFTER_USE */ LIB_TAG_NEED_EXPAND = 1 << 14, /** - * Tag used internally in readfile.c, to mark ID placeholders for linked data-blocks needing to - * be read. + * Tag used internally in `readfile.cc`, to mark ID placeholders for linked data-blocks needing + * to be read. * * RESET_AFTER_USE */ LIB_TAG_ID_LINK_PLACEHOLDER = 1 << 15, /** - * Tag used internally in readfile.c, to mark IDs needing to be 'lib-linked', i.e. to get their - * pointers to other data-blocks updated from the 'UID' values stored in .blend files to the new, - * actual pointers. + * Tag used internally in `readfile.cc`, to mark IDs needing to be 'lib-linked', i.e. to get + * their pointers to other data-blocks updated from the 'UID' values stored in `.blend` files to + * the new, actual pointers. * * RESET_AFTER_USE */ diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h index 822bad38632..86d59f36521 100644 --- a/source/blender/makesdna/DNA_anim_types.h +++ b/source/blender/makesdna/DNA_anim_types.h @@ -1101,7 +1101,7 @@ typedef struct AnimOverride { * * This data-block should be placed immediately after the ID block where it is used, so that * the code which retrieves this data can do so in an easier manner. - * See blenkernel/intern/anim_sys.c for details. + * See `blenkernel/intern/anim_sys.cc` for details. */ typedef struct AnimData { /** diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h index 7347971fc04..8b40def178b 100644 --- a/source/blender/makesdna/DNA_curve_types.h +++ b/source/blender/makesdna/DNA_curve_types.h @@ -17,7 +17,8 @@ extern "C" { #endif -#define MAXTEXTBOX 256 /* used in readfile.c and editfont.c */ +/** Used in `readfile.cc` and `editfont.cc`. */ +#define MAXTEXTBOX 256 struct AnimData; struct Curves; diff --git a/source/blender/makesdna/DNA_documentation.h b/source/blender/makesdna/DNA_documentation.h index fa3e7691f36..6d9c6d9ce5a 100644 --- a/source/blender/makesdna/DNA_documentation.h +++ b/source/blender/makesdna/DNA_documentation.h @@ -41,7 +41,7 @@ * * Ignored structs can only be referred to from non-ignored structs * when referred to as a pointer (where they're usually allocated - * and cleared in `readfile.c`). + * and cleared in `readfile.cc`). * * - %Path to the header files * diff --git a/source/blender/makesdna/DNA_effect_types.h b/source/blender/makesdna/DNA_effect_types.h index 167adf02674..5c1df335c7b 100644 --- a/source/blender/makesdna/DNA_effect_types.h +++ b/source/blender/makesdna/DNA_effect_types.h @@ -14,7 +14,7 @@ extern "C" { #endif -/* Don't forget, new effects also in `writefile.c` for DNA! */ +/* Don't forget, new effects also in `writefile.cc` for DNA! */ /** #PartEff::flag. */ enum { diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index 9f91ec5fcb4..6b5138a08f0 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -761,7 +761,7 @@ enum { /** #Base::flag_legacy (also used for #Object::flag). */ enum { BA_WAS_SEL = (1 << 1), - /* NOTE: BA_HAS_RECALC_DATA can be re-used later if freed in readfile.c. */ + /* NOTE: BA_HAS_RECALC_DATA can be re-used later if freed in `readfile.cc`. */ // BA_HAS_RECALC_OB = 1 << 2, /* DEPRECATED */ // BA_HAS_RECALC_DATA = 1 << 3, /* DEPRECATED */ /** DEPRECATED, was runtime only, but was reusing an older flag. */ diff --git a/source/blender/makesdna/DNA_outliner_types.h b/source/blender/makesdna/DNA_outliner_types.h index 20d32b3b9f4..213c6f229fd 100644 --- a/source/blender/makesdna/DNA_outliner_types.h +++ b/source/blender/makesdna/DNA_outliner_types.h @@ -31,8 +31,8 @@ typedef struct TreeStore { /** Number of elements in data array. */ int usedelem; /** - * Elements to be packed from mempool in `writefile.c` - * or extracted to mempool in `readfile.c`. + * Elements to be packed from mempool in `writefile.cc` + * or extracted to mempool in `readfile.cc`. */ TreeStoreElem *data; } TreeStore; diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 8ccf1dd3d37..da01c4bc9be 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -290,11 +290,12 @@ typedef struct SpaceOutliner { ListBase tree; - /* treestore is an ordered list of TreeStoreElem's from outliner tree; + /** + * Treestore is an ordered list of TreeStoreElem's from outliner tree; * Note that treestore may contain duplicate elements if element * is used multiple times in outliner tree (e. g. linked objects) * Also note that BLI_mempool can not be read/written in DNA directly, - * therefore `readfile.c/writefile.c` linearize treestore into TreeStore structure + * therefore `readfile.cc` / `writefile.cc` linearize treestore into #TreeStore structure. */ struct BLI_mempool *treestore; diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index fd6cb6d2732..9ee65e8d547 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -1003,7 +1003,7 @@ typedef struct UserDef { UserDef_Runtime runtime; } UserDef; -/** From blenkernel `blender.c`. */ +/** From blenkernel `blender.cc`. */ extern UserDef U; /* ***************** USERDEF ****************** */ diff --git a/source/blender/makesdna/intern/dna_genfile.cc b/source/blender/makesdna/intern/dna_genfile.cc index 7695cf1aa78..d4db2b02401 100644 --- a/source/blender/makesdna/intern/dna_genfile.cc +++ b/source/blender/makesdna/intern/dna_genfile.cc @@ -1063,7 +1063,7 @@ void DNA_struct_switch_endian(const SDNA *sdna, int struct_nr, char *data) break; } case STRUCT_MEMBER_CATEGORY_POINTER: { - /* See `readfile.c` (#bh4_from_bh8 swap endian argument), + /* See `readfile.cc` (#bh4_from_bh8 swap endian argument), * this is only done when reducing the size of a pointer from 4 to 8. */ if (sizeof(void *) < 8) { if (sdna->pointer_size == 8) { diff --git a/source/blender/makesdna/intern/dna_rename_defs.h b/source/blender/makesdna/intern/dna_rename_defs.h index bf71a15ef14..2336c5a7867 100644 --- a/source/blender/makesdna/intern/dna_rename_defs.h +++ b/source/blender/makesdna/intern/dna_rename_defs.h @@ -29,7 +29,7 @@ * Compare the results before & after to ensure all changes are reversed by renaming * and the DNA remains unchanged. * - * \see versioning_dna.c for actual version patching. + * \see `versioning_dna.cc` for actual version patching. */ /* No include guard (intentional). */ diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 6c3a5f21b95..68855363e54 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -123,7 +123,7 @@ typedef enum PropertyScaleType { #define RNA_STACK_ARRAY 32 /** - * \note Also update enums in bpy_props.c and rna_rna.cc when adding items here. + * \note Also update enums in `bpy_props.cc` and `rna_rna.cc` when adding items here. * Watch it: these values are written to files as part of node socket button sub-types! */ typedef enum PropertySubType { @@ -688,7 +688,7 @@ typedef enum FunctionFlag { /** * If not set, the Python function implementing this call * is not allowed to write into data-blocks. - * Except for WindowManager and Screen currently, see rna_id_write_error() in bpy_rna.c + * Except for WindowManager and Screen currently, see rna_id_write_error() in `bpy_rna.cc`. */ FUNC_ALLOW_WRITE = (1 << 12), diff --git a/source/blender/makesrna/intern/rna_collection.cc b/source/blender/makesrna/intern/rna_collection.cc index c9829664c07..674189f8b5b 100644 --- a/source/blender/makesrna/intern/rna_collection.cc +++ b/source/blender/makesrna/intern/rna_collection.cc @@ -584,7 +584,7 @@ void RNA_def_collections(BlenderRNA *brna) srna = RNA_def_struct(brna, "Collection", "ID"); RNA_def_struct_ui_text(srna, "Collection", "Collection of Object data-blocks"); RNA_def_struct_ui_icon(srna, ICON_OUTLINER_COLLECTION); - /* This is done on save/load in readfile.c, + /* This is done on save/load in `readfile.cc`, * removed if no objects are in the collection and not in a scene. */ RNA_def_struct_clear_flag(srna, STRUCT_ID_REFCOUNT); diff --git a/source/blender/makesrna/intern/rna_color.cc b/source/blender/makesrna/intern/rna_color.cc index 71097ead7f7..4682eb5c34a 100644 --- a/source/blender/makesrna/intern/rna_color.cc +++ b/source/blender/makesrna/intern/rna_color.cc @@ -978,7 +978,7 @@ static void rna_def_color_ramp_element_api(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_struct_path_func(srna, "rna_ColorRampElement_path"); RNA_def_struct_ui_text(srna, "Color Ramp Elements", "Collection of Color Ramp Elements"); - /* TODO: make these functions generic in `texture.c`. */ + /* TODO: make these functions generic in `texture.cc`. */ func = RNA_def_function(srna, "new", "rna_ColorRampElement_new"); RNA_def_function_ui_description(func, "Add element to Color Ramp"); RNA_def_function_flag(func, FUNC_USE_REPORTS); diff --git a/source/blender/makesrna/intern/rna_constraint.cc b/source/blender/makesrna/intern/rna_constraint.cc index 1765d099ad8..7cfac50efb4 100644 --- a/source/blender/makesrna/intern/rna_constraint.cc +++ b/source/blender/makesrna/intern/rna_constraint.cc @@ -29,7 +29,7 @@ #include "ED_object.h" -/* please keep the names in sync with constraint.c */ +/* Please keep the names in sync with `constraint.cc`. */ const EnumPropertyItem rna_enum_constraint_type_items[] = { RNA_ENUM_ITEM_HEADING(N_("Motion Tracking"), nullptr), {CONSTRAINT_TYPE_CAMERASOLVER, "CAMERA_SOLVER", ICON_CON_CAMERASOLVER, "Camera Solver", ""}, diff --git a/source/blender/makesrna/intern/rna_fcurve.cc b/source/blender/makesrna/intern/rna_fcurve.cc index 968639dd026..2bd7705b697 100644 --- a/source/blender/makesrna/intern/rna_fcurve.cc +++ b/source/blender/makesrna/intern/rna_fcurve.cc @@ -537,7 +537,7 @@ static void rna_FKeyframe_ctrlpoint_ui_set(PointerRNA *ptr, const float *values) const float value_delta = values[1] - bezt->vec[1][1]; /* To match the behavior of transforming the keyframe Co using the Graph Editor - * (transform_convert_graph.c) flushTransGraphData(), we will also move the handles by + * (`transform_convert_graph.cc`) flushTransGraphData(), we will also move the handles by * the same amount as the Co delta. */ bezt->vec[0][0] += frame_delta; @@ -2170,8 +2170,9 @@ static void rna_def_fpoint(BlenderRNA *brna) RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, nullptr); } -/* duplicate of BezTriple in rna_curve.c - * but with F-Curve specific options updates/functionality +/** + * Duplicate of #BezTriple in `rna_curve.cc` + * but with F-Curve specific options updates/functionality. */ static void rna_def_fkeyframe(BlenderRNA *brna) { diff --git a/source/blender/makesrna/intern/rna_main.cc b/source/blender/makesrna/intern/rna_main.cc index be4c33b7604..4a406ff5da8 100644 --- a/source/blender/makesrna/intern/rna_main.cc +++ b/source/blender/makesrna/intern/rna_main.cc @@ -170,7 +170,7 @@ void RNA_def_main(BlenderRNA *brna) StructRNA *srna; PropertyRNA *prop; - /* plural must match idtypes in readblenentry.c */ + /* Plural must match ID-types in `readblenentry.cc`. */ MainCollectionDef lists[] = { {"cameras", "Camera", diff --git a/source/blender/makesrna/intern/rna_scene.cc b/source/blender/makesrna/intern/rna_scene.cc index c26afe5f3b5..8dcf3139d33 100644 --- a/source/blender/makesrna/intern/rna_scene.cc +++ b/source/blender/makesrna/intern/rna_scene.cc @@ -1151,7 +1151,7 @@ static void rna_Scene_active_keying_set_index_set(PointerRNA *ptr, int value) scene->active_keyingset = value + 1; } -/* XXX: evil... builtin_keyingsets is defined in keyingsets.c! */ +/* XXX: evil... builtin_keyingsets is defined in `keyingsets.cc`! */ /* TODO: make API function to retrieve this... */ extern "C" ListBase builtin_keyingsets; diff --git a/source/blender/makesrna/intern/rna_sequencer.cc b/source/blender/makesrna/intern/rna_sequencer.cc index 53b73735054..fa42afd3c54 100644 --- a/source/blender/makesrna/intern/rna_sequencer.cc +++ b/source/blender/makesrna/intern/rna_sequencer.cc @@ -269,10 +269,10 @@ static int rna_SequenceEditor_elements_length(PointerRNA *ptr) { Sequence *seq = (Sequence *)ptr->data; - /* Hack? copied from sequencer.c::reload_sequence_new_file() */ + /* Hack? copied from `sequencer.cc`, #reload_sequence_new_file(). */ size_t olen = MEM_allocN_len(seq->strip->stripdata) / sizeof(StripElem); - /* The problem with seq->strip->len and seq->len is that it's discounted from the offset + /* The problem with `seq->strip->len` and `seq->len` is that it's discounted from the offset * (hard cut trim). */ return int(olen); } diff --git a/source/blender/makesrna/intern/rna_wm.cc b/source/blender/makesrna/intern/rna_wm.cc index f584fc6d572..b8a1fd2f326 100644 --- a/source/blender/makesrna/intern/rna_wm.cc +++ b/source/blender/makesrna/intern/rna_wm.cc @@ -1500,7 +1500,7 @@ static char *rna_operator_description_cb(bContext *C, wmOperatorType *ot, Pointe static bool rna_Operator_unregister(Main *bmain, StructRNA *type); -/* bpy_operator_wrap.c */ +/* `bpy_operator_wrap.cc` */ extern "C" void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata); extern "C" void BPY_RNA_operator_macro_wrapper(wmOperatorType *ot, void *userdata); diff --git a/source/blender/makesrna/intern/rna_wm_gizmo_api.cc b/source/blender/makesrna/intern/rna_wm_gizmo_api.cc index a889dc95139..a9c2abe7380 100644 --- a/source/blender/makesrna/intern/rna_wm_gizmo_api.cc +++ b/source/blender/makesrna/intern/rna_wm_gizmo_api.cc @@ -259,7 +259,7 @@ void RNA_api_gizmo(StructRNA *srna) /* Property API */ /* Define Properties */ - /* NOTE: 'target_set_handler' is defined in `bpy_rna_gizmo.c`. */ + /* NOTE: 'target_set_handler' is defined in `bpy_rna_gizmo.cc`. */ func = RNA_def_function(srna, "target_set_prop", "rna_gizmo_target_set_prop"); RNA_def_function_flag(func, FUNC_USE_REPORTS); RNA_def_function_ui_description(func, ""); @@ -288,7 +288,7 @@ void RNA_api_gizmo(StructRNA *srna) RNA_def_function_return(func, parm); /* Access Properties */ - /* NOTE: 'target_get', 'target_set' is defined in `bpy_rna_gizmo.c`. */ + /* NOTE: 'target_get', 'target_set' is defined in `bpy_rna_gizmo.cc`. */ func = RNA_def_function(srna, "target_is_valid", "rna_gizmo_target_is_valid"); RNA_def_function_flag(func, FUNC_USE_REPORTS); parm = RNA_def_string(func, "property", nullptr, 0, "", "Property identifier"); diff --git a/source/blender/modifiers/intern/MOD_collision.cc b/source/blender/modifiers/intern/MOD_collision.cc index 12ee8525561..7bbdcb4469f 100644 --- a/source/blender/modifiers/intern/MOD_collision.cc +++ b/source/blender/modifiers/intern/MOD_collision.cc @@ -197,7 +197,7 @@ static void deform_verts(ModifierData *md, } } - /* Happens on file load (ONLY when I un-comment changes in readfile.c) */ + /* Happens on file load (ONLY when I un-comment changes in `readfile.cc`). */ if (!collmd->bvhtree) { collmd->bvhtree = bvhtree_build_from_mvert( collmd->current_x, collmd->tri, collmd->tri_num, ob->pd->pdef_sboft); diff --git a/source/blender/modifiers/intern/MOD_meshcache_util.hh b/source/blender/modifiers/intern/MOD_meshcache_util.hh index da7953dd5a0..a25ef0a0c9c 100644 --- a/source/blender/modifiers/intern/MOD_meshcache_util.hh +++ b/source/blender/modifiers/intern/MOD_meshcache_util.hh @@ -8,7 +8,7 @@ #pragma once -/* MOD_meshcache_mdd.c */ +/* `MOD_meshcache_mdd.cc` */ bool MOD_meshcache_read_mdd_index( FILE *fp, float (*vertexCos)[3], int verts_tot, int index, float factor, const char **err_str); @@ -27,7 +27,7 @@ bool MOD_meshcache_read_mdd_times(const char *filepath, char time_mode, const char **err_str); -/* MOD_meshcache_pc2.c */ +/* `MOD_meshcache_pc2.cc` */ bool MOD_meshcache_read_pc2_index( FILE *fp, float (*vertexCos)[3], int verts_tot, int index, float factor, const char **err_str); @@ -46,7 +46,7 @@ bool MOD_meshcache_read_pc2_times(const char *filepath, char time_mode, const char **err_str); -/* MOD_meshcache_util.c */ +/* `MOD_meshcache_util.cc` */ void MOD_meshcache_calc_range( float frame, char interp, int frame_tot, int r_index_range[2], float *r_factor); diff --git a/source/blender/modifiers/intern/MOD_weightvgproximity.cc b/source/blender/modifiers/intern/MOD_weightvgproximity.cc index c320c889335..5db132399c1 100644 --- a/source/blender/modifiers/intern/MOD_weightvgproximity.cc +++ b/source/blender/modifiers/intern/MOD_weightvgproximity.cc @@ -144,7 +144,7 @@ static void vert2geom_task_cb_ex(void *__restrict userdata, } /** - * Find nearest vertex and/or edge and/or face, for each vertex (adapted from shrinkwrap.c). + * Find nearest vertex and/or edge and/or face, for each vertex (adapted from `shrinkwrap.cc`). */ static void get_vert2geom_distance(int verts_num, const blender::Span positions, diff --git a/source/blender/nodes/NOD_static_types.h b/source/blender/nodes/NOD_static_types.h index 8abce013d78..d466b50d725 100644 --- a/source/blender/nodes/NOD_static_types.h +++ b/source/blender/nodes/NOD_static_types.h @@ -148,7 +148,7 @@ DefNode(CompositorNode, CMP_NODE_HUE_SAT, 0, "HUE_SA DefNode(CompositorNode, CMP_NODE_IMAGE, def_cmp_image, "IMAGE", Image, "Image", "" ) DefNode(CompositorNode, CMP_NODE_R_LAYERS, def_cmp_render_layers, "R_LAYERS", RLayers, "Render Layers", "" ) DefNode(CompositorNode, CMP_NODE_COMPOSITE, def_cmp_composite, "COMPOSITE", Composite, "Composite", "" ) -/* NOTE: #OutputFile node has special RNA setup function called in rna_nodetree.c */ +/* NOTE: #OutputFile node has special RNA setup function called in `rna_nodetree.cc`. */ DefNode(CompositorNode, CMP_NODE_OUTPUT_FILE, 0, "OUTPUT_FILE", OutputFile, "File Output", "" ) DefNode(CompositorNode, CMP_NODE_TEXTURE, def_texture, "TEXTURE", Texture, "Texture", "" ) DefNode(CompositorNode, CMP_NODE_TRANSLATE, def_cmp_translate, "TRANSLATE", Translate, "Translate", "" ) diff --git a/source/blender/nodes/composite/nodes/node_composite_stabilize2d.cc b/source/blender/nodes/composite/nodes/node_composite_stabilize2d.cc index 9829a2e6e79..8b319c82b82 100644 --- a/source/blender/nodes/composite/nodes/node_composite_stabilize2d.cc +++ b/source/blender/nodes/composite/nodes/node_composite_stabilize2d.cc @@ -47,7 +47,7 @@ static void init(const bContext *C, PointerRNA *ptr) node->id = (ID *)scene->clip; id_us_plus(node->id); - /* default to bilinear, see node_sampler_type_items in rna_nodetree.c */ + /* Default to bi-linear, see node_sampler_type_items in `rna_nodetree.cc`. */ node->custom1 = 1; } diff --git a/source/blender/nodes/intern/node_socket.cc b/source/blender/nodes/intern/node_socket.cc index 53be3c1e825..d9649dc29f0 100644 --- a/source/blender/nodes/intern/node_socket.cc +++ b/source/blender/nodes/intern/node_socket.cc @@ -812,7 +812,7 @@ static bNodeSocketType *make_socket_type_material() void register_standard_node_socket_types() { - /* Draw callbacks are set in `drawnode.c` to avoid bad-level calls. */ + /* Draw callbacks are set in `drawnode.cc` to avoid bad-level calls. */ nodeRegisterSocketType(make_socket_type_float(PROP_NONE)); nodeRegisterSocketType(make_socket_type_float(PROP_UNSIGNED)); diff --git a/source/blender/nodes/texture/node_texture_tree.cc b/source/blender/nodes/texture/node_texture_tree.cc index 8c9c8e33781..5f0aefb5c6b 100644 --- a/source/blender/nodes/texture/node_texture_tree.cc +++ b/source/blender/nodes/texture/node_texture_tree.cc @@ -137,7 +137,7 @@ void register_node_tree_type_tex() STRNCPY(tt->idname, "TextureNodeTree"); STRNCPY(tt->group_idname, "TextureNodeGroup"); STRNCPY(tt->ui_name, N_("Texture Node Editor")); - tt->ui_icon = ICON_NODE_TEXTURE; /* Defined in `drawnode.c`. */ + tt->ui_icon = ICON_NODE_TEXTURE; /* Defined in `drawnode.cc`. */ STRNCPY(tt->ui_description, N_("Texture nodes")); tt->foreach_nodeclass = foreach_nodeclass; diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index d0f391cd6c1..ec331c692de 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -128,7 +128,7 @@ void BPY_id_release(struct ID *id); */ bool BPY_string_is_keyword(const char *str); -/* bpy_rna_callback.c */ +/* `bpy_rna_callback.cc` */ void BPY_callback_screen_free(struct ARegionType *art); void BPY_callback_wm_free(struct wmWindowManager *wm); diff --git a/source/blender/python/BPY_extern_python.h b/source/blender/python/BPY_extern_python.h index 5d9de65cafb..ec85b56fdd8 100644 --- a/source/blender/python/BPY_extern_python.h +++ b/source/blender/python/BPY_extern_python.h @@ -19,7 +19,7 @@ extern "C" { /* For 'FILE'. */ #include -/* bpy_interface.c */ +/* `bpy_interface.cc` */ /** Call #BPY_context_set first. */ void BPY_python_start(struct bContext *C, int argc, const char **argv); @@ -28,7 +28,7 @@ void BPY_python_reset(struct bContext *C); void BPY_python_use_system_env(void); void BPY_python_backtrace(FILE *fp); -/* bpy_app.c */ +/* `bpy_app.cc` */ /* Access `main_args_help_as_string` needed to resolve bad level call. */ extern char *(*BPY_python_app_help_text_fn)(bool all); diff --git a/source/blender/python/BPY_extern_run.h b/source/blender/python/BPY_extern_run.h index 585a0f5105d..c33eacbd338 100644 --- a/source/blender/python/BPY_extern_run.h +++ b/source/blender/python/BPY_extern_run.h @@ -34,7 +34,7 @@ struct ReportList; struct Text; struct bContext; -/* bpy_interface_run.c */ +/* `bpy_interface_run.cc` */ /* -------------------------------------------------------------------- */ /** \name Run File/Text as a Script diff --git a/source/blender/python/bmesh/bmesh_py_ops_call.cc b/source/blender/python/bmesh/bmesh_py_ops_call.cc index 4eba949be21..0078ba74230 100644 --- a/source/blender/python/bmesh/bmesh_py_ops_call.cc +++ b/source/blender/python/bmesh/bmesh_py_ops_call.cc @@ -776,8 +776,8 @@ PyObject *BPy_BMO_call(BPy_BMeshOpFunc *self, PyObject *args, PyObject *kw) BMO_op_init(bm, &bmop, BMO_FLAG_DEFAULTS, self->opname); if (kw && PyDict_Size(kw) > 0) { - /* setup properties, see bpy_rna.c: pyrna_py_to_prop() - * which shares this logic for parsing properties */ + /* Setup properties, see `bpy_rna.cc`: #pyrna_py_to_prop() + * which shares this logic for parsing properties. */ PyObject *key, *value; Py_ssize_t pos = 0; diff --git a/source/blender/python/bmesh/bmesh_py_types.cc b/source/blender/python/bmesh/bmesh_py_types.cc index 5464dec0b43..e8a426951dc 100644 --- a/source/blender/python/bmesh/bmesh_py_types.cc +++ b/source/blender/python/bmesh/bmesh_py_types.cc @@ -3783,7 +3783,7 @@ PyObject *BPyInit_bmesh_types() submodule = PyModule_Create(&BPy_BM_types_module_def); - /* bmesh_py_types.c */ + /* `bmesh_py_types.cc` */ PyModule_AddType(submodule, &BPy_BMesh_Type); PyModule_AddType(submodule, &BPy_BMVert_Type); PyModule_AddType(submodule, &BPy_BMEdge_Type); @@ -3795,17 +3795,17 @@ PyObject *BPyInit_bmesh_types() PyModule_AddType(submodule, &BPy_BMFaceSeq_Type); PyModule_AddType(submodule, &BPy_BMLoopSeq_Type); PyModule_AddType(submodule, &BPy_BMIter_Type); - /* bmesh_py_types_select.c */ + /* `bmesh_py_types_select.cc` */ PyModule_AddType(submodule, &BPy_BMEditSelSeq_Type); PyModule_AddType(submodule, &BPy_BMEditSelIter_Type); - /* bmesh_py_types_customdata.c */ + /* `bmesh_py_types_customdata.cc` */ PyModule_AddType(submodule, &BPy_BMLayerAccessVert_Type); PyModule_AddType(submodule, &BPy_BMLayerAccessEdge_Type); PyModule_AddType(submodule, &BPy_BMLayerAccessFace_Type); PyModule_AddType(submodule, &BPy_BMLayerAccessLoop_Type); PyModule_AddType(submodule, &BPy_BMLayerCollection_Type); PyModule_AddType(submodule, &BPy_BMLayerItem_Type); - /* bmesh_py_types_meshdata.c */ + /* `bmesh_py_types_meshdata.cc` */ PyModule_AddType(submodule, &BPy_BMLoopUV_Type); PyModule_AddType(submodule, &BPy_BMDeformVert_Type); diff --git a/source/blender/python/generic/idprop_py_api.cc b/source/blender/python/generic/idprop_py_api.cc index 0e7f7aad1f0..9f98d12cc16 100644 --- a/source/blender/python/generic/idprop_py_api.cc +++ b/source/blender/python/generic/idprop_py_api.cc @@ -2225,7 +2225,7 @@ static PyObject *BPyInit_idprop_types() IDProp_Init_Types(); IDPropertyUIData_Init_Types(); - /* bmesh_py_types.c */ + /* `bmesh_py_types.cc` */ PyModule_AddType(submodule, &BPy_IDGroup_Type); PyModule_AddType(submodule, &BPy_IDGroup_ViewKeys_Type); diff --git a/source/blender/python/generic/py_capi_rna.cc b/source/blender/python/generic/py_capi_rna.cc index 5dd6f3d7ead..f021b95c507 100644 --- a/source/blender/python/generic/py_capi_rna.cc +++ b/source/blender/python/generic/py_capi_rna.cc @@ -7,7 +7,7 @@ * * Python/RNA utilities. * - * RNA functions that aren't part of the `bpy_rna.c` API. + * RNA functions that aren't part of the `bpy_rna.cc` API. */ /* Future-proof, See https://docs.python.org/3/c-api/arg.html#strings-and-buffers */ diff --git a/source/blender/python/gpu/gpu_py_shader.h b/source/blender/python/gpu/gpu_py_shader.h index dc7a7a764cc..e2f2e1f516c 100644 --- a/source/blender/python/gpu/gpu_py_shader.h +++ b/source/blender/python/gpu/gpu_py_shader.h @@ -20,7 +20,7 @@ extern "C" { * passed by reference in the #GPUStageInterfaceInfo and #GPUShaderCreateInfo APIs. */ #define USE_GPU_PY_REFERENCES -/* gpu_py_shader.c */ +/* `gpu_py_shader.cc` */ extern PyTypeObject BPyGPUShader_Type; diff --git a/source/blender/python/intern/bpy.cc b/source/blender/python/intern/bpy.cc index 7b3754bf174..a1ffb6e9976 100644 --- a/source/blender/python/intern/bpy.cc +++ b/source/blender/python/intern/bpy.cc @@ -689,7 +689,7 @@ void BPy_init_modules(bContext *C) PyModule_AddObject(mod, m->ml_name, (PyObject *)PyCFunction_New(m, nullptr)); } - /* Register functions (`bpy_rna.c`). */ + /* Register functions (`bpy_rna.cc`). */ PyModule_AddObject(mod, meth_bpy_register_class.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_register_class, nullptr)); diff --git a/source/blender/python/intern/bpy.h b/source/blender/python/intern/bpy.h index a34dadd24b8..e5807943b39 100644 --- a/source/blender/python/intern/bpy.h +++ b/source/blender/python/intern/bpy.h @@ -19,7 +19,7 @@ void BPy_init_modules(struct bContext *C); extern PyObject *bpy_package_py; -/* bpy_interface_atexit.c */ +/* `bpy_interface_atexit.cc` */ void BPY_atexit_register(void); void BPY_atexit_unregister(void); diff --git a/source/blender/python/intern/bpy_gizmo_wrap.cc b/source/blender/python/intern/bpy_gizmo_wrap.cc index 206150186c7..87921d8c231 100644 --- a/source/blender/python/intern/bpy_gizmo_wrap.cc +++ b/source/blender/python/intern/bpy_gizmo_wrap.cc @@ -10,7 +10,7 @@ * 'rna_wm.cc', some calling into functions here to do python specific * functionality. * - * \note This follows 'bpy_operator_wrap.c' very closely. + * \note This follows `bpy_operator_wrap.cc` very closely. * Keep in sync unless there is good reason not to! */ diff --git a/source/blender/python/intern/bpy_interface.cc b/source/blender/python/intern/bpy_interface.cc index bde5a5d77c0..0d0ad30a328 100644 --- a/source/blender/python/intern/bpy_interface.cc +++ b/source/blender/python/intern/bpy_interface.cc @@ -955,7 +955,7 @@ bool BPY_string_is_keyword(const char *str) return false; } -/* EVIL: define `text.c` functions here (declared in `BKE_text.h`). */ +/* EVIL: define `text.cc` functions here (declared in `BKE_text.h`). */ int text_check_identifier_unicode(const uint ch) { return (ch < 255 && text_check_identifier(char(ch))) || Py_UNICODE_ISALNUM(ch); diff --git a/source/blender/python/intern/bpy_operator_wrap.h b/source/blender/python/intern/bpy_operator_wrap.h index a0c88ac0a71..b5332fe0358 100644 --- a/source/blender/python/intern/bpy_operator_wrap.h +++ b/source/blender/python/intern/bpy_operator_wrap.h @@ -14,7 +14,7 @@ struct wmOperatorType; extern "C" { #endif -/** These are used for operator methods, used by `bpy_operator.c`. */ +/** These are used for operator methods, used by `bpy_operator.cc`. */ PyObject *PYOP_wrap_macro_define(PyObject *self, PyObject *args); /* Exposed to RNA/WM API. */ diff --git a/source/blender/python/intern/bpy_rna.cc b/source/blender/python/intern/bpy_rna.cc index c9fde0fcf9b..4fc9e20c3a0 100644 --- a/source/blender/python/intern/bpy_rna.cc +++ b/source/blender/python/intern/bpy_rna.cc @@ -5833,7 +5833,7 @@ static PyMethodDef pyrna_struct_methods[] = { {"as_pointer", (PyCFunction)pyrna_struct_as_pointer, METH_NOARGS, pyrna_struct_as_pointer_doc}, - /* bpy_rna_anim.c */ + /* `bpy_rna_anim.cc` */ {"keyframe_insert", (PyCFunction)pyrna_struct_keyframe_insert, METH_VARARGS | METH_KEYWORDS, diff --git a/source/blender/python/intern/bpy_rna_anim.cc b/source/blender/python/intern/bpy_rna_anim.cc index 59a84b44281..2406a20f150 100644 --- a/source/blender/python/intern/bpy_rna_anim.cc +++ b/source/blender/python/intern/bpy_rna_anim.cc @@ -5,7 +5,7 @@ /** \file * \ingroup pythonintern * - * This file defines the animation related methods used in bpy_rna.c + * This file defines the animation related methods used in `bpy_rna.cc`. */ #include diff --git a/source/blender/python/intern/bpy_rna_array.cc b/source/blender/python/intern/bpy_rna_array.cc index 4b8e8559d03..92946194ee2 100644 --- a/source/blender/python/intern/bpy_rna_array.cc +++ b/source/blender/python/intern/bpy_rna_array.cc @@ -5,7 +5,7 @@ /** \file * \ingroup pythonintern * - * This file deals with array access for 'BPy_PropertyArrayRNA' from bpy_rna.c + * This file deals with array access for 'BPy_PropertyArrayRNA' from `bpy_rna.cc`. */ #include diff --git a/source/blender/render/RE_bake.h b/source/blender/render/RE_bake.h index 9589d2a5e9c..d18c959141f 100644 --- a/source/blender/render/RE_bake.h +++ b/source/blender/render/RE_bake.h @@ -67,7 +67,7 @@ typedef struct BakeHighPolyData { float imat[4][4]; } BakeHighPolyData; -/* external_engine.c */ +/* `external_engine.cc` */ bool RE_bake_has_engine(const struct Render *re); @@ -81,7 +81,7 @@ bool RE_bake_engine(struct Render *re, int pass_filter, float result[]); -/* bake.c */ +/* `bake.cc` */ int RE_pass_depth(eScenePassType pass_type); diff --git a/source/blender/render/RE_pipeline.h b/source/blender/render/RE_pipeline.h index 7f2ddbd1dab..83563297476 100644 --- a/source/blender/render/RE_pipeline.h +++ b/source/blender/render/RE_pipeline.h @@ -478,7 +478,7 @@ bool RE_is_rendering_allowed(struct Scene *scene, bool RE_allow_render_generic_object(struct Object *ob); -/******* defined in render_result.c *********/ +/******* defined in `render_result.cc` *********/ bool RE_HasCombinedLayer(const RenderResult *result); bool RE_HasFloatPixels(const RenderResult *result); diff --git a/source/blender/render/RE_texture.h b/source/blender/render/RE_texture.h index 5d5e8b18967..e92c51c2db7 100644 --- a/source/blender/render/RE_texture.h +++ b/source/blender/render/RE_texture.h @@ -21,7 +21,7 @@ struct Tex; extern "C" { #endif -/* texture_procedural.c */ +/* `texture_procedural.cc` */ /** * \param pool: Thread pool, may be NULL. @@ -50,11 +50,11 @@ float texture_value_blend(float tex, float out, float fact, float facg, int blen void RE_texture_rng_init(void); void RE_texture_rng_exit(void); -/* texture_image.c */ +/* `texture_image.cc` */ void ibuf_sample(struct ImBuf *ibuf, float fx, float fy, float dx, float dy, float result[4]); -/* texture_pointdensity.c */ +/* `texture_pointdensity.cc` */ struct PointDensity; @@ -78,7 +78,7 @@ void RE_point_density_free(struct PointDensity *pd); void RE_point_density_fix_linking(void); -/* texture_procedural.c */ +/* `texture_procedural.cc` */ /** * Texture evaluation result. diff --git a/source/blender/render/intern/texture_common.h b/source/blender/render/intern/texture_common.h index 50289e804a1..8677a2874a9 100644 --- a/source/blender/render/intern/texture_common.h +++ b/source/blender/render/intern/texture_common.h @@ -68,7 +68,7 @@ struct ImagePool; struct Tex; struct TexResult; -/* texture_image.c */ +/* `texture_image.cc` */ int imagewraposa(struct Tex *tex, struct Image *ima, diff --git a/source/blender/render/intern/zbuf.cc b/source/blender/render/intern/zbuf.cc index d9a471ad853..134f22ba46c 100644 --- a/source/blender/render/intern/zbuf.cc +++ b/source/blender/render/intern/zbuf.cc @@ -248,5 +248,3 @@ void zspan_scanconvert(ZSpan *zspan, } } } - -/* end of zbuf.c */ diff --git a/source/blender/sequencer/SEQ_sequencer.h b/source/blender/sequencer/SEQ_sequencer.h index 9a05878da40..7265db58e6f 100644 --- a/source/blender/sequencer/SEQ_sequencer.h +++ b/source/blender/sequencer/SEQ_sequencer.h @@ -124,7 +124,7 @@ void SEQ_eval_sequences(struct Depsgraph *depsgraph, struct Scene *scene, struct ListBase *seqbase); -/* Defined in sequence_lookup.c */ +/* Defined in `sequence_lookup.cc`. */ typedef enum eSequenceLookupTag { SEQ_LOOKUP_TAG_INVALID = (1 << 0), diff --git a/source/blender/sequencer/intern/multiview.h b/source/blender/sequencer/intern/multiview.h index 38d9026e55b..3ba0fee87ab 100644 --- a/source/blender/sequencer/intern/multiview.h +++ b/source/blender/sequencer/intern/multiview.h @@ -15,7 +15,7 @@ extern "C" { struct Scene; /* ********************************************************************** - * sequencer.c + * `sequencer.cc` * * Sequencer editing functions * ********************************************************************** diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 1e3166f22ea..4559de164e9 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -899,7 +899,7 @@ ID *WM_operator_drop_load_path(struct bContext *C, struct wmOperator *op, short bool WM_operator_last_properties_init(struct wmOperator *op); bool WM_operator_last_properties_store(struct wmOperator *op); -/* wm_operator_props.c */ +/* `wm_operator_props.cc` */ void WM_operator_properties_confirm_or_exec(struct wmOperatorType *ot); @@ -1115,7 +1115,7 @@ char *WM_context_path_resolve_property_full(const struct bContext *C, int index); char *WM_context_path_resolve_full(struct bContext *C, const PointerRNA *ptr); -/* wm_operator_type.c */ +/* `wm_operator_type.cc` */ struct wmOperatorType *WM_operatortype_find(const char *idname, bool quiet); /** @@ -1194,7 +1194,7 @@ char *WM_operatortype_description_or_name(struct bContext *C, struct wmOperatorType *ot, struct PointerRNA *properties); -/* wm_operator_utils.c */ +/* `wm_operator_utils.cc` */ /** * Allow an operator with only and execute function to run modally, @@ -1202,7 +1202,7 @@ char *WM_operatortype_description_or_name(struct bContext *C, */ void WM_operator_type_modal_from_exec_for_object_edit_coords(struct wmOperatorType *ot); -/* wm_uilist_type.c */ +/* `wm_uilist_type.cc` */ /** * Called on initialize #WM_init() @@ -1233,7 +1233,7 @@ void WM_uilisttype_to_full_list_id(const struct uiListType *ult, */ const char *WM_uilisttype_list_id_get(const struct uiListType *ult, struct uiList *list); -/* wm_menu_type.c */ +/* `wm_menu_type.cc` */ /** * \note Called on initialize #WM_init(). @@ -1253,7 +1253,7 @@ void WM_menutype_idname_visit_for_search(const struct bContext *C, StringPropertySearchVisitFunc visit_fn, void *visit_user_data); -/* wm_panel_type.c */ +/* `wm_panel_type.cc` */ /** * Called on initialize #WM_init(). @@ -1271,7 +1271,7 @@ void WM_paneltype_idname_visit_for_search(const struct bContext *C, StringPropertySearchVisitFunc visit_fn, void *visit_user_data); -/* wm_gesture_ops.c */ +/* `wm_gesture_ops.cc` */ int WM_gesture_box_invoke(struct bContext *C, struct wmOperator *op, const struct wmEvent *event); int WM_gesture_box_modal(struct bContext *C, struct wmOperator *op, const struct wmEvent *event); @@ -1765,7 +1765,7 @@ bool WM_window_modal_keymap_status_draw(struct bContext *C, struct wmWindow *win, struct uiLayout *layout); -/* wm_event_query.c */ +/* `wm_event_query.cc` */ /** * For debugging only, getting inspecting events manually is tedious. @@ -1855,7 +1855,7 @@ int WM_event_absolute_delta_y(const struct wmEvent *event); bool WM_event_is_ime_switch(const struct wmEvent *event); #endif -/* wm_tooltip.c */ +/* `wm_tooltip.cc` */ typedef struct ARegion *(*wmTooltipInitFn)(struct bContext *C, struct ARegion *region, @@ -1885,7 +1885,7 @@ void WM_tooltip_init(struct bContext *C, struct wmWindow *win); void WM_tooltip_refresh(struct bContext *C, struct wmWindow *win); double WM_tooltip_time_closed(void); -/* wm_utils.c */ +/* `wm_utils.cc` */ struct wmGenericCallback *WM_generic_callback_steal(struct wmGenericCallback *callback); void WM_generic_callback_free(struct wmGenericCallback *callback); @@ -1895,7 +1895,7 @@ void WM_generic_user_data_free(struct wmGenericUserData *wm_userdata); bool WM_region_use_viewport(struct ScrArea *area, struct ARegion *region); #ifdef WITH_XR_OPENXR -/* wm_xr_session.c */ +/* `wm_xr_session.cc` */ /** * Check if the XR-Session was triggered. @@ -2002,7 +2002,7 @@ void WM_xr_haptic_action_stop(wmXrData *xr, const char *action_name, const char *subaction_path); -/* wm_xr_actionmap.c */ +/* `wm_xr_actionmap.cc` */ XrActionMap *WM_xr_actionmap_new(struct wmXrRuntimeData *runtime, const char *name, diff --git a/source/blender/windowmanager/WM_toolsystem.h b/source/blender/windowmanager/WM_toolsystem.h index e9985c4dad0..e41e867221b 100644 --- a/source/blender/windowmanager/WM_toolsystem.h +++ b/source/blender/windowmanager/WM_toolsystem.h @@ -25,7 +25,7 @@ struct wmMsgSubscribeKey; struct wmMsgSubscribeValue; struct wmOperatorType; -/* wm_toolsystem.c */ +/* `wm_toolsystem.cc` */ #define WM_TOOLSYSTEM_SPACE_MASK \ ((1 << SPACE_IMAGE) | (1 << SPACE_NODE) | (1 << SPACE_VIEW3D) | (1 << SPACE_SEQ)) diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_api.h b/source/blender/windowmanager/gizmo/WM_gizmo_api.h index ddb1c70a039..6ad93fc135c 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_api.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_api.h @@ -190,7 +190,7 @@ void WM_gizmo_properties_reset(struct wmGizmo *gz); void WM_gizmo_properties_clear(struct PointerRNA *ptr); void WM_gizmo_properties_free(struct PointerRNA *ptr); -/* wm_gizmo_type.c */ +/* `wm_gizmo_type.cc` */ const struct wmGizmoType *WM_gizmotype_find(const char *idname, bool quiet); void WM_gizmotype_append(void (*gtfunc)(struct wmGizmoType *)); @@ -206,7 +206,7 @@ void WM_gizmotype_free_ptr(struct wmGizmoType *gzt); */ void WM_gizmotype_iter(struct GHashIterator *ghi); -/* wm_gizmo_group_type.c */ +/* `wm_gizmo_group_type.cc` */ struct wmGizmoGroupType *WM_gizmogrouptype_find(const char *idname, bool quiet); struct wmGizmoGroupType *WM_gizmogrouptype_append(void (*wtfunc)(struct wmGizmoGroupType *)); @@ -225,7 +225,7 @@ void WM_gizmogrouptype_iter(struct GHashIterator *ghi); struct wmGizmoGroupTypeRef *WM_gizmogrouptype_append_and_link( struct wmGizmoMapType *gzmap_type, void (*wtfunc)(struct wmGizmoGroupType *)); -/* wm_gizmo_map.c */ +/* `wm_gizmo_map.cc` */ /* Dynamic Updates (for RNA runtime registration) */ void WM_gizmoconfig_update_tag_group_type_init(struct wmGizmoMapType *gzmap_type, diff --git a/source/blender/windowmanager/gizmo/wm_gizmo_wmapi.h b/source/blender/windowmanager/gizmo/wm_gizmo_wmapi.h index a93b2407fee..50526539cf5 100644 --- a/source/blender/windowmanager/gizmo/wm_gizmo_wmapi.h +++ b/source/blender/windowmanager/gizmo/wm_gizmo_wmapi.h @@ -28,7 +28,7 @@ extern "C" { /** \name #wmGizmo * \{ */ -/* wm_gizmo_type.c, for init/exit */ +/* `wm_gizmo_type.cc`, for init/exit */ void wm_gizmotype_free(void); /** diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index 80dbf422520..552de41b06a 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -4089,7 +4089,7 @@ void wm_event_do_handlers(bContext *C) * after modal handlers have been done. */ if (event->type == MOUSEMOVE) { /* State variables in screen, cursors. - * Also used in `wm_draw.c`, fails for modal handlers though. */ + * Also used in `wm_draw.cc`, fails for modal handlers though. */ ED_screen_set_active_region(C, win, event->xy); /* For regions having custom cursors. */ wm_paintcursor_test(C, event); diff --git a/source/blender/windowmanager/intern/wm_gesture_ops.cc b/source/blender/windowmanager/intern/wm_gesture_ops.cc index 416f284feff..0bbf7f1c714 100644 --- a/source/blender/windowmanager/intern/wm_gesture_ops.cc +++ b/source/blender/windowmanager/intern/wm_gesture_ops.cc @@ -8,8 +8,8 @@ * Default operator callbacks for use with gestures (border/circle/lasso/straightline). * Operators themselves are defined elsewhere. * - * - Keymaps are in `wm_operators.c`. - * - Property definitions are in `wm_operator_props.c`. + * - Keymaps are in `wm_operators.cc`. + * - Property definitions are in `wm_operator_props.cc`. */ #include "MEM_guardedalloc.h" diff --git a/source/blender/windowmanager/intern/wm_init_exit.cc b/source/blender/windowmanager/intern/wm_init_exit.cc index 9bc15b9c692..d7ce6c224af 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.cc +++ b/source/blender/windowmanager/intern/wm_init_exit.cc @@ -590,7 +590,7 @@ void WM_exit_ex(bContext *C, const bool do_python, const bool do_user_exit_actio wm_free_reports(wm); } - SEQ_clipboard_free(); /* sequencer.c */ + SEQ_clipboard_free(); /* `sequencer.cc` */ BKE_tracking_clipboard_free(); BKE_mask_clipboard_free(); BKE_vfont_clipboard_free(); diff --git a/source/blender/windowmanager/intern/wm_keymap.cc b/source/blender/windowmanager/intern/wm_keymap.cc index 9b804ecbea6..31e5396477b 100644 --- a/source/blender/windowmanager/intern/wm_keymap.cc +++ b/source/blender/windowmanager/intern/wm_keymap.cc @@ -827,8 +827,8 @@ static void wm_keymap_diff_update(ListBase *lb, * * Name id's are for storing general or multiple keymaps. * - * - Space/region ids are same as DNA_space_types.h - * - Gets freed in wm.c + * - Space/region ids are same as `DNA_space_types.h`. + * - Gets freed in `wm.cc`. * \{ */ wmKeyMap *WM_keymap_list_find(ListBase *lb, const char *idname, int spaceid, int regionid) diff --git a/source/blender/windowmanager/message_bus/wm_message_bus.h b/source/blender/windowmanager/message_bus/wm_message_bus.h index 4c4815ef4bf..0cb4995d03f 100644 --- a/source/blender/windowmanager/message_bus/wm_message_bus.h +++ b/source/blender/windowmanager/message_bus/wm_message_bus.h @@ -16,7 +16,7 @@ struct ID; struct bContext; struct wmMsg; -/* opaque (don't expose outside wm_message_bus.c) */ +/* Opaque (don't expose outside `wm_message_bus.cc`). */ struct wmMsgBus; struct wmMsgSubscribeKey; struct wmMsgSubscribeValue; @@ -131,7 +131,7 @@ void WM_msg_id_update(struct wmMsgBus *mbus, struct ID *id_src, struct ID *id_ds void WM_msg_id_remove(struct wmMsgBus *mbus, const struct ID *id); /* -------------------------------------------------------------------------- */ -/* wm_message_bus_static.c */ +/* `wm_message_bus_static.cc` */ enum { /* generic window redraw */ @@ -172,7 +172,7 @@ void WM_msg_subscribe_static(struct wmMsgBus *mbus, const char *id_repr); /* -------------------------------------------------------------------------- */ -/* wm_message_bus_rna.c */ +/* `wm_message_bus_rna.cc` */ typedef struct wmMsgParams_RNA { /** when #PointerRNA.data & owner_id are NULL. match against all. */ diff --git a/source/blender/windowmanager/wm.h b/source/blender/windowmanager/wm.h index 7641b8ab609..2064e92f3fe 100644 --- a/source/blender/windowmanager/wm.h +++ b/source/blender/windowmanager/wm.h @@ -35,7 +35,7 @@ typedef struct wmPaintCursor { void wm_exit_schedule_delayed(const bContext *C); /** - * Context is allowed to be NULL, do not free wm itself (lib_id.c). + * Context is allowed to be NULL, do not free wm itself `lib_id.cc`. */ extern void wm_close_and_free(bContext *C, wmWindowManager *); @@ -67,9 +67,9 @@ void wm_operatortype_init(void); void wm_window_keymap(wmKeyConfig *keyconf); void wm_operatortypes_register(void); -/* wm_gesture.c */ +/* `wm_gesture.cc` */ -/* called in wm_draw.c */ +/* Called in `wm_draw.cc`. */ void wm_gesture_draw(struct wmWindow *win); /** @@ -77,7 +77,7 @@ void wm_gesture_draw(struct wmWindow *win); */ void wm_gesture_tag_redraw(struct wmWindow *win); -/* wm_jobs.c */ +/* `wm_jobs.cc` */ /** * Hard-coded to event #TIMERJOBS. @@ -98,12 +98,12 @@ void wm_autosave_timer_begin(struct wmWindowManager *wm); void wm_autosave_timer_end(wmWindowManager *wm); void wm_autosave_delete(void); -/* wm_splash_screen.c */ +/* `wm_splash_screen.cc` */ void WM_OT_splash(wmOperatorType *ot); void WM_OT_splash_about(wmOperatorType *ot); -/* wm_stereo.c */ +/* `wm_stereo.cc` */ void wm_stereo3d_draw_sidebyside(wmWindow *win, int view); void wm_stereo3d_draw_topbottom(wmWindow *win, int view); diff --git a/source/blender/windowmanager/wm_draw.h b/source/blender/windowmanager/wm_draw.h index 9f62937ecb7..63e86e4f1b8 100644 --- a/source/blender/windowmanager/wm_draw.h +++ b/source/blender/windowmanager/wm_draw.h @@ -28,7 +28,7 @@ struct ScrArea; struct bContext; struct wmWindow; -/* wm_draw.c */ +/* `wm_draw.cc` */ void wm_draw_update(struct bContext *C); void wm_draw_region_clear(struct wmWindow *win, struct ARegion *region); diff --git a/source/blender/windowmanager/wm_event_system.h b/source/blender/windowmanager/wm_event_system.h index a98e7f16fd3..4aa978755ba 100644 --- a/source/blender/windowmanager/wm_event_system.h +++ b/source/blender/windowmanager/wm_event_system.h @@ -122,7 +122,7 @@ typedef struct wmEventHandler_Dropbox { ListBase *dropboxes; } wmEventHandler_Dropbox; -/* wm_event_system.c */ +/* `wm_event_system.cc` */ void wm_event_free_all(wmWindow *win); void wm_event_free(wmEvent *event); @@ -160,7 +160,7 @@ void wm_event_handler_ui_cancel_ex(bContext *C, ARegion *region, bool reactivate_button); -/* wm_event_query.c */ +/* `wm_event_query.cc` */ /** * Applies the global tablet pressure correction curve. diff --git a/source/blender/windowmanager/wm_files.h b/source/blender/windowmanager/wm_files.h index aa186c77a16..c1e21168679 100644 --- a/source/blender/windowmanager/wm_files.h +++ b/source/blender/windowmanager/wm_files.h @@ -114,7 +114,7 @@ void WM_OT_recover_auto_save(struct wmOperatorType *ot); void WM_OT_save_as_mainfile(struct wmOperatorType *ot); void WM_OT_save_mainfile(struct wmOperatorType *ot); -/* wm_files_link.c */ +/* `wm_files_link.cc` */ void WM_OT_link(struct wmOperatorType *ot); void WM_OT_append(struct wmOperatorType *ot); diff --git a/source/blender/windowmanager/wm_window.h b/source/blender/windowmanager/wm_window.h index bc327f6920c..dc4a9b89497 100644 --- a/source/blender/windowmanager/wm_window.h +++ b/source/blender/windowmanager/wm_window.h @@ -42,7 +42,7 @@ wmWindow *wm_window_new(const struct Main *bmain, wmWindow *parent, bool dialog); /** - * Part of `wm_window.c` API. + * Part of `wm_window.cc` API. */ wmWindow *wm_window_copy( struct Main *bmain, wmWindowManager *wm, wmWindow *win_src, bool duplicate_layout, bool child); diff --git a/source/blender/windowmanager/xr/intern/wm_xr_intern.h b/source/blender/windowmanager/xr/intern/wm_xr_intern.h index 65282720cb2..fa4422a5e0c 100644 --- a/source/blender/windowmanager/xr/intern/wm_xr_intern.h +++ b/source/blender/windowmanager/xr/intern/wm_xr_intern.h @@ -191,12 +191,12 @@ typedef struct wmXrActionSet { ListBase active_haptic_actions; } wmXrActionSet; -/* wm_xr.c */ +/* `wm_xr.cc` */ wmXrRuntimeData *wm_xr_runtime_data_create(void); void wm_xr_runtime_data_free(wmXrRuntimeData **runtime); -/* wm_xr_session.c */ +/* `wm_xr_session.cc` */ void wm_xr_session_data_free(wmXrSessionState *state); wmWindow *wm_xr_session_root_window_or_fallback_get(const wmWindowManager *wm, @@ -226,7 +226,7 @@ void wm_xr_session_controller_data_populate(const wmXrAction *grip_action, wmXrData *xr); void wm_xr_session_controller_data_clear(wmXrSessionState *state); -/* wm_xr_draw.c */ +/* `wm_xr_draw.cc` */ void wm_xr_pose_to_mat(const GHOST_XrPose *pose, float r_mat[4][4]); void wm_xr_pose_scale_to_mat(const GHOST_XrPose *pose, float scale, float r_mat[4][4]); diff --git a/source/blender/windowmanager/xr/wm_xr.h b/source/blender/windowmanager/xr/wm_xr.h index 9046e2b0e7e..82c9b66a86e 100644 --- a/source/blender/windowmanager/xr/wm_xr.h +++ b/source/blender/windowmanager/xr/wm_xr.h @@ -17,14 +17,14 @@ struct wmXrData; typedef void (*wmXrSessionExitFn)(const wmXrData *xr_data); -/* wm_xr.c */ +/* `wm_xr.cc` */ bool wm_xr_init(wmWindowManager *wm); void wm_xr_exit(wmWindowManager *wm); void wm_xr_session_toggle(wmWindowManager *wm, wmWindow *win, wmXrSessionExitFn session_exit_fn); bool wm_xr_events_handle(wmWindowManager *wm); -/* wm_xr_operators.c */ +/* `wm_xr_operators.cc` */ void wm_xr_operatortypes_register(void); diff --git a/source/creator/creator.c b/source/creator/creator.c index 58716971174..94039025869 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -205,7 +205,7 @@ static void callback_clg_fatal(void *fp) #ifdef WITH_PYTHON_MODULE -/* Called in `bpy_interface.c` when building as a Python module. */ +/* Called in `bpy_interface.cc` when building as a Python module. */ int main_python_enter(int argc, const char **argv); void main_python_exit(void); @@ -425,7 +425,7 @@ int main(int argc, DNA_sdna_current_init(); - BKE_blender_globals_init(); /* blender.c */ + BKE_blender_globals_init(); /* `blender.cc` */ BKE_cpp_types_init(); BKE_idtype_init();