2025-11-18 22:38 ftp://ftp.de.debian.org/debian/pool/main/q/qhttpengine/qhttpengine_0.1.0+dfsg1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --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 -j1 platform: Linux-6.8.0-87-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 1ca1246 (2025-11-18 18:56:39 +0100) count: 67 67 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: qhttpengine-0.1.0/examples/chatserver/apihandler.cpp:50:68: warning: Either the condition 'index>=-1' is redundant or there is possible dereference of an invalid iterator: mMessages.constBegin()+index. [derefInvalidIteratorRedundantCheck] qhttpengine-0.1.0/examples/chatserver/apihandler.cpp:49:14: note: Assuming that condition 'index>=-1' is not redundant qhttpengine-0.1.0/examples/chatserver/apihandler.cpp:50:68: note: Dereference of an invalid iterator qhttpengine-0.1.0/src/qfilesystemhandler.cpp:75:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qfilesystemhandler.cpp:110:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QHTTPENGINE_VERSION [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/QHttpEngine/qibytearray.h:49:5: style: Class 'QIByteArray' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qhttpengine-0.1.0/src/QHttpEngine/qibytearray.h:54:5: style: Class 'QIByteArray' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qhttpengine-0.1.0/src/QHttpEngine/qhttpsocket.h:122:5: style: Class 'QHttpSocket' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qhttpengine-0.1.0/src/QHttpEngine/qfilesystemhandler.h:62:5: style: Class 'QFilesystemHandler' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qhttpengine-0.1.0/src/QHttpEngine/qfilesystemhandler.h:77:18: style: The function 'process' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] qhttpengine-0.1.0/src/QHttpEngine/qhttphandler.h:117:18: note: Virtual function in base class qhttpengine-0.1.0/src/QHttpEngine/qfilesystemhandler.h:77:18: note: Function in derived class qhttpengine-0.1.0/src/qfilesystemhandler.cpp:65:63: style:inconclusive: Function 'mimeType' argument 1 names different: declaration 'path' definition 'absolutePath'. [funcArgNamesDifferent] qhttpengine-0.1.0/src/qfilesystemhandler_p.h:42:40: note: Function 'mimeType' argument 1 names different: declaration 'path' definition 'absolutePath'. qhttpengine-0.1.0/src/qfilesystemhandler.cpp:65:63: note: Function 'mimeType' argument 1 names different: declaration 'path' definition 'absolutePath'. qhttpengine-0.1.0/src/qhttphandler.cpp:52:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable redirects [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttphandler_p.h:36:1: style: The class 'QHttpHandlerPrivate' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] qhttpengine-0.1.0/src/qhttphandler.cpp:55:13: performance: Range variable 'replacement' should be declared as const reference. [iterateByValue] qhttpengine-0.1.0/src/qhttpserver.cpp:83:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable handler [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpserver_p.h:32:1: style: The class 'QHttpServerPrivate' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] qhttpengine-0.1.0/src/QHttpEngine/qhttpserver.h:74:5: style: Class 'QHttpServer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qhttpengine-0.1.0/src/qhttpsocket.cpp:79:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadHeaders [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:171:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:176:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable readState [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:193:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable readState [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:201:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable requestMethod [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:206:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable requestPath [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:211:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable readState [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:216:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable requestHeaders [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:221:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable requestDataTotal [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:226:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable responseStatusCode [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:237:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable responseHeaders [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:248:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable responseStatusCode [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:283:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable responseStatusCode [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:299:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable readState [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket.cpp:318:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable writeState [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qhttpsocket_p.h:32:1: style: The class 'QHttpSocketPrivate' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] qhttpengine-0.1.0/src/qiodevicecopier.cpp:99:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bufferSize [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qiodevicecopier.cpp:105:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qiodevicecopier_p.h:31:1: style: The class 'QIODeviceCopierPrivate' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] qhttpengine-0.1.0/src/qlocalfile.cpp:127:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qlocalfile_p.h:30:1: style: The class 'QLocalFilePrivate' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] qhttpengine-0.1.0/src/qlocalfile.cpp:45:25: style:inconclusive: Either there is a missing 'override', or the member function 'QLocalFilePrivate::setPermission' can be const. [functionConst] qhttpengine-0.1.0/src/qlocalfile_p.h:38:10: note: Either there is a missing 'override', or the member function 'QLocalFilePrivate::setPermission' can be const. qhttpengine-0.1.0/src/qlocalfile.cpp:45:25: note: Either there is a missing 'override', or the member function 'QLocalFilePrivate::setPermission' can be const. qhttpengine-0.1.0/src/qlocalfile.cpp:106:25: style:inconclusive: Either there is a missing 'override', or the member function 'QLocalFilePrivate::setHidden' can be const. [functionConst] qhttpengine-0.1.0/src/qlocalfile_p.h:39:10: note: Either there is a missing 'override', or the member function 'QLocalFilePrivate::setHidden' can be const. qhttpengine-0.1.0/src/qlocalfile.cpp:106:25: note: Either there is a missing 'override', or the member function 'QLocalFilePrivate::setHidden' can be const. qhttpengine-0.1.0/src/qobjecthandler.cpp:47:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoError [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qobjecthandler.cpp:110:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QVariantMap [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/src/qobjecthandler_p.h:32:1: style: The class 'QObjectHandlerPrivate' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] qhttpengine-0.1.0/src/QHttpEngine/qobjecthandler.h:76:18: style: The function 'process' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] qhttpengine-0.1.0/src/QHttpEngine/qhttphandler.h:117:18: note: Virtual function in base class qhttpengine-0.1.0/src/QHttpEngine/qobjecthandler.h:76:18: note: Function in derived class qhttpengine-0.1.0/tests/TestQFilesystemHandler.cpp:72:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotFound [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQFilesystemHandler.cpp:105:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQFilesystemHandler.cpp:117:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/common/qsimplehttpclient.h:45:5: style: Class 'QSimpleHttpClient' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qhttpengine-0.1.0/tests/common/qsimplehttpclient.h:54:16: performance: Function 'statusReason()' should return member 'mStatusReason' by const reference. [returnByReference] qhttpengine-0.1.0/tests/common/qsimplehttpclient.h:62:16: performance: Function 'data()' should return member 'mData' by const reference. [returnByReference] qhttpengine-0.1.0/tests/TestQHttpHandler.cpp:72:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Found [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpHandler.cpp:109:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable statusCode [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpHandler.cpp:128:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpHandler.cpp:161:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pattern [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpParser.cpp:121:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parts [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpParser.cpp:148:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lines [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpParser.cpp:183:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpParser.cpp:218:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpParser.cpp:256:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpServer.cpp:63:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LocalHost [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQHttpSocket.cpp:118:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MovedPermanently [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQIODeviceCopier.cpp:58:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QString [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQIODeviceCopier.cpp:79:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QString [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQObjectHandler.cpp:74:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotFound [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQObjectHandler.cpp:120:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] qhttpengine-0.1.0/tests/TestQObjectHandler.cpp:41:10: performance:inconclusive: Either there is a missing 'override', or the member function 'DummyHandler::invalidSignature' can be static. [functionStatic] qhttpengine-0.1.0/tests/TestQObjectHandler.cpp:42:17: style:inconclusive: Either there is a missing 'override', or the member function 'DummyHandler::validSlot' can be const. [functionConst] qhttpengine-0.1.0/tests/common/qsimplehttpclient.cpp:38:16: style: Local variable 'data' shadows outer function [shadowFunction] qhttpengine-0.1.0/tests/common/qsimplehttpclient.h:62:16: note: Shadowed declaration qhttpengine-0.1.0/tests/common/qsimplehttpclient.cpp:38:16: note: Shadow variable qhttpengine-0.1.0/tests/common/qsocketpair.cpp:30:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LocalHost [valueFlowBailoutIncompleteVar] diff: DONE