From 2a0bc4d23ee2b5a782ce0d5c367619ab29ef7ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 7 Aug 2020 16:16:22 +0200 Subject: 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. --- source/blender/blenkernel/intern/node.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/intern/node.c') 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. -- cgit v1.2.3