[Bf-blender-cvs] [c1279768a77] master: Cleanup: Clang-Tidy modernize-redundant-void-arg

Aaron Carlisle noreply at git.blender.org
Wed Dec 8 06:31:29 CET 2021


Commit: c1279768a77d093e1747f4954c9c0a959feefdf0
Author: Aaron Carlisle
Date:   Wed Dec 8 00:31:20 2021 -0500
Branches: master
https://developer.blender.org/rBc1279768a77d093e1747f4954c9c0a959feefdf0

Cleanup: Clang-Tidy modernize-redundant-void-arg

===================================================================

M	intern/guardedalloc/intern/leak_detector.cc
M	intern/libmv/libmv/multiview/fundamental.cc
M	intern/libmv/libmv/multiview/homography.cc
M	intern/opencolorio/fallback_impl.cc
M	intern/opencolorio/ocio_capi.cc
M	intern/opensubdiv/internal/base/opensubdiv_capi.cc
M	intern/opensubdiv/stub/opensubdiv_stub.cc
M	source/blender/blenkernel/intern/asset.cc
M	source/blender/blenkernel/intern/bvhutils.cc
M	source/blender/blenkernel/intern/cryptomatte.cc
M	source/blender/blenkernel/intern/icons.cc
M	source/blender/blenkernel/intern/node.cc
M	source/blender/blenkernel/intern/object.cc
M	source/blender/blenlib/intern/mesh_intersect.cc
M	source/blender/blenlib/intern/rand.cc
M	source/blender/blenlib/intern/threads.cc
M	source/blender/blenlib/intern/uuid.cc
M	source/blender/depsgraph/intern/depsgraph_type.cc
M	source/blender/draw/intern/draw_texture_pool.cc
M	source/blender/editors/animation/keyframes_keylist.cc
M	source/blender/editors/asset/intern/asset_ops.cc
M	source/blender/editors/interface/interface_region_search.cc
M	source/blender/editors/interface/interface_template_list.cc
M	source/blender/editors/space_node/drawnode.cc
M	source/blender/editors/space_node/node_draw.cc
M	source/blender/editors/space_node/node_ops.cc
M	source/blender/editors/space_node/space_node.cc
M	source/blender/editors/space_spreadsheet/space_spreadsheet.cc
M	source/blender/editors/util/ed_util_ops.cc
M	source/blender/gpu/intern/gpu_batch.cc
M	source/blender/gpu/intern/gpu_capabilities.cc
M	source/blender/gpu/intern/gpu_context.cc
M	source/blender/gpu/intern/gpu_debug.cc
M	source/blender/gpu/intern/gpu_framebuffer.cc
M	source/blender/gpu/intern/gpu_index_buffer.cc
M	source/blender/gpu/intern/gpu_matrix.cc
M	source/blender/gpu/intern/gpu_platform.cc
M	source/blender/gpu/intern/gpu_select_sample_query.cc
M	source/blender/gpu/intern/gpu_uniform_buffer.cc
M	source/blender/io/usd/intern/usd_capi_export.cc

===================================================================

diff --git a/intern/guardedalloc/intern/leak_detector.cc b/intern/guardedalloc/intern/leak_detector.cc
index 03d54f2e776..d3a3449049d 100644
--- a/intern/guardedalloc/intern/leak_detector.cc
+++ b/intern/guardedalloc/intern/leak_detector.cc
@@ -65,7 +65,7 @@ class MemLeakPrinter {
 };
 }  // namespace
 
