- Many cleanups of to use list base
- Some variable changes
These change is needed to migrate to the new socket builder API
Differential D12366
Cleanup: convert compositor nodes to c++ Authored by Aaron Carlisle (Blendify) on Aug 31 2021, 11:35 PM. Tags None Subscribers None
Details
These change is needed to migrate to the new socket builder API
Diff Detail
Event TimelineComment Actions A couple new clang-tidy warnings: /home/jacques/blender-git/blender/source/blender/nodes/composite/nodes/node_composite_defocus.cc:26:10: warning: inclusion of deprecated C++ header 'limits.h'; consider using 'climits' instead [modernize-deprecated-headers]
#include <limits.h>
^~~~~~~~~~
<climits>
[988/2164] Building CXX object source/blender/nodes/CMakeFiles/bf_nodes.dir/composite/nodes/node_composite_image.cc.o
/home/jacques/blender-git/blender/source/blender/nodes/composite/nodes/node_composite_image.cc:225:1: warning: use 'using' instead of 'typedef' [modernize-use-using]
typedef struct RLayerUpdateData {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1009/2164] Building CXX object source/blender/nodes/CMakeFiles/bf_nodes.dir/composite/nodes/node_composite_outputFile.cc.o
/home/jacques/blender-git/blender/source/blender/nodes/composite/nodes/node_composite_outputFile.cc:26:10: warning: inclusion of deprecated C++ header 'string.h'; consider using 'cstring' instead [modernize-deprecated-headers]
#include <string.h>
^~~~~~~~~~
<cstring>
[1035/2164] Building CXX object source/blender/nodes/CMakeFiles/bf_nodes.dir/composite/node_composite_util.cc.o
/home/jacques/blender-git/blender/source/blender/nodes/composite/node_composite_util.hh:53:6: warning: function 'cmp_node_poll_default' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
bool cmp_node_poll_default(struct bNodeType *ntype,
^
/home/jacques/blender-git/blender/source/blender/nodes/composite/node_composite_util.cc:26:6: note: the definition seen here
bool cmp_node_poll_default(bNodeType *UNUSED(ntype),
^
/home/jacques/blender-git/blender/source/blender/nodes/composite/node_composite_util.hh:53:6: note: differing parameters are named here: ('r_disabled_info'), in definition: ('r_disabled_hint')
bool cmp_node_poll_default(struct bNodeType *ntype,
^
[1036/2164] Building CXX object source/blender/nodes/CMakeFiles/bf_nodes.dir/composite/node_composite_tree.cc.o
/home/jacques/blender-git/blender/source/blender/nodes/composite/node_composite_tree.cc:24:10: warning: inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead [modernize-deprecated-headers]
#include <stdio.h>
^~~~~~~~~
<cstdio>Note, for the use 'using' instead of 'typedef' warning just remove the typedef alltogether. Comment Actions
warning: function 'cmp_node_poll_default' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
bool cmp_node_poll_default(struct bNodeType *UNUSED(ntype),
^
/home/lolme/bf/blender/source/blender/nodes/composite/node_composite_util.cc:26:6: note: the definition seen here
bool cmp_node_poll_default(bNodeType *UNUSED(ntype),
^
/home/lolme/bf/blender/source/blender/nodes/composite/node_composite_util.hh:53:6: note: differing parameters are named here: ('r_disabled_info'), in definition: ('r_disabled_hint')
bool cmp_node_poll_default(struct bNodeType *UNUSED(ntype),
^
Comment Actions
Comment Actions I ran the tests on windows and nothing failed. Still better to check this on buildbot before committing. Comment Actions Buildbot is still not showing tests pass: https://builder.blender.org/admin/#/builders/18/builds/123 | ||||||||||||||||