Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-08-07 17:16:22 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-08-07 17:23:02 +0300
commit2a0bc4d23ee2b5a782ce0d5c367619ab29ef7ae2 (patch)
tree92c87394efa603fbcc6b7ed500610139705379c9 /source/blender/blenkernel/intern/node.c
parent4ce298b3c0c3fed22627567c2963c79be4d9fc1f (diff)
Cleanup: Nodes, silence Clang-Tidy readability-function-size
Add a `NOLINT` marker to explicitly silence a warning from Clang-Tidy's `readability-function-size` rule for the `node_type_base()` function. This function is indeed huge, but that is because a lot of macros are expanded. Before expansion things are still not small, but still understandable & expandable. No functional changes.
Diffstat (limited to 'source/blender/blenkernel/intern/node.c')
-rw-r--r--source/blender/blenkernel/intern/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 174e1c12033..d77e7cf862d 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -3829,6 +3829,7 @@ static bool node_poll_instance_default(bNode *node, bNodeTree *ntree)
return node->typeinfo->poll(node->typeinfo, ntree);
}
+/* NOLINTNEXTLINE: readability-function-size */
void node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag)
{
/* Use static type info header to map static int type to identifier string and RNA struct type.