-void MEM_init_memleak_detection(void)
+void MEM_init_memleak_detection()
 {
   /**
    * This variable is constructed when this function is first called. This should happen as soon as
@@ -84,7 +84,7 @@ void MEM_use_memleak_detection(bool enabled)
   ignore_memleak = !enabled;
 }
 
-void MEM_enable_fail_on_memleak(void)
+void MEM_enable_fail_on_memleak()
 {
   fail_on_memleak = true;
 }
diff --git a/intern/libmv/libmv/multiview/fundamental.cc b/intern/libmv/libmv/multiview/fundamental.cc
index c8c94ecd7bb..2ad78369761 100644
--- a/intern/libmv/libmv/multiview/fundamental.cc
+++ b/intern/libmv/libmv/multiview/fundamental.cc
@@ -411,7 +411,7 @@ void FundamentalToEssential(const Mat3& F, Mat3* E) {
 
 // Default settings for fundamental estimation which should be suitable
 // for a wide range of use cases.
-EstimateFundamentalOptions::EstimateFundamentalOptions(void)
+EstimateFundamentalOptions::EstimateFundamentalOptions()
     : max_num_iterations(50), expected_average_symmetric_distance(1e-16) {
 }
 
diff --git a/intern/libmv/libmv/multiview/homography.cc b/intern/libmv/libmv/multiview/homography.cc
index 2db2c0cd3d5..30b8d982b86 100644
--- a/intern/libmv/libmv/multiview/homography.cc
+++ b/intern/libmv/libmv/multiview/homography.cc
@@ -157,7 +157,7 @@ bool Homography2DFromCorrespondencesLinear(const Mat& x1,
 
 // Default settings for homography estimation which should be suitable
 // for a wide range of use cases.
-EstimateHomographyOptions::EstimateHomographyOptions(void)
+EstimateHomographyOptions::EstimateHomographyOptions()
     : use_normalization(true),
       max_num_iterations(50),
       expected_average_symmetric_distance(1e-16) {
diff --git a/intern/opencolorio/fallback_impl.cc b/intern/opencolorio/fallback_impl.cc
index 9bbc9843e9d..42a2b5bf3b6 100644
--- a/intern/opencolorio/fallback_impl.cc
+++ b/intern/opencolorio/fallback_impl.cc
@@ -123,7 +123,7 @@ struct FallbackProcessor {
   MEM_CXX_CLASS_ALLOC_FUNCS("FallbackProcessor");
 };
 
-OCIO_ConstConfigRcPtr *FallbackImpl::getCurrentConfig(void)
+OCIO_ConstConfigRcPtr *FallbackImpl::getCurrentConfig()
 {
   return CONFIG_DEFAULT;
 }
@@ -132,7 +132,7 @@ void FallbackImpl::setCurrentConfig(const OCIO_ConstConfigRcPtr * /*config*/)
 {
 }
 
-OCIO_ConstConfigRcPtr *FallbackImpl::configCreateFromEnv(void)
+OCIO_ConstConfigRcPtr *FallbackImpl::configCreateFromEnv()
 {
   return NULL;
 }
@@ -502,12 +502,12 @@ void FallbackImpl::OCIO_PackedImageDescRelease(OCIO_PackedImageDesc *id)
   MEM_freeN(id);
 }
 
-const char *FallbackImpl::getVersionString(void)
+const char *FallbackImpl::getVersionString()
 {
   return "fallback";
 }
 
-int FallbackImpl::getVersionHex(void)
+int FallbackImpl::getVersionHex()
 {
   return 0;
 }
diff --git a/intern/opencolorio/ocio_capi.cc b/intern/opencolorio/ocio_capi.cc
index 49231dee501..f4071edf6e5 100644
--- a/intern/opencolorio/ocio_capi.cc
+++ b/intern/opencolorio/ocio_capi.cc
@@ -23,7 +23,7 @@
 
 static IOCIOImpl *impl = NULL;
 
-void OCIO_init(void)
+void OCIO_init()
 {
 #ifdef WITH_OCIO
   impl = new OCIOImpl();
@@ -32,18 +32,18 @@ void OCIO_init(void)
 #endif
 }
 
-void OCIO_exit(void)
+void OCIO_exit()
 {
   delete impl;
   impl = NULL;
 }
 
-OCIO_ConstConfigRcPtr *OCIO_getCurrentConfig(void)
+OCIO_ConstConfigRcPtr *OCIO_getCurrentConfig()
 {
   return impl->getCurrentConfig();
 }
 
-OCIO_ConstConfigRcPtr *OCIO_configCreateFallback(void)
+OCIO_ConstConfigRcPtr *OCIO_configCreateFallback()
 {
   delete impl;
   impl = new FallbackImpl();
@@ -56,7 +56,7 @@ void OCIO_setCurrentConfig(const OCIO_ConstConfigRcPtr *config)
   impl->setCurrentConfig(config);
 }
 
-OCIO_ConstConfigRcPtr *OCIO_configCreateFromEnv(void)
+OCIO_ConstConfigRcPtr *OCIO_configCreateFromEnv()
 {
   return impl->configCreateFromEnv();
 }
