2025-06-25 05:44 ftp://ftp.de.debian.org/debian/pool/main/t/tree-sitter-c/tree-sitter-c_0.21.3.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 129055d (2025-06-24 18:36:34 +0200) count: 163 163 elapsed-time: 346.1 324.7 head-timing-info: old-timing-info: head results: tree-sitter-c-0.21.3/test/highlight/names.c:1:1: debug: Failed to parse 'typedef T ;'. The checking continues anyway. [simplifyTypedef] tree-sitter-c-0.21.3/test/highlight/names.c:1:1: debug: Failed to parse 'typedef V ;'. The checking continues anyway. [simplifyTypedef] tree-sitter-c-0.21.3/test/highlight/names.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bar [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/test/highlight/names.c:30:1: style: Label 'error' is not used. [unusedLabel] tree-sitter-c-0.21.3/examples/malloc.c:63:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable threads_minus_1 [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/malloc.c:211:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/malloc.c:231:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psize [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/malloc.c:328:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/malloc.c:372:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable csize [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/malloc.c:400:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/malloc.c:521:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:85:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts_builtin_sym_error [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:120:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:207:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:240:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:344:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:409:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:450:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:523:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable extra [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:612:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_STATE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:662:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StackIterateNone [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:717:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:799:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:818:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts_builtin_sym_end [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:880:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable symbol [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:918:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_STATE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:943:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STACK_VERSION_NONE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:969:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:1006:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:1031:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts_builtin_sym_end [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:1080:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DEBUG_BUFFER_SIZE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:1236:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STACK_VERSION_NONE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/malloc.c:189:16: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] tree-sitter-c-0.21.3/examples/malloc.c:196:15: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] tree-sitter-c-0.21.3/examples/malloc.c:428:8: style: Condition '0&&n>n1' is always false [knownConditionTrueFalse] tree-sitter-c-0.21.3/examples/malloc.c:453:23: warning: Either the condition '!p' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] tree-sitter-c-0.21.3/examples/malloc.c:459:6: note: Assuming that condition '!p' is not redundant tree-sitter-c-0.21.3/examples/malloc.c:453:23: note: Null pointer subtraction tree-sitter-c-0.21.3/examples/cluster.c:96:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:312:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable todo_before_sleep [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:355:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LL_WARNING [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:378:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:410:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cluster [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:525:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_SLOTS [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:581:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable el [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:596:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NET_IP_STR_LEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:676:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:747:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cluster_node_timeout [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:809:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NODE_MIGRATE_TO [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:821:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C_ERR [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:846:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slaveof [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:868:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:889:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_SLOTS [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:914:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:929:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:951:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:996:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable currentEpoch [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1060:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1107:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes_black_list [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1120:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1137:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1173:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1208:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LL_NOTICE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1239:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1261:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NET_IP_STR_LEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1327:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LL_DEBUG [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1422:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NET_IP_STR_LEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NET_IP_STR_LEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1484:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NODE_MIGRATE_TO [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1516:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_SLOTS [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:1610:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTERMSG_TYPE_COUNT [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2071:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LL_DEBUG [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2085:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clusterMsg [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2154:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable el [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2176:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2203:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_PROTO_VER [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2270:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodename [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2281:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NAMELEN [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2303:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2441:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2462:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clusterMsg [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2508:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clusterMsg [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2520:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clusterMsg [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2553:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clusterMsg [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2569:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clusterMsg [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2582:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clusterMsg [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2599:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTERMSG_FLAG0_FORCEACK [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2720:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repl_offset [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2749:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cluster_node_timeout [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2805:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_SLOTS [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:2834:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable failover_auth_time [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3033:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable state [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3145:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mf_end [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3157:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mf_end [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3167:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mf_end [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3209:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cluster_announce_ip [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3470:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable todo_before_sleep [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3490:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable todo_before_sleep [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3523:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3556:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NODE_MIGRATE_TO [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3579:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slots [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3589:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slots [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3602:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_SLOTS [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3612:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable migrating_slots_to [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3636:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable todo_before_sleep [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3754:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C_OK [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3803:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NODE_MASTER [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3880:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_NODE_MYSELF [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3937:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3973:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C_OK [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:3998:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4057:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cluster_enabled [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4628:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RDB_VERSION [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4649:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C_ERR [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4671:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullbulk [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4694:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4777:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable migrate_cached_sockets [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4831:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable migrate_cached_sockets [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4844:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable migrate_cached_sockets [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:4887:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:5147:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cluster_enabled [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:5159:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cluster_enabled [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:5169:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT_READONLY [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:5214:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_REDIR_NONE [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:5376:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLUSTER_REDIR_CROSS_SLOT [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/cluster.c:5411:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCKED_LIST [valueFlowBailoutIncompleteVar] tree-sitter-c-0.21.3/examples/parser.c:760:48: style: Condition 'i+1>0' is always true [knownConditionTrueFalse] tree-sitter-c-0.21.3/examples/parser.c:831:47: style: Condition 'j+1>0' is always true [knownConditionTrueFalse] tree-sitter-c-0.21.3/examples/parser.c:538:16: style: Local variable 'child_count' shadows outer variable [shadowVariable] tree-sitter-c-0.21.3/examples/parser.c:522:14: note: Shadowed declaration tree-sitter-c-0.21.3/examples/parser.c:538:16: note: Shadow variable tree-sitter-c-0.21.3/examples/parser.c:139:43: style: Parameter 'table_entry' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/parser.c:652:46: style: Parameter 'trees' can be declared as pointer to const. However it seems that 'parser__repair_error_callback' is a callback function, if 'trees' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tree-sitter-c-0.21.3/examples/parser.c:742:33: note: You might need to cast the function pointer here tree-sitter-c-0.21.3/examples/parser.c:652:46: note: Parameter 'trees' can be declared as pointer to const tree-sitter-c-0.21.3/examples/parser.c:659:14: style: Variable 'trees_above_error' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/parser.c:1261:27: warning: Uninitialized variable: reusable_node [uninitvar] tree-sitter-c-0.21.3/examples/parser.c:1241:31: note: Assuming condition is false tree-sitter-c-0.21.3/examples/parser.c:1261:27: note: Uninitialized variable: reusable_node tree-sitter-c-0.21.3/examples/parser.c:1237:40: style: Variable 'last_position' is assigned a value that is never used. [unreadVariable] tree-sitter-c-0.21.3/examples/cluster.c:404:5: error: Resource leak: fd [resourceLeak] tree-sitter-c-0.21.3/examples/cluster.c:3295:21: style: Variable 'node->ping_sent' is assigned an expression that holds the same value. [redundantAssignment] tree-sitter-c-0.21.3/examples/cluster.c:3288:27: note: old_ping_sent is assigned 'node->ping_sent' here. tree-sitter-c-0.21.3/examples/cluster.c:3295:21: note: Variable 'node->ping_sent' is assigned an expression that holds the same value. tree-sitter-c-0.21.3/examples/cluster.c:3057:13: style: Local variable 'okslaves' shadows outer variable [shadowVariable] tree-sitter-c-0.21.3/examples/cluster.c:3027:12: note: Shadowed declaration tree-sitter-c-0.21.3/examples/cluster.c:3057:13: note: Shadow variable tree-sitter-c-0.21.3/examples/cluster.c:4207:26: style: Local variable 'n' shadows outer variable [shadowVariable] tree-sitter-c-0.21.3/examples/cluster.c:4169:22: note: Shadowed declaration tree-sitter-c-0.21.3/examples/cluster.c:4207:26: note: Shadow variable tree-sitter-c-0.21.3/examples/cluster.c:3289:67: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tree-sitter-c-0.21.3/examples/cluster.c:672:38: style: Parameter 'nodename' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:712:46: style: Parameter 'failing' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:742:52: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:746:28: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:769:65: style: Parameter 'sender' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:773:28: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:797:62: style: Parameter 'slave' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:953:22: style: Variable 'node' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:1235:38: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:1259:33: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:1420:56: style: Parameter 'announced_ip' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:1508:18: style: Variable 'curmaster' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:1880:22: style: Variable 'sender_master' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:2087:17: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:2160:17: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:2267:46: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:2267:75: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:2278:65: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:2507:28: style: Parameter 'nodename' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:2711:18: style: Variable 'master' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:3028:63: style: Variable 'candidate' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:3499:34: style: Parameter 'bitmap' can be declared as pointer to const [constParameterPointer] tree-sitter-c-0.21.3/examples/cluster.c:4644:20: style: Variable 'footer' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/examples/cluster.c:4996:22: style: Variable 'nwritten' is assigned a value that is never used. [unreadVariable] tree-sitter-c-0.21.3/src/tree_sitter/parser.h:139:23: style: Variable 'range' can be declared as pointer to const [constVariablePointer] tree-sitter-c-0.21.3/src/tree_sitter/parser.h:147:21: style: Variable 'range' can be declared as pointer to const [constVariablePointer] diff: DONE