Cleanup: Nodes: clang-tidy modernize-redundant-void-arg
This commit is contained in:
parent
2964c4e1d0
commit
47b36ddcce
|
@ -113,8 +113,7 @@ static bool geometry_node_tree_socket_type_valid(bNodeTreeType *UNUSED(ntreetype
|
|||
SOCK_MATERIAL);
|
||||
}
|
||||
|
||||
void register_node_tree_type_geo(void)
|
||||
{
|
||||
void register_node_tree_type_geo(){
|
||||
bNodeTreeType *tt = ntreeType_Geometry = static_cast<bNodeTreeType *>(
|
||||
MEM_callocN(sizeof(bNodeTreeType), "geometry node tree type"));
|
||||
tt->type = NTREE_GEOMETRY;
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
#include "node_common.h"
|
||||
#include "node_geometry_util.hh"
|
||||
|
||||
void register_node_type_geo_group(void)
|
||||
{
|
||||
void register_node_type_geo_group(){
|
||||
static bNodeType ntype;
|
||||
|
||||
node_type_base_custom(&ntype, "GeometryNodeGroup", "Group", NODE_CLASS_GROUP, 0);
|
||||
|
|
|
@ -410,8 +410,7 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
|
||||
} // namespace blender::nodes::node_geo_image_texture_cc
|
||||
|
||||
void register_node_type_geo_image_texture(void)
|
||||
{
|
||||
void register_node_type_geo_image_texture(){
|
||||
namespace file_ns = blender::nodes::node_geo_image_texture_cc;
|
||||
|
||||
static bNodeType ntype;
|
||||
|
|
|
@ -75,8 +75,7 @@ static void sh_node_clamp_build_multi_function(blender::nodes::NodeMultiFunction
|
|||
}
|
||||
}
|
||||
|
||||
void register_node_type_sh_clamp(void)
|
||||
{
|
||||
void register_node_type_sh_clamp(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_CLAMP, "Clamp", NODE_CLASS_CONVERTER, 0);
|
||||
|
|
|
@ -152,8 +152,7 @@ static void sh_node_curve_vec_build_multi_function(
|
|||
builder.construct_and_set_matching_fn<CurveVecFunction>(*cumap);
|
||||
}
|
||||
|
||||
void register_node_type_sh_curve_vec(void)
|
||||
{
|
||||
void register_node_type_sh_curve_vec(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_CURVE_VEC, "Vector Curves", NODE_CLASS_OP_VECTOR, 0);
|
||||
|
@ -329,8 +328,7 @@ static void sh_node_curve_rgb_build_multi_function(
|
|||
builder.construct_and_set_matching_fn<CurveRGBFunction>(*cumap);
|
||||
}
|
||||
|
||||
void register_node_type_sh_curve_rgb(void)
|
||||
{
|
||||
void register_node_type_sh_curve_rgb(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_CURVE_RGB, "RGB Curves", NODE_CLASS_OP_COLOR, 0);
|
||||
|
@ -473,8 +471,7 @@ static void sh_node_curve_float_build_multi_function(
|
|||
builder.construct_and_set_matching_fn<CurveFloatFunction>(*cumap);
|
||||
}
|
||||
|
||||
void register_node_type_sh_curve_float(void)
|
||||
{
|
||||
void register_node_type_sh_curve_float(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_CURVE_FLOAT, "Float Curve", NODE_CLASS_CONVERTER, 0);
|
||||
|
|
|
@ -307,8 +307,7 @@ static void sh_node_map_range_build_multi_function(
|
|||
}
|
||||
}
|
||||
|
||||
void register_node_type_sh_map_range(void)
|
||||
{
|
||||
void register_node_type_sh_map_range(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_MAP_RANGE, "Map Range", NODE_CLASS_CONVERTER, 0);
|
||||
|
|
|
@ -161,8 +161,7 @@ static void sh_node_math_build_multi_function(blender::nodes::NodeMultiFunctionB
|
|||
}
|
||||
}
|
||||
|
||||
void register_node_type_sh_math(void)
|
||||
{
|
||||
void register_node_type_sh_math(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_MATH, "Math", NODE_CLASS_CONVERTER, 0);
|
||||
|
|
|
@ -183,8 +183,7 @@ static void sh_node_mix_rgb_build_multi_function(blender::nodes::NodeMultiFuncti
|
|||
builder.construct_and_set_matching_fn<MixRGBFunction>(clamp, mix_type);
|
||||
}
|
||||
|
||||
void register_node_type_sh_mix_rgb(void)
|
||||
{
|
||||
void register_node_type_sh_mix_rgb(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_MIX_RGB, "Mix", NODE_CLASS_OP_COLOR, 0);
|
||||
|
|
|
@ -172,8 +172,7 @@ static void sh_node_valtorgb_build_multi_function(
|
|||
builder.construct_and_set_matching_fn<ColorBandFunction>(*color_band);
|
||||
}
|
||||
|
||||
void register_node_type_sh_valtorgb(void)
|
||||
{
|
||||
void register_node_type_sh_valtorgb(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTER, 0);
|
||||
|
@ -222,8 +221,7 @@ static int gpu_shader_rgbtobw(GPUMaterial *mat,
|
|||
return GPU_stack_link(mat, node, "rgbtobw", in, out);
|
||||
}
|
||||
|
||||
void register_node_type_sh_rgbtobw(void)
|
||||
{
|
||||
void register_node_type_sh_rgbtobw(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTER, 0);
|
||||
|
|
|
@ -103,8 +103,7 @@ static void sh_node_seprgb_build_multi_function(blender::nodes::NodeMultiFunctio
|
|||
builder.set_matching_fn(fn);
|
||||
}
|
||||
|
||||
void register_node_type_sh_seprgb(void)
|
||||
{
|
||||
void register_node_type_sh_seprgb(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_SEPRGB, "Separate RGB", NODE_CLASS_CONVERTER, 0);
|
||||
|
@ -163,8 +162,7 @@ static void sh_node_combrgb_build_multi_function(blender::nodes::NodeMultiFuncti
|
|||
builder.set_matching_fn(fn);
|
||||
}
|
||||
|
||||
void register_node_type_sh_combrgb(void)
|
||||
{
|
||||
void register_node_type_sh_combrgb(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_COMBRGB, "Combine RGB", NODE_CLASS_CONVERTER, 0);
|
||||
|
|
|
@ -88,8 +88,7 @@ static void sh_node_sepxyz_build_multi_function(blender::nodes::NodeMultiFunctio
|
|||
builder.set_matching_fn(separate_fn);
|
||||
}
|
||||
|
||||
void register_node_type_sh_sepxyz(void)
|
||||
{
|
||||
void register_node_type_sh_sepxyz(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_SEPXYZ, "Separate XYZ", NODE_CLASS_CONVERTER, 0);
|
||||
|
@ -129,8 +128,7 @@ static void sh_node_combxyz_build_multi_function(blender::nodes::NodeMultiFuncti
|
|||
builder.set_matching_fn(fn);
|
||||
}
|
||||
|
||||
void register_node_type_sh_combxyz(void)
|
||||
{
|
||||
void register_node_type_sh_combxyz(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_COMBXYZ, "Combine XYZ", NODE_CLASS_CONVERTER, 0);
|
||||
|
|
|
@ -268,8 +268,7 @@ static void sh_node_brick_build_multi_function(blender::nodes::NodeMultiFunction
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_brick(void)
|
||||
{
|
||||
void register_node_type_sh_tex_brick(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_BRICK, "Brick Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -123,8 +123,7 @@ static void sh_node_tex_checker_build_multi_function(
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_checker(void)
|
||||
{
|
||||
void register_node_type_sh_tex_checker(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_CHECKER, "Checker Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -160,8 +160,7 @@ static void sh_node_gradient_tex_build_multi_function(
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_gradient(void)
|
||||
{
|
||||
void register_node_type_sh_tex_gradient(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_GRADIENT, "Gradient Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -174,8 +174,7 @@ static int node_shader_gpu_tex_image(GPUMaterial *mat,
|
|||
}
|
||||
|
||||
/* node type definition */
|
||||
void register_node_type_sh_tex_image(void)
|
||||
{
|
||||
void register_node_type_sh_tex_image(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_TEX_IMAGE, "Image Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -181,8 +181,7 @@ static void sh_node_magic_tex_build_multi_function(
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_magic(void)
|
||||
{
|
||||
void register_node_type_sh_tex_magic(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_MAGIC, "Magic Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -533,8 +533,7 @@ static void sh_node_musgrave_build_multi_function(
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_musgrave(void)
|
||||
{
|
||||
void register_node_type_sh_tex_musgrave(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_MUSGRAVE, "Musgrave Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -250,8 +250,7 @@ static void sh_node_noise_build_multi_function(blender::nodes::NodeMultiFunction
|
|||
} // namespace blender::nodes
|
||||
|
||||
/* node type definition */
|
||||
void register_node_type_sh_tex_noise(void)
|
||||
{
|
||||
void register_node_type_sh_tex_noise(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_NOISE, "Noise Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -1329,8 +1329,7 @@ static void sh_node_voronoi_build_multi_function(blender::nodes::NodeMultiFuncti
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_voronoi(void)
|
||||
{
|
||||
void register_node_type_sh_tex_voronoi(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_VORONOI, "Voronoi Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -218,8 +218,7 @@ static void sh_node_wave_tex_build_multi_function(
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_wave(void)
|
||||
{
|
||||
void register_node_type_sh_tex_wave(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_TEX_WAVE, "Wave Texture", NODE_CLASS_TEXTURE, 0);
|
||||
|
|
|
@ -191,8 +191,7 @@ static void sh_node_noise_build_multi_function(blender::nodes::NodeMultiFunction
|
|||
|
||||
} // namespace blender::nodes
|
||||
|
||||
void register_node_type_sh_tex_white_noise(void)
|
||||
{
|
||||
void register_node_type_sh_tex_white_noise(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(
|
||||
|
|
|
@ -49,8 +49,7 @@ static void sh_node_value_build_multi_function(blender::nodes::NodeMultiFunction
|
|||
builder.construct_and_set_matching_fn<blender::fn::CustomMF_Constant<float>>(value->value);
|
||||
}
|
||||
|
||||
void register_node_type_sh_value(void)
|
||||
{
|
||||
void register_node_type_sh_value(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VALUE, "Value", NODE_CLASS_INPUT, 0);
|
||||
|
|
|
@ -279,8 +279,7 @@ static void sh_node_vector_math_build_multi_function(
|
|||
builder.set_matching_fn(fn);
|
||||
}
|
||||
|
||||
void register_node_type_sh_vect_math(void)
|
||||
{
|
||||
void register_node_type_sh_vect_math(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VECTOR_MATH, "Vector Math", NODE_CLASS_OP_VECTOR, 0);
|
||||
|
|
|
@ -205,8 +205,7 @@ static void node_shader_update_vector_rotate(bNodeTree *ntree, bNode *node)
|
|||
ntree, sock_angle, !ELEM(node->custom1, NODE_VECTOR_ROTATE_TYPE_EULER_XYZ));
|
||||
}
|
||||
|
||||
void register_node_type_sh_vector_rotate(void)
|
||||
{
|
||||
void register_node_type_sh_vector_rotate(){
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VECTOR_ROTATE, "Vector Rotate", NODE_CLASS_OP_VECTOR, 0);
|
||||
|
|
Loading…
Reference in New Issue