@@ -308,22 +308,22 @@ bool OCIO_gpuDisplayShaderBind(OCIO_ConstConfigRcPtr *config,
                                     use_overlay);
 }
 
-void OCIO_gpuDisplayShaderUnbind(void)
+void OCIO_gpuDisplayShaderUnbind()
 {
   impl->gpuDisplayShaderUnbind();
 }
 
-void OCIO_gpuCacheFree(void)
+void OCIO_gpuCacheFree()
 {
   impl->gpuCacheFree();
 }
 
-const char *OCIO_getVersionString(void)
+const char *OCIO_getVersionString()
 {
   return impl->getVersionString();
 }
 
-int OCIO_getVersionHex(void)
+int OCIO_getVersionHex()
 {
   return impl->getVersionHex();
 }
diff --git a/intern/opensubdiv/internal/base/opensubdiv_capi.cc b/intern/opensubdiv/internal/base/opensubdiv_capi.cc
index 430acfd4497..85f8120c76b 100644
--- a/intern/opensubdiv/internal/base/opensubdiv_capi.cc
+++ b/intern/opensubdiv/internal/base/opensubdiv_capi.cc
@@ -33,17 +33,17 @@ using blender::opensubdiv::GLSLTransformFeedbackDeviceContext;
 using blender::opensubdiv::OpenCLDeviceContext;
 using blender::opensubdiv::OpenMPDeviceContext;
 
-void openSubdiv_init(void)
+void openSubdiv_init()
 {
   // Ensure all OpenGL strings are cached.
   openSubdiv_getAvailableEvaluators();
 }
 
-void openSubdiv_cleanup(void)
+void openSubdiv_cleanup()
 {
 }
 
-int openSubdiv_getAvailableEvaluators(void)
+int openSubdiv_getAvailableEvaluators()
 {
   int flags = OPENSUBDIV_EVALUATOR_CPU;
 
@@ -70,7 +70,7 @@ int openSubdiv_getAvailableEvaluators(void)
   return flags;
 }
 
-int openSubdiv_getVersionHex(void)
+int openSubdiv_getVersionHex()
 {
 #if defined(OPENSUBDIV_VERSION_NUMBER)
   return OPENSUBDIV_VERSION_NUMBER;
diff --git a/intern/opensubdiv/stub/opensubdiv_stub.cc b/intern/opensubdiv/stub/opensubdiv_stub.cc
index 8c0b204d41a..24bdcbc79ff 100644
--- a/intern/opensubdiv/stub/opensubdiv_stub.cc
+++ b/intern/opensubdiv/stub/opensubdiv_stub.cc
@@ -20,20 +20,20 @@
 
 #include <cstddef>
 
-void openSubdiv_init(void)
+void openSubdiv_init()
 {
 }
 
-void openSubdiv_cleanup(void)
+void openSubdiv_cleanup()
 {
 }
 
-int openSubdiv_getAvailableEvaluators(void)
+int openSubdiv_getAvailableEvaluators()
 {
   return 0;
 }
 
-int openSubdiv_getVersionHex(void)
+int openSubdiv_getVersionHex()
 {
   return 0;
 }
diff --git a/source/blender/blenkernel/intern/asset.cc b/source/blender/blenkernel/intern/asset.cc
index eaf06c99f17..e5509b09e20 100644
--- a/source/blender/blenkernel/intern/asset.cc
+++ b/source/blender/blenkernel/intern/asset.cc
@@ -39,7 +39,7 @@
 
 using namespace blender;
 
-AssetMetaData *BKE_asset_metadata_create(void)
+AssetMetaData *BKE_asset_metadata_create()
 {
   AssetMetaData *asset_data = (AssetMetaData *)MEM_callocN(sizeof(*asset_data), __func__);
   memcpy(asset_data, DNA_struct_default_get(AssetMetaData), sizeof(*asset_data));
diff --git a/source/blender/blenkernel/intern/bvhutils.cc b/source/blender/blenkernel/intern/bvhutils.cc
index db4782e3952..b447d35b37b 100644
--- a/source/blender/blenkernel/intern/bvhutils.cc
+++ b/source/blender/blenkernel/intern/bvhutils.cc
@@ -125,7 +125,7 @@ bool bvhcache_has_tree(const BVHCache *bvh_cache, const BVHTree *tree)
   return false;
 }
 
-BVHCache *bvhcache_init(void)
+BVHCache *bvhcache_init()
 {
   BVHCache *cache = (BVHCache *)MEM_callocN(sizeof(BVHCache), __func__);
   BLI_mutex_init(&cache->mutex);
diff --git a/source/blender/blenkernel/intern/cryptomatte.cc b/source/blender/blenkernel/intern/cryptomatte.cc
index 02fba2aa5a4..d532ed9e4b2 100644
--- a/source/blender/blenkernel/intern/cryptomatte.cc
+++ b/source/blender/blenkernel/intern/cryptomatte.cc
@@ -139,7 +139,7 @@ std::optional<std::string> CryptomatteSession::operator[](float encoded_hash) co
   return std::nullopt;
 }
 
-CryptomatteSession *BKE_cryptomatte_init(void)
+CryptomatteSession *BKE_cryptomatte_init()
 {
   CryptomatteSession *session = new CryptomatteSession();
   return session;
diff --git a/source/blender/blenkernel/intern/icons.cc b/source/blender/blenkernel/intern/icons.cc
index 7df8e0e1fc0..c7cdf81deaf 100644
--- a/source/blender/blenkernel/intern/icons.cc
+++ b/source/blender/blenkernel/intern/icons.cc
@@ -210,7 +210,7 @@ void BKE_icons_init(int first_dyn_id)
   }
 }
 
