2026-05-16 13:56 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-knn.covertree/r-cran-knn.covertree_1.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j96 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 7a91746 (2026-05-15 22:45:04 +0200) count: 33 33 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: knn.covertree/src/RcppExports.cpp:26:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] knn.covertree/src/cover_tree.h:587:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _childMap [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:593:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _childMap [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:622:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _points [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:638:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _points [valueFlowBailoutIncompleteVar] knn.covertree/src/knn.cpp:80:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:247:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable first [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:277:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:322:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:426:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:538:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:668:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] knn.covertree/src/cover_tree.h:423:19: style: The member function 'CoverTree < IndexedPoint < EuclideanDistance > >::distance' can be static. [functionStatic] knn.covertree/src/cover_tree.h:112:15: note: The member function 'CoverTree < IndexedPoint < EuclideanDistance > >::distance' can be static. knn.covertree/src/cover_tree.h:423:19: note: The member function 'CoverTree < IndexedPoint < EuclideanDistance > >::distance' can be static. knn.covertree/src/cover_tree.h:74:29: style:inconclusive: Technically the member function 'CoverTree < IndexedPoint < EuclideanDistance > >::CoverTreeNode::getPoints' can be const. [functionConst] knn.covertree/src/cover_tree.h:423:19: style: The member function 'CoverTree < IndexedPoint < CosineDistance > >::distance' can be static. [functionStatic] knn.covertree/src/cover_tree.h:112:15: note: The member function 'CoverTree < IndexedPoint < CosineDistance > >::distance' can be static. knn.covertree/src/cover_tree.h:423:19: note: The member function 'CoverTree < IndexedPoint < CosineDistance > >::distance' can be static. knn.covertree/src/cover_tree.h:74:29: style:inconclusive: Technically the member function 'CoverTree < IndexedPoint < CosineDistance > >::CoverTreeNode::getPoints' can be const. [functionConst] knn.covertree/src/cover_tree.h:133:2: style: Class 'CoverTree < IndexedPoint < EuclideanDistance > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] knn.covertree/src/cover_tree.h:61:3: style: Class 'CoverTreeNode' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] knn.covertree/src/cover_tree.h:133:2: style: Class 'CoverTree < IndexedPoint < CosineDistance > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] knn.covertree/src/cover_tree.h:379:56: style: Local variable 'it' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:326:53: note: Shadowed variable knn.covertree/src/cover_tree.h:379:56: note: Shadow local variable knn.covertree/src/cover_tree.h:385:11: style: Local variable 'sep' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:325:9: note: Shadowed variable knn.covertree/src/cover_tree.h:385:11: note: Shadow local variable knn.covertree/src/cover_tree.h:389:6: style: Local variable 'Q' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:367:30: note: Shadowed variable knn.covertree/src/cover_tree.h:389:6: note: Shadow local variable knn.covertree/src/cover_tree.h:512:29: style: Local variable 'p' shadows outer argument [shadowArgument] knn.covertree/src/cover_tree.h:504:69: note: Shadowed argument knn.covertree/src/cover_tree.h:512:29: note: Shadow local variable knn.covertree/src/knn.cpp:124:103: performance: Function parameter 'distance' should be passed by const reference. [passedByValue] knn.covertree/src/knn.cpp:138:75: performance: Function parameter 'distance' should be passed by const reference. [passedByValue] knn.covertree/src/cover_tree.h:595:15: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] knn.covertree/src/cover_tree.h:266:7: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] knn.covertree/src/cover_tree.h:372:30: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] knn.covertree/src/cover_tree.h:525:7: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] knn.covertree/src/cover_tree.h:226:54: style: Unused variable: it [unusedVariable] knn.covertree/src/cover_tree.h:383:17: style: Variable 'minDQ' is assigned a value that is never used. [unreadVariable] knn.covertree/src/cover_tree.h:403:10: style: Variable 'minDQ' is assigned a value that is never used. [unreadVariable] knn.covertree/src/knn.cpp:93:52: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] diff: 2.20.0 knn.covertree/src/cover_tree.h:379:56: style: Local variable 'it' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:326:53: note: Shadowed declaration knn.covertree/src/cover_tree.h:379:56: note: Shadow variable head knn.covertree/src/cover_tree.h:379:56: style: Local variable 'it' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:326:53: note: Shadowed variable knn.covertree/src/cover_tree.h:379:56: note: Shadow local variable 2.20.0 knn.covertree/src/cover_tree.h:385:11: style: Local variable 'sep' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:325:9: note: Shadowed declaration knn.covertree/src/cover_tree.h:385:11: note: Shadow variable head knn.covertree/src/cover_tree.h:385:11: style: Local variable 'sep' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:325:9: note: Shadowed variable knn.covertree/src/cover_tree.h:385:11: note: Shadow local variable 2.20.0 knn.covertree/src/cover_tree.h:389:6: style: Local variable 'Q' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:367:30: note: Shadowed declaration knn.covertree/src/cover_tree.h:389:6: note: Shadow variable head knn.covertree/src/cover_tree.h:389:6: style: Local variable 'Q' shadows outer variable [shadowVariable] knn.covertree/src/cover_tree.h:367:30: note: Shadowed variable knn.covertree/src/cover_tree.h:389:6: note: Shadow local variable head knn.covertree/src/cover_tree.h:512:29: style: Local variable 'p' shadows outer argument [shadowArgument] knn.covertree/src/cover_tree.h:504:69: note: Shadowed argument knn.covertree/src/cover_tree.h:512:29: note: Shadow local variable 2.20.0 knn.covertree/src/cover_tree.h:512:29: style: Local variable 'p' shadows outer argument [shadowArgument] knn.covertree/src/cover_tree.h:504:69: note: Shadowed declaration knn.covertree/src/cover_tree.h:512:29: note: Shadow variable DONE