From 9d3264b4fd04ee4a6b52e0f97de3fcd3a81c1a86 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Wed, 29 Dec 2021 18:51:10 -0500 Subject: Cleanup: clang-tidy modernize-redundant-void-arg --- source/blender/blenlib/intern/mesh_intersect.cc | 4 ++-- source/blender/blenlib/intern/task_graph.cc | 2 +- source/blender/gpu/intern/gpu_shader.cc | 2 +- source/blender/gpu/intern/gpu_texture.cc | 8 ++++---- source/blender/nodes/intern/node_common.cc | 8 ++++---- source/blender/nodes/intern/node_socket.cc | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/source/blender/blenlib/intern/mesh_intersect.cc b/source/blender/blenlib/intern/mesh_intersect.cc index ab1db3f1fda..1f150137ba3 100644 --- a/source/blender/blenlib/intern/mesh_intersect.cc +++ b/source/blender/blenlib/intern/mesh_intersect.cc @@ -61,11 +61,11 @@ namespace blender::meshintersect { # ifdef PERFDEBUG -static void perfdata_init(void); +static void perfdata_init(); static void incperfcount(int countnum); static void bumpperfcount(int countnum, int amt); static void doperfmax(int maxnum, int val); -static void dump_perfdata(void); +static void dump_perfdata(); # endif /** For debugging, can disable threading in intersect code with this static constant. */ diff --git a/source/blender/blenlib/intern/task_graph.cc b/source/blender/blenlib/intern/task_graph.cc index ff7d0ecb4c4..d84857caeea 100644 --- a/source/blender/blenlib/intern/task_graph.cc +++ b/source/blender/blenlib/intern/task_graph.cc @@ -109,7 +109,7 @@ struct TaskNode { #endif }; -TaskGraph *BLI_task_graph_create(void) +TaskGraph *BLI_task_graph_create() { return new TaskGraph(); } diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc index 1b6cb196534..3f5a639d2a0 100644 --- a/source/blender/gpu/intern/gpu_shader.cc +++ b/source/blender/gpu/intern/gpu_shader.cc @@ -339,7 +339,7 @@ void GPU_shader_bind(GPUShader *gpu_shader) } } -void GPU_shader_unbind(void) +void GPU_shader_unbind() { #ifndef NDEBUG Context *ctx = Context::get(); diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc index c7e2043b790..1b8b28bf04c 100644 --- a/source/blender/gpu/intern/gpu_texture.cc +++ b/source/blender/gpu/intern/gpu_texture.cc @@ -190,7 +190,7 @@ using namespace blender::gpu; /* ------ Memory Management ------ */ -uint GPU_texture_memory_usage_get(void) +uint GPU_texture_memory_usage_get() { /* TODO(fclem): Do that inside the new Texture class. */ return 0; @@ -424,7 +424,7 @@ void GPU_texture_unbind(GPUTexture *tex_) Context::get()->state_manager->texture_unbind(tex); } -void GPU_texture_unbind_all(void) +void GPU_texture_unbind_all() { Context::get()->state_manager->texture_unbind_all(); } @@ -439,7 +439,7 @@ void GPU_texture_image_unbind(GPUTexture *tex) Context::get()->state_manager->image_unbind(unwrap(tex)); } -void GPU_texture_image_unbind_all(void) +void GPU_texture_image_unbind_all() { Context::get()->state_manager->image_unbind_all(); } @@ -613,7 +613,7 @@ void GPU_texture_get_mipmap_size(GPUTexture *tex, int lvl, int *r_size) * Override texture sampler state for one sampler unit only. * \{ */ -void GPU_samplers_update(void) +void GPU_samplers_update() { GPUBackend::get()->samplers_update(); } diff --git a/source/blender/nodes/intern/node_common.cc b/source/blender/nodes/intern/node_common.cc index 05b85ca7fdc..99bcdcbbba8 100644 --- a/source/blender/nodes/intern/node_common.cc +++ b/source/blender/nodes/intern/node_common.cc @@ -232,7 +232,7 @@ static void node_frame_init(bNodeTree *UNUSED(ntree), bNode *node) data->label_size = 20; } -void register_node_type_frame(void) +void register_node_type_frame() { /* frame type is used for all tree types, needs dynamic allocation */ bNodeType *ntype = MEM_cnew("frame node type"); @@ -261,7 +261,7 @@ static void node_reroute_init(bNodeTree *ntree, bNode *node) nodeAddStaticSocket(ntree, node, SOCK_OUT, SOCK_RGBA, PROP_NONE, "Output", "Output"); } -void register_node_type_reroute(void) +void register_node_type_reroute() { /* frame type is used for all tree types, needs dynamic allocation */ bNodeType *ntype = MEM_cnew("frame node type"); @@ -502,7 +502,7 @@ void node_group_input_update(bNodeTree *ntree, bNode *node) } } -void register_node_type_group_input(void) +void register_node_type_group_input() { /* used for all tree types, needs dynamic allocation */ bNodeType *ntype = MEM_cnew("node type"); @@ -600,7 +600,7 @@ void node_group_output_update(bNodeTree *ntree, bNode *node) } } -void register_node_type_group_output(void) +void register_node_type_group_output() { /* used for all tree types, needs dynamic allocation */ bNodeType *ntype = MEM_cnew("node type"); diff --git a/source/blender/nodes/intern/node_socket.cc b/source/blender/nodes/intern/node_socket.cc index 8e2d7e7ebe9..6a6b6e3d3cc 100644 --- a/source/blender/nodes/intern/node_socket.cc +++ b/source/blender/nodes/intern/node_socket.cc @@ -872,7 +872,7 @@ static bNodeSocketType *make_socket_type_material() return socktype; } -void register_standard_node_socket_types(void) +void register_standard_node_socket_types() { /* Draw callbacks are set in `drawnode.c` to avoid bad-level calls. */ -- cgit v1.2.3