-void BKE_icons_free(void)
+void BKE_icons_free()
 {
   BLI_assert(BLI_thread_is_main());
 
@@ -227,7 +227,7 @@ void BKE_icons_free(void)
   BLI_linklist_lockfree_free(&g_icon_delete_queue, MEM_freeN);
 }
 
-void BKE_icons_deferred_free(void)
+void BKE_icons_deferred_free()
 {
   std::scoped_lock lock(gIconMutex);
 
@@ -271,7 +271,7 @@ static PreviewImage *previewimg_deferred_create(const char *path, int source)
   return prv;
 }
 
-PreviewImage *BKE_previewimg_create(void)
+PreviewImage *BKE_previewimg_create()
 {
   return previewimg_create_ex(0);
 }
diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc
index b1de2c5a848..4b4c87de9d4 100644
--- a/source/blender/blenkernel/intern/node.cc
+++ b/source/blender/blenkernel/intern/node.cc
@@ -1365,7 +1365,7 @@ bool ntreeIsRegistered(bNodeTree *ntree)
   return (ntree->typeinfo != &NodeTreeTypeUndefined);
 }
 
-GHashIterator *ntreeTypeGetIterator(void)
+GHashIterator *ntreeTypeGetIterator()
 {
   return BLI_ghashIterator_new(nodetreetypes_hash);
 }
@@ -1450,7 +1450,7 @@ bool nodeTypeUndefined(const bNode *node)
           ID_IS_LINKED(node->id) && (node->id->tag & LIB_TAG_MISSING));
 }
 
-GHashIterator *nodeTypeGetIterator(void)
+GHashIterator *nodeTypeGetIterator()
 {
   return BLI_ghashIterator_new(nodetypes_hash);
 }
@@ -1498,7 +1498,7 @@ bool nodeSocketIsRegistered(bNodeSocket *sock)
   return (sock->typeinfo != &NodeSocketTypeUndefined);
 }
 
-GHashIterator *nodeSocketTypeGetIterator(void)
+GHashIterator *nodeSocketTypeGetIterator()
 {
   return BLI_ghashIterator_new(nodesockettypes_hash);
 }
@@ -4057,7 +4057,7 @@ void BKE_node_clipboard_init(const struct bNodeTree *ntree)
   node_clipboard.type = ntree->type;
 }
 
-void BKE_node_clipboard_clear(void)
+void BKE_node_clipboard_clear()
 {
   LISTBASE_FOREACH_MUTABLE (bNodeLink *, link, &node_clipboard.links) {
     nodeRemLink(nullptr, link);
@@ -4074,7 +4074,7 @@ void BKE_node_clipboard_clear(void)
 #endif
 }
 
-bool BKE_node_clipboard_validate(void)
+bool BKE_node_c

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list