[Bf-blender-cvs] [4067367b6c6] master: Cleanup: Clang-tidy: modernize-redundant-void-arg
Aaron Carlisle
noreply at git.blender.org
Thu Jan 6 03:44:39 CET 2022
Commit: 4067367b6c64f09be70c771180cb47eca4e341eb
Author: Aaron Carlisle
Date: Wed Jan 5 21:44:03 2022 -0500
Branches: master
https://developer.blender.org/rB4067367b6c64f09be70c771180cb47eca4e341eb
Cleanup: Clang-tidy: modernize-redundant-void-arg
===================================================================
M source/blender/draw/engines/image/image_private.hh
M source/blender/editors/space_node/node_intern.hh
M source/blender/editors/space_spreadsheet/spreadsheet_intern.hh
M source/blender/gpu/intern/gpu_backend.hh
M source/blender/gpu/intern/gpu_batch_private.hh
M source/blender/gpu/intern/gpu_context_private.hh
M source/blender/gpu/intern/gpu_framebuffer_private.hh
M source/blender/gpu/intern/gpu_immediate_private.hh
M source/blender/gpu/intern/gpu_index_buffer_private.hh
M source/blender/gpu/intern/gpu_platform_private.hh
M source/blender/gpu/intern/gpu_query.hh
M source/blender/gpu/intern/gpu_shader_interface.hh
M source/blender/gpu/intern/gpu_shader_private.hh
M source/blender/gpu/intern/gpu_state_private.hh
M source/blender/gpu/intern/gpu_texture_private.hh
M source/blender/gpu/intern/gpu_uniform_buffer_private.hh
M source/blender/gpu/intern/gpu_vertex_buffer_private.hh
M source/blender/gpu/opengl/gl_backend.hh
M source/blender/gpu/opengl/gl_batch.hh
M source/blender/gpu/opengl/gl_context.hh
M source/blender/gpu/opengl/gl_debug.hh
M source/blender/gpu/opengl/gl_drawlist.hh
M source/blender/gpu/opengl/gl_framebuffer.hh
M source/blender/gpu/opengl/gl_immediate.hh
M source/blender/gpu/opengl/gl_index_buffer.hh
M source/blender/gpu/opengl/gl_query.hh
M source/blender/gpu/opengl/gl_shader.hh
M source/blender/gpu/opengl/gl_state.hh
M source/blender/gpu/opengl/gl_texture.hh
M source/blender/gpu/opengl/gl_uniform_buffer.hh
M source/blender/gpu/opengl/gl_vertex_buffer.hh
===================================================================
diff --git a/source/blender/draw/engines/image/image_private.hh b/source/blender/draw/engines/image/image_private.hh
index a62cd882e40..fc3ce72d0aa 100644
--- a/source/blender/draw/engines/image/image_private.hh
+++ b/source/blender/draw/engines/image/image_private.hh
@@ -190,7 +190,7 @@ class AbstractDrawingMode {
/* image_shader.c */
GPUShader *IMAGE_shader_image_get(bool is_tiled_image);
-void IMAGE_shader_library_ensure(void);
-void IMAGE_shader_free(void);
+void IMAGE_shader_library_ensure();
+void IMAGE_shader_free();
} // namespace blender::draw::image_engine
diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh
index 52dde965114..f3183acda50 100644
--- a/source/blender/editors/space_node/node_intern.hh
+++ b/source/blender/editors/space_node/node_intern.hh
@@ -138,7 +138,7 @@ blender::float2 node_from_view(const bNode &node, const blender::float2 &co);
void node_toolbar_register(ARegionType *art);
-void node_operatortypes(void);
+void node_operatortypes();
void node_keymap(wmKeyConfig *keyconf);
void node_deselect_all(SpaceNode &snode);
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh b/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh
index e62835d5792..64672b919cd 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh
@@ -39,7 +39,7 @@ struct SpaceSpreadsheet_Runtime {
struct bContext;
struct ARegionType;
-void spreadsheet_operatortypes(void);
+void spreadsheet_operatortypes();
void spreadsheet_update_context_path(const bContext *C);
Object *spreadsheet_get_object_eval(const SpaceSpreadsheet *sspreadsheet,
const Depsgraph *depsgraph);
diff --git a/source/blender/gpu/intern/gpu_backend.hh b/source/blender/gpu/intern/gpu_backend.hh
index 73792215569..d472e48776e 100644
--- a/source/blender/gpu/intern/gpu_backend.hh
+++ b/source/blender/gpu/intern/gpu_backend.hh
@@ -42,24 +42,24 @@ class VertBuf;
class GPUBackend {
public:
- virtual ~GPUBackend(){};
+ virtual ~GPUBackend()= default;;
- static GPUBackend *get(void);
+ static GPUBackend *get();
- virtual void samplers_update(void) = 0;
+ virtual void samplers_update() = 0;
virtual void compute_dispatch(int groups_x_len, int groups_y_len, int groups_z_len) = 0;
virtual Context *context_alloc(void *ghost_window) = 0;
- virtual Batch *batch_alloc(void) = 0;
+ virtual Batch *batch_alloc() = 0;
virtual DrawList *drawlist_alloc(int list_length) = 0;
virtual FrameBuffer *framebuffer_alloc(const char *name) = 0;
- virtual IndexBuf *indexbuf_alloc(void) = 0;
- virtual QueryPool *querypool_alloc(void) = 0;
+ virtual IndexBuf *indexbuf_alloc() = 0;
+ virtual QueryPool *querypool_alloc() = 0;
virtual Shader *shader_alloc(const char *name) = 0;
virtual Texture *texture_alloc(const char *name) = 0;
virtual UniformBuf *uniformbuf_alloc(int size, const char *name) = 0;
- virtual VertBuf *vertbuf_alloc(void) = 0;
+ virtual VertBuf *vertbuf_alloc() = 0;
};
} // namespace gpu
diff --git a/source/blender/gpu/intern/gpu_batch_private.hh b/source/blender/gpu/intern/gpu_batch_private.hh
index eed96864f20..4c2f221e9b6 100644
--- a/source/blender/gpu/intern/gpu_batch_private.hh
+++ b/source/blender/gpu/intern/gpu_batch_private.hh
@@ -47,7 +47,7 @@ class Batch : public GPUBatch {
virtual void draw(int v_first, int v_count, int i_first, int i_count) = 0;
/* Convenience casts. */
- IndexBuf *elem_(void) const
+ IndexBuf *elem_() const
{
return unwrap(elem);
}
diff --git a/source/blender/gpu/intern/gpu_context_private.hh b/source/blender/gpu/intern/gpu_context_private.hh
index 82753b44c51..d99555b3bf5 100644
--- a/source/blender/gpu/intern/gpu_context_private.hh
+++ b/source/blender/gpu/intern/gpu_context_private.hh
@@ -75,22 +75,22 @@ class Context {
Context();
virtual ~Context();
- static Context *get(void);
+ static Context *get();
- virtual void activate(void) = 0;
- virtual void deactivate(void) = 0;
+ virtual void activate() = 0;
+ virtual void deactivate() = 0;
/* Will push all pending commands to the GPU. */
- virtual void flush(void) = 0;
+ virtual void flush() = 0;
/* Will wait until the GPU has finished executing all command. */
- virtual void finish(void) = 0;
+ virtual void finish() = 0;
virtual void memory_statistics_get(int *total_mem, int *free_mem) = 0;
virtual void debug_group_begin(const char *, int){};
- virtual void debug_group_end(void){};
+ virtual void debug_group_end(){};
- bool is_active_on_thread(void);
+ bool is_active_on_thread();
};
/* Syntactic sugar. */
diff --git a/source/blender/gpu/intern/gpu_framebuffer_private.hh b/source/blender/gpu/intern/gpu_framebuffer_private.hh
index 2b00c239af4..a936e889e57 100644
--- a/source/blender/gpu/intern/gpu_framebuffer_private.hh
+++ b/source/blender/gpu/intern/gpu_framebuffer_private.hh
@@ -188,24 +188,24 @@ class FrameBuffer {
copy_v4_v4_int(r_scissor, scissor_);
}
- inline bool scissor_test_get(void) const
+ inline bool scissor_test_get() const
{
return scissor_test_;
}
- inline void viewport_reset(void)
+ inline void viewport_reset()
{
int viewport_rect[4] = {0, 0, width_, height_};
viewport_set(viewport_rect);
}
- inline void scissor_reset(void)
+ inline void scissor_reset()
{
int scissor_rect[4] = {0, 0, width_, height_};
scissor_set(scissor_rect);
}
- inline GPUTexture *depth_tex(void) const
+ inline GPUTexture *depth_tex() const
{
if (attachments_[GPU_FB_DEPTH_ATTACHMENT].tex) {
return attachments_[GPU_FB_DEPTH_ATTACHMENT].tex;
diff --git a/source/blender/gpu/intern/gpu_immediate_private.hh b/source/blender/gpu/intern/gpu_immediate_private.hh
index 382f70eeec4..bc1ae403c52 100644
--- a/source/blender/gpu/intern/gpu_immediate_private.hh
+++ b/source/blender/gpu/intern/gpu_immediate_private.hh
@@ -68,11 +68,11 @@ class Immediate {
Immediate(){};
virtual ~Immediate(){};
- virtual uchar *begin(void) = 0;
- virtual void end(void) = 0;
+ virtual uchar *begin() = 0;
+ virtual void end() = 0;
};
} // namespace blender::gpu
-void immActivate(void);
-void immDeactivate(void);
+void immActivate();
+void immDeactivate();
diff --git a/source/blender/gpu/intern/gpu_index_buffer_private.hh b/source/blender/gpu/intern/gpu_index_buffer_private.hh
index adc0145f867..4bb46689727 100644
--- a/source/blender/gpu/intern/gpu_index_buffer_private.hh
+++ b/source/blender/gpu/intern/gpu_index_buffer_private.hh
@@ -77,22 +77,22 @@ class IndexBuf {
void init_subrange(IndexBuf *elem_src, uint start, uint length);
void init_build_on_device(uint index_len);
- uint32_t index_len_get(void) const
+ uint32_t index_len_get() const
{
return index_len_;
}
/* Return size in byte of the drawable data buffer range. Actual buffer size might be bigger. */
- size_t size_get(void) const
+ size_t size_get() const
{
return index_len_ * to_bytesize(index_type_);
};
- bool is_init(void) const
+ bool is_init() const
{
return is_init_;
};
- virtual void upload_data(void) = 0;
+ virtual void upload_data() = 0;
virtual void bind_as_ssbo(uint binding) = 0;
diff --git a/source/blender/gpu/intern/gpu_platform_private.hh b/source/blender/gpu/intern/gpu_platform_private.hh
index f823269ab54..faae7c48588 100644
--- a/source/blender/gpu/intern/gpu_platform_private.hh
+++ b/source/blender/gpu/intern/gpu_platform_private.hh
@@ -49,7 +49,7 @@ class GPUPlatformGlobal {
const char *renderer_str,
const char *version_str);
- void clear(void);
+ void clear();
};
extern GPUPlatformGlobal GPG;
diff --git a/source/blender/gpu/intern/gpu_query.hh b/source/blender/gpu/intern/gpu_query.hh
index 0356e145b00..a004c355c8f 100644
--- a/source/blender/gpu/intern/gpu_query.hh
+++ b/source/blender/gpu/intern/gpu_query.hh
@@ -45,8 +45,8 @@ class QueryPool {
* Will start and end the query at this index inside the pool.
* The pool will resize automatically.
*/
- virtual void begin_query(void) = 0;
- virtual void end_query(void) = 0;
+ virtual void begin_query() = 0;
+ virtual void end_query() = 0;
/**
* Must be fed with a buffer large enough to contain all the queries issued.
diff --git a/source/blender/gpu/intern/gpu_shader_interface.hh b/source/blender/gpu/intern/gpu_shader_interface.hh
index 12a7ffabcc6..a6f0e30b715 100644
--- a/source/blender/gpu/intern/gpu_shader_interface.hh
+++ b/source/blender/gpu/intern/gpu_shader_interface.hh
@@ -74,7 +74,7 @@ class ShaderInterface {
ShaderInterface();
virtual ~ShaderInterface();
- void debug_print(void);
+ void debug_print();
inline const ShaderInput *attr_get(const char *name) const
{
@@ -133,7 +133,7 @@ class ShaderInterface {
/**
* Finalize interface construction by sorting the #ShaderInputs for faster lookups.
*/
- void sort_inputs(void);
+ void sort_inputs();
private:
inline const ShaderInput *input_lookup(const ShaderInput *const inputs,
diff --git a/source/blender/gpu/intern/gpu_shader_private.hh b/source/blender/gpu/intern/gpu_shader_private.hh
index 65720e457d8..8bd1115c731 100644
--- a/source/blender/gpu/intern/gpu_shader_private.hh
+++ b/source/blender/gpu/intern/gpu_shader_private.hh
@@ -53,15 +53,15 @@ class Shader {
virtual void geometry_shader_from_glsl(MutableSpan<const char *> sources) = 0;
virtual void fragment_shader_from_glsl(MutableSpan<const char *> sources) = 0;
virtual void compute_shader_from_glsl(MutableSpan<const char *> sources) = 0;
- virtual bool finalize(void) = 0;
+ virtual bool finalize() = 0;
virtual void transform_feedback_names_set(Span<const char *> name_list,
const eGPUShaderTFBType geom_type) = 0;
virtual bool transform_feedback_enable(GPUVertBuf *) = 0;
- virtual void transform_feedback_disable(void) = 0;
+ virtual void transform_feedback_disable() = 0;
- virtual void bind(void) = 0;
- virtual void unbind(void) = 0;
+ virtual void bind() = 0;
+ virtu
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list