diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 17:16:22 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 17:23:02 +0300 |
commit | 2a0bc4d23ee2b5a782ce0d5c367619ab29ef7ae2 (patch) | |
tree | 92c87394efa603fbcc6b7ed500610139705379c9 | |
parent | 4ce298b3c0c3fed22627567c2963c79be4d9fc1f (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.
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 1 |
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. |