2026-05-01 19:48 ftp://ftp.de.debian.org/debian/pool/main/f/fcitx-unikey/fcitx-unikey_0.2.7+git20220410.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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 291 287 elapsed-time: 0.7 0.5 head-timing-info: old-timing-info: head results: fcitx-unikey-master/src/unikey-config.cpp:23:1: error: There is an unknown macro here somewhere. Configuration is required. If CONFIG_BINDING_BEGIN is a macro then please configure it. [unknownMacro] fcitx-unikey-master/macro-editor/model.cpp:42:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DisplayRole [valueFlowBailoutIncompleteVar] fcitx-unikey-master/macro-editor/model.cpp:66:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable first [valueFlowBailoutIncompleteVar] fcitx-unikey-master/macro-editor/model.cpp:141:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONV_CHARSET_XUTF8 [valueFlowBailoutIncompleteVar] fcitx-unikey-master/src/unikey-im.cpp:496:1: error: There is an unknown macro here somewhere. Configuration is required. If CONFIG_DESC_DEFINE is a macro then please configure it. [unknownMacro] fcitx-unikey-master/macro-editor/editor.cpp:46:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SingleSelection [valueFlowBailoutIncompleteVar] fcitx-unikey-master/macro-editor/editor.cpp:107:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_MACRO_KEY_LEN [valueFlowBailoutIncompleteVar] fcitx-unikey-master/macro-editor/editor.cpp:174:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ExistingFile [valueFlowBailoutIncompleteVar] fcitx-unikey-master/macro-editor/editor.cpp:191:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AcceptSave [valueFlowBailoutIncompleteVar] fcitx-unikey-master/macro-editor/model.cpp:117:18: style:inconclusive: Either there is a missing 'override', or the member function 'fcitx_unikey::MacroModel::needSave' can be const. [functionConst] fcitx-unikey-master/macro-editor/model.h:40:10: note: Either there is a missing 'override', or the member function 'fcitx_unikey::MacroModel::needSave' can be const. fcitx-unikey-master/macro-editor/model.cpp:117:18: note: Either there is a missing 'override', or the member function 'fcitx_unikey::MacroModel::needSave' can be const. fcitx-unikey-master/macro-editor/editor.h:35:18: style: Virtual function 'load' is called from constructor 'MacroEditor(QWidget*parent=0)' at line 55. Dynamic binding is not used. [virtualCallInConstructor] fcitx-unikey-master/macro-editor/editor.cpp:55:5: note: Calling load fcitx-unikey-master/macro-editor/editor.h:35:18: note: load is a virtual function fcitx-unikey-master/macro-editor/editor.cpp:147:5: warning: Possible leak in public function. The pointer 'm_table' is not deallocated before it is allocated. [publicAllocationError] fcitx-unikey-master/macro-editor/editor.cpp:128:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/macro-editor/editor.cpp:128:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:493:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fcitx-unikey-master/unikey/byteio.cpp:503:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fcitx-unikey-master/unikey/byteio.cpp:516:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fcitx-unikey-master/src/unikey-ui.cpp:38:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:44:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:52:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:58:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:76:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:83:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:89:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:96:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/src/unikey-ui.cpp:64:40: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'GetIMIconName' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fcitx-unikey-master/src/unikey-ui.cpp:107:9: note: You might need to cast the function pointer here fcitx-unikey-master/src/unikey-ui.cpp:64:40: note: Parameter 'arg' can be declared as pointer to const fcitx-unikey-master/src/unikey-ui.cpp:69:40: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'GetOCIconName' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fcitx-unikey-master/src/unikey-ui.cpp:115:9: note: You might need to cast the function pointer here fcitx-unikey-master/src/unikey-ui.cpp:69:40: note: Parameter 'arg' can be declared as pointer to const fcitx-unikey-master/unikey/convert.cpp:123:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fcitx-unikey-master/unikey/byteio.cpp:6:17: warning: Member variable 'StringBIStream::m_bookmark' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/byteio.cpp:265:15: warning: Member variable 'FileBIStream::m_bookmark' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/byteio.cpp:265:15: warning: Member variable 'FileBIStream::m_readByte' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/byteio.h:90:6: style:inconclusive: Technically the member function 'StringBIStream::left' can be const. [functionConst] fcitx-unikey-master/unikey/byteio.h:163:6: style:inconclusive: Technically the member function 'StringBOStream::getOutBytes' can be const. [functionConst] fcitx-unikey-master/unikey/byteio.h:122:14: style: Virtual function 'close' is called from destructor '~FileBIStream()' at line 281. Dynamic binding is not used. [virtualCallInConstructor] fcitx-unikey-master/unikey/byteio.cpp:281:3: note: Calling close fcitx-unikey-master/unikey/byteio.h:122:14: note: close is a virtual function fcitx-unikey-master/unikey/byteio.h:184:14: style: Virtual function 'close' is called from destructor '~FileBOStream()' at line 455. Dynamic binding is not used. [virtualCallInConstructor] fcitx-unikey-master/unikey/byteio.cpp:455:3: note: Calling close fcitx-unikey-master/unikey/byteio.h:184:14: note: close is a virtual function fcitx-unikey-master/unikey/byteio.h:117:2: style: Class 'FileBIStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/byteio.h:179:2: style: Class 'FileBOStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/byteio.h:74:14: style: The function 'getNext' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:23:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:74:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:75:14: style: The function 'peekNext' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:24:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:75:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:76:14: style: The function 'unget' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:25:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:76:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:78:14: style: The function 'getNextW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:27:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:78:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:79:14: style: The function 'peekNextW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:28:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:79:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:81:14: style: The function 'getNextDW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:30:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:81:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:83:17: style: The function 'eos' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:42:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:83:17: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:84:14: style: The function 'close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:43:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:84:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:86:14: style: The function 'bookmark' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:32:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:86:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:87:14: style: The function 'gotoBookmark' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:37:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:87:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:122:14: style: The function 'close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:43:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:122:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:124:14: style: The function 'getNext' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:23:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:124:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:125:14: style: The function 'peekNext' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:24:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:125:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:126:14: style: The function 'unget' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:25:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:126:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:128:14: style: The function 'getNextW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:27:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:128:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:129:14: style: The function 'peekNextW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:28:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:129:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:131:17: style: The function 'getNextDW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:30:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:131:17: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:133:17: style: The function 'eos' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:42:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:133:17: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:135:14: style: The function 'bookmark' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:32:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:135:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:136:14: style: The function 'gotoBookmark' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:37:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:136:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:138:11: style: The destructor '~FileBIStream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:16:12: note: Virtual destructor in base class fcitx-unikey-master/unikey/byteio.h:138:11: note: Destructor in derived class fcitx-unikey-master/unikey/byteio.h:152:14: style: The function 'putB' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:50:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:152:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:153:14: style: The function 'putW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:51:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:153:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:154:14: style: The function 'puts' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:52:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:154:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:155:14: style: The function 'isOK' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:53:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:155:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:186:14: style: The function 'putB' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:50:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:186:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:187:14: style: The function 'putW' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:51:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:187:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:188:14: style: The function 'puts' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:52:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:188:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:189:14: style: The function 'isOK' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:53:14: note: Virtual function in base class fcitx-unikey-master/unikey/byteio.h:189:14: note: Function in derived class fcitx-unikey-master/unikey/byteio.h:190:11: style: The destructor '~FileBOStream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/byteio.h:16:12: note: Virtual destructor in base class fcitx-unikey-master/unikey/byteio.h:190:11: note: Destructor in derived class fcitx-unikey-master/unikey/byteio.cpp:12:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:14:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:61:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:77:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:102:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:206:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:375:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:376:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:389:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:390:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/byteio.cpp:229:6: style: The scope of the variable 'n' can be reduced. [variableScope] fcitx-unikey-master/unikey/byteio.cpp:371:14: style: The scope of the variable 'b2' can be reduced. [variableScope] fcitx-unikey-master/unikey/byteio.cpp:386:14: style: The scope of the variable 'w2' can be reduced. [variableScope] fcitx-unikey-master/unikey/byteio.cpp:400:10: style: The scope of the variable 'hi' can be reduced. [variableScope] fcitx-unikey-master/unikey/byteio.cpp:265:32: style:inconclusive: Function 'FileBIStream' argument 1 names different: declaration 'bufsize' definition 'bufSize'. [funcArgNamesDifferent] fcitx-unikey-master/unikey/byteio.h:117:19: note: Function 'FileBIStream' argument 1 names different: declaration 'bufsize' definition 'bufSize'. fcitx-unikey-master/unikey/byteio.cpp:265:32: note: Function 'FileBIStream' argument 1 names different: declaration 'bufsize' definition 'bufSize'. fcitx-unikey-master/unikey/byteio.cpp:442:32: style:inconclusive: Function 'FileBOStream' argument 1 names different: declaration 'bufsize' definition 'bufSize'. [funcArgNamesDifferent] fcitx-unikey-master/unikey/byteio.h:179:19: note: Function 'FileBOStream' argument 1 names different: declaration 'bufsize' definition 'bufSize'. fcitx-unikey-master/unikey/byteio.cpp:442:32: note: Function 'FileBOStream' argument 1 names different: declaration 'bufsize' definition 'bufSize'. fcitx-unikey-master/unikey/byteio.cpp:471:34: style:inconclusive: Function 'attach' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] fcitx-unikey-master/unikey/charset.h:186:2: warning: Member variable 'UnicodeCStringCharset::m_prevIsHex' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.h:114:2: style: Class 'SingleByteCharset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:134:2: style: Class 'UnicodeCharset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:147:2: style: Class 'DoubleByteCharset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:156:2: style: Class 'UnicodeUTF8Charset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:166:2: style: Class 'UnicodeRefCharset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:176:2: style: Class 'UnicodeHexCharset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:186:2: style: Class 'UnicodeCStringCharset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:239:2: style: Class 'VIQRCharset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] fcitx-unikey-master/unikey/charset.h:115:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:115:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:116:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:116:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:123:15: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:123:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:124:15: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:124:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:125:15: style: The function 'elementSize' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:104:17: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:125:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:135:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:135:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:136:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:136:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:137:17: style: The function 'elementSize' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:104:17: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:137:17: note: Function in derived class fcitx-unikey-master/unikey/charset.h:148:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:148:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:149:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:149:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:158:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:135:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:158:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:159:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:136:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:159:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:168:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:135:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:168:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:169:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:136:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:169:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:177:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:169:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:177:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:187:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:135:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:187:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:188:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:136:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:188:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:189:15: style: The function 'startInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:89:15: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:189:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:202:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:202:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:203:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:203:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:219:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:219:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:220:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:220:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:221:17: style: The function 'elementSize' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:104:17: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:221:17: note: Function in derived class fcitx-unikey-master/unikey/charset.h:240:15: style: The function 'startInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:89:15: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:240:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:241:15: style: The function 'startOutput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:90:15: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:241:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:242:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:242:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:243:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:243:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:255:15: style: The function 'startInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:89:15: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:255:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:256:15: style: The function 'startOutput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:90:15: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:256:15: note: Function in derived class fcitx-unikey-master/unikey/charset.h:257:14: style: The function 'nextInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:92:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:257:14: note: Function in derived class fcitx-unikey-master/unikey/charset.h:258:14: style: The function 'putChar' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] fcitx-unikey-master/unikey/charset.h:103:14: note: Virtual function in base class fcitx-unikey-master/unikey/charset.h:258:14: note: Function in derived class fcitx-unikey-master/unikey/convert.cpp:157:7: error: Return value of allocation function 'mkstemp' is not stored. [leakReturnValNotUsed] fcitx-unikey-master/unikey/convert.cpp:39:12: style: The scope of the variable 'stdChar' can be reduced. [variableScope] fcitx-unikey-master/unikey/convert.cpp:184:11: style: Variable 'cmd[0]' is assigned a value that is never used. [unreadVariable] fcitx-unikey-master/unikey/inputproc.h:86:17: style:inconclusive: Technically the member function 'UkInputProcessor::getIM' can be const. [functionConst] fcitx-unikey-master/unikey/inputproc.cpp:341:24: style:inconclusive: Technically the member function 'UkInputProcessor::keyCodeToEvent' can be const. [functionConst] fcitx-unikey-master/unikey/inputproc.h:91:8: note: Technically the member function 'UkInputProcessor::keyCodeToEvent' can be const. fcitx-unikey-master/unikey/inputproc.cpp:341:24: note: Technically the member function 'UkInputProcessor::keyCodeToEvent' can be const. fcitx-unikey-master/unikey/inputproc.cpp:373:24: style: The member function 'UkInputProcessor::keyCodeToSymbol' can be static. [functionStatic] fcitx-unikey-master/unikey/inputproc.h:92:8: note: The member function 'UkInputProcessor::keyCodeToSymbol' can be static. fcitx-unikey-master/unikey/inputproc.cpp:373:24: note: The member function 'UkInputProcessor::keyCodeToSymbol' can be static. fcitx-unikey-master/unikey/inputproc.cpp:395:24: style:inconclusive: Technically the member function 'UkInputProcessor::getKeyMap' can be const. [functionConst] fcitx-unikey-master/unikey/inputproc.h:95:8: note: Technically the member function 'UkInputProcessor::getKeyMap' can be const. fcitx-unikey-master/unikey/inputproc.cpp:395:24: note: Technically the member function 'UkInputProcessor::getKeyMap' can be const. fcitx-unikey-master/unikey/inputproc.cpp:387:30: style: The member function 'UkInputProcessor::getCharType' can be static. [functionStatic] fcitx-unikey-master/unikey/inputproc.h:97:14: note: The member function 'UkInputProcessor::getCharType' can be static. fcitx-unikey-master/unikey/inputproc.cpp:387:30: note: The member function 'UkInputProcessor::getCharType' can be static. fcitx-unikey-master/unikey/inputproc.cpp:305:33: style: Parameter 'map' can be declared as const array [constParameter] fcitx-unikey-master/unikey/usrkeymap.cpp:162:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] fcitx-unikey-master/unikey/usrkeymap.cpp:243:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] fcitx-unikey-master/unikey/unikey.cpp:82:38: style: Parameter 'pOpt' can be declared as pointer to const [constParameterPointer] fcitx-unikey-master/unikey/mactab.cpp:105:31: style:inconclusive: Technically the member function 'CMacroTable::lookup' can be const. [functionConst] fcitx-unikey-master/unikey/mactab.h:60:22: note: Technically the member function 'CMacroTable::lookup' can be const. fcitx-unikey-master/unikey/mactab.cpp:105:31: note: Technically the member function 'CMacroTable::lookup' can be const. fcitx-unikey-master/unikey/mactab.cpp:121:19: style: The member function 'CMacroTable::readHeader' can be static. [functionStatic] fcitx-unikey-master/unikey/mactab.h:69:10: note: The member function 'CMacroTable::readHeader' can be static. fcitx-unikey-master/unikey/mactab.cpp:121:19: note: The member function 'CMacroTable::readHeader' can be static. fcitx-unikey-master/unikey/mactab.cpp:158:19: style: The member function 'CMacroTable::writeHeader' can be static. [functionStatic] fcitx-unikey-master/unikey/mactab.h:70:10: note: The member function 'CMacroTable::writeHeader' can be static. fcitx-unikey-master/unikey/mactab.cpp:158:19: note: The member function 'CMacroTable::writeHeader' can be static. fcitx-unikey-master/unikey/mactab.cpp:52:36: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:52:66: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:53:36: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:53:66: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:80:21: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:81:36: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:81:66: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:108:17: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:238:9: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:242:7: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:242:21: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:247:9: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:251:10: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:285:13: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:285:28: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:300:5: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:300:21: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:319:16: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/mactab.cpp:52:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/mactab.cpp:53:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/mactab.cpp:81:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/mactab.cpp:110:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/mactab.cpp:342:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/mactab.cpp:350:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/mactab.cpp:56:15: style: The scope of the variable 'ls1' can be reduced. [variableScope] fcitx-unikey-master/unikey/mactab.cpp:56:20: style: The scope of the variable 'ls2' can be reduced. [variableScope] fcitx-unikey-master/unikey/mactab.cpp:83:15: style: The scope of the variable 'ls1' can be reduced. [variableScope] fcitx-unikey-master/unikey/mactab.cpp:83:20: style: The scope of the variable 'ls2' can be reduced. [variableScope] fcitx-unikey-master/unikey/mactab.cpp:179:12: style: The scope of the variable 'len' can be reduced. [variableScope] fcitx-unikey-master/unikey/mactab.cpp:224:7: style: The scope of the variable 'ret' can be reduced. [variableScope] fcitx-unikey-master/unikey/mactab.cpp:105:49: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] fcitx-unikey-master/unikey/mactab.cpp:108:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/mactab.cpp:319:10: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/usrkeymap.cpp:173:19: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/usrkeymap.cpp:182:33: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/usrkeymap.cpp:182:49: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/usrkeymap.cpp:154:12: style: The scope of the variable 'len' can be reduced. [variableScope] fcitx-unikey-master/unikey/usrkeymap.cpp:156:19: style: The scope of the variable 'c' can be reduced. [variableScope] fcitx-unikey-master/unikey/usrkeymap.cpp:238:9: style: The scope of the variable 'labelIndex' can be reduced. [variableScope] fcitx-unikey-master/unikey/usrkeymap.cpp:259:23: style:inconclusive: Function 'getLabelIndex' argument 1 names different: declaration 'action' definition 'event'. [funcArgNamesDifferent] fcitx-unikey-master/unikey/usrkeymap.cpp:33:23: note: Function 'getLabelIndex' argument 1 names different: declaration 'action' definition 'event'. fcitx-unikey-master/unikey/usrkeymap.cpp:259:23: note: Function 'getLabelIndex' argument 1 names different: declaration 'action' definition 'event'. fcitx-unikey-master/unikey/usrkeymap.cpp:234:70: style: Parameter 'pMap' can be declared as pointer to const [constParameterPointer] fcitx-unikey-master/unikey/ukengine.cpp:1760:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UkKeyProcList [valueFlowBailoutIncompleteVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_atWordBeginning' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_escapeBowl' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_escapeRoof' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_escapeHook' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_escapeTone' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_gotTone' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_escAll' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_noOutEsc' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:703:14: warning: Member variable 'VIQRCharset::m_suspicious' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:989:16: warning: Member variable 'CVnCharsetLib::m_pUniCString' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/charset.cpp:1037:10: warning: Class 'CVnCharsetLib' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] fcitx-unikey-master/unikey/charset.cpp:1037:10: warning: Class 'CVnCharsetLib' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] fcitx-unikey-master/unikey/charset.cpp:134:15: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:135:15: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:159:19: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:187:17: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:188:17: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:228:27: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:238:13: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:339:19: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:437:19: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:553:19: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:632:21: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:1028:25: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:1029:28: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:1228:21: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/charset.cpp:994:13: style: Same expression on both sides of '-'. [duplicateExpression] fcitx-unikey-master/unikey/charset.cpp:1003:13: style: Same expression on both sides of '-'. [duplicateExpression] fcitx-unikey-master/unikey/charset.cpp:924:8: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] fcitx-unikey-master/unikey/charset.cpp:919:9: note: ret is assigned fcitx-unikey-master/unikey/charset.cpp:924:8: note: ret is overwritten fcitx-unikey-master/unikey/charset.cpp:106:16: style: The scope of the variable 'ch' can be reduced. [variableScope] fcitx-unikey-master/unikey/charset.cpp:284:17: style: The scope of the variable 'w3' can be reduced. [variableScope] fcitx-unikey-master/unikey/charset.cpp:285:24: style: The scope of the variable 'third' can be reduced. [variableScope] fcitx-unikey-master/unikey/charset.cpp:460:10: style: The scope of the variable 'digit' can be reduced. [variableScope] fcitx-unikey-master/unikey/charset.cpp:497:10: style: The scope of the variable 'digit' can be reduced. [variableScope] fcitx-unikey-master/unikey/charset.cpp:575:10: style: The scope of the variable 'digit' can be reduced. [variableScope] fcitx-unikey-master/unikey/charset.cpp:707:10: style: The scope of the variable 'dw' can be reduced. [variableScope] fcitx-unikey-master/unikey/charset.cpp:159:11: style: Variable 'pChar' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/charset.cpp:192:53: style: Parameter 'uniChars' can be declared as pointer to const [constParameterPointer] fcitx-unikey-master/unikey/charset.cpp:228:19: style: Variable 'pInfo' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/charset.cpp:339:11: style: Variable 'pChar' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/charset.cpp:437:11: style: Variable 'pChar' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/charset.cpp:553:11: style: Variable 'pChar' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/charset.cpp:632:13: style: Variable 'pChar' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/charset.cpp:1143:48: style: Parameter 'pOptions' can be declared as pointer to const [constParameterPointer] fcitx-unikey-master/unikey/charset.cpp:1169:68: style: Parameter 'precomposedChars' can be declared as pointer to const [constParameterPointer] fcitx-unikey-master/unikey/charset.cpp:1228:13: style: Variable 'pChar' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/charset.cpp:228:54: warning: Uninitialized variable: &key.stdIndex [uninitvar] fcitx-unikey-master/unikey/ukengine.cpp:1124:32: warning: Either the condition 'm_current<0' is redundant or the array 'm_buffer[128]' is accessed at index -1, which is out of bounds. [negativeIndex] fcitx-unikey-master/unikey/ukengine.cpp:1119:19: note: Assuming that condition 'm_current<0' is not redundant fcitx-unikey-master/unikey/ukengine.cpp:1123:5: note: m_current is decremented', new value is -1 fcitx-unikey-master/unikey/ukengine.cpp:1124:32: note: Negative array index fcitx-unikey-master/unikey/ukengine.cpp:2032:41: style: Array index 'rid' is used before limits check. [arrayIndexThenCheck] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_changePos' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_backs' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_keyStrokes' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_pOutBuf' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_pOutSize' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_outputWritten' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_keyRestoring' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_outType' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2004:11: warning: Member variable 'UkEngine::m_buffer' is not initialized in the constructor. [uninitMemberVar] fcitx-unikey-master/unikey/ukengine.cpp:2273:16: style:inconclusive: Technically the member function 'UkEngine::atWordBeginning' can be const. [functionConst] fcitx-unikey-master/unikey/ukengine.h:72:10: note: Technically the member function 'UkEngine::atWordBeginning' can be const. fcitx-unikey-master/unikey/ukengine.cpp:2273:16: note: Technically the member function 'UkEngine::atWordBeginning' can be const. fcitx-unikey-master/unikey/ukengine.cpp:1826:15: style:inconclusive: Technically the member function 'UkEngine::writeOutput' can be const. [functionConst] fcitx-unikey-master/unikey/ukengine.h:145:9: note: Technically the member function 'UkEngine::writeOutput' can be const. fcitx-unikey-master/unikey/ukengine.cpp:1826:15: note: Technically the member function 'UkEngine::writeOutput' can be const. fcitx-unikey-master/unikey/ukengine.cpp:1860:15: style:inconclusive: Technically the member function 'UkEngine::getSeqSteps' can be const. [functionConst] fcitx-unikey-master/unikey/ukengine.h:147:9: note: Technically the member function 'UkEngine::getSeqSteps' can be const. fcitx-unikey-master/unikey/ukengine.cpp:1860:15: note: Technically the member function 'UkEngine::getSeqSteps' can be const. fcitx-unikey-master/unikey/ukengine.cpp:937:15: style:inconclusive: Technically the member function 'UkEngine::getTonePosition' can be const. [functionConst] fcitx-unikey-master/unikey/ukengine.h:148:9: note: Technically the member function 'UkEngine::getTonePosition' can be const. fcitx-unikey-master/unikey/ukengine.cpp:937:15: note: Technically the member function 'UkEngine::getTonePosition' can be const. fcitx-unikey-master/unikey/ukengine.cpp:2374:16: style:inconclusive: Technically the member function 'UkEngine::lastWordHasVnMark' can be const. [functionConst] fcitx-unikey-master/unikey/ukengine.h:154:10: note: Technically the member function 'UkEngine::lastWordHasVnMark' can be const. fcitx-unikey-master/unikey/ukengine.cpp:2374:16: note: Technically the member function 'UkEngine::lastWordHasVnMark' can be const. fcitx-unikey-master/unikey/ukengine.cpp:302:20: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:303:20: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:317:20: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:318:20: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:332:18: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:333:18: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:471:23: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:485:23: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:2164:32: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:2178:35: style: C-style pointer casting [cstyleCast] fcitx-unikey-master/unikey/ukengine.cpp:2164:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/ukengine.cpp:2178:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] fcitx-unikey-master/unikey/ukengine.cpp:1348:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] fcitx-unikey-master/unikey/ukengine.cpp:1135:47: style: The scope of the variable 'newTonePos' can be reduced. [variableScope] fcitx-unikey-master/unikey/ukengine.cpp:1136:30: style: The scope of the variable 'newVs' can be reduced. [variableScope] fcitx-unikey-master/unikey/ukengine.cpp:1388:24: style: The scope of the variable 'tonePos' can be reduced. [variableScope] fcitx-unikey-master/unikey/ukengine.cpp:1388:33: style: The scope of the variable 'newTonePos' can be reduced. [variableScope] fcitx-unikey-master/unikey/ukengine.cpp:2254:16: style: The scope of the variable 'lexi' can be reduced. [variableScope] fcitx-unikey-master/unikey/ukengine.cpp:353:20: style: Variable 'vInfo' can be declared as reference to const [constVariableReference] fcitx-unikey-master/unikey/ukengine.cpp:378:20: style: Variable 'vInfo' can be declared as reference to const [constVariableReference] fcitx-unikey-master/unikey/ukengine.cpp:382:18: style: Variable 'cInfo' can be declared as reference to const [constVariableReference] fcitx-unikey-master/unikey/ukengine.cpp:939:20: style: Variable 'info' can be declared as reference to const [constVariableReference] fcitx-unikey-master/unikey/ukengine.cpp:992:20: style: Variable 'info' can be declared as reference to const [constVariableReference] fcitx-unikey-master/unikey/ukengine.cpp:1124:16: style: Variable 'entry' can be declared as reference to const [constVariableReference] fcitx-unikey-master/unikey/ukengine.cpp:1227:44: style: Parameter 'ev' can be declared as reference to const [constParameterReference] fcitx-unikey-master/unikey/ukengine.cpp:1231:16: style: Variable 'entry' can be declared as reference to const [constVariableReference] fcitx-unikey-master/unikey/ukengine.cpp:1355:40: style: Parameter 'ev' can be declared as reference to const [constParameterReference] fcitx-unikey-master/unikey/ukengine.cpp:1513:45: style: Parameter 'ev' can be declared as reference to const [constParameterReference] fcitx-unikey-master/unikey/ukengine.cpp:1717:48: style: Parameter 'ev' can be declared as reference to const [constParameterReference] fcitx-unikey-master/unikey/ukengine.cpp:2057:39: style: Parameter 'ev' can be declared as reference to const [constParameterReference] fcitx-unikey-master/unikey/ukengine.cpp:302:15: style: Variable 't1' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:303:15: style: Variable 't2' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:317:15: style: Variable 't1' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:318:15: style: Variable 't2' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:332:13: style: Variable 't1' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:333:13: style: Variable 't2' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:361:25: style: Variable 'kVseq' can be declared as const array [constVariable] fcitx-unikey-master/unikey/ukengine.cpp:471:15: style: Variable 'pInfo' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:485:15: style: Variable 'pInfo' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:647:17: style: Variable 'v' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:801:17: style: Variable 'v' can be declared as pointer to const [constVariablePointer] fcitx-unikey-master/unikey/ukengine.cpp:471:43: error: Uninitialized variable: &key.vs [uninitvar] fcitx-unikey-master/unikey/ukengine.cpp:485:43: error: Uninitialized variable: &key.cs [uninitvar] fcitx-unikey-master/unikey/ukengine.cpp:672:25: style: Variable 'toneRemoved' is assigned a value that is never used. [unreadVariable] fcitx-unikey-master/unikey/ukengine.cpp:710:25: style: Variable 'toneRemoved' is assigned a value that is never used. [unreadVariable] fcitx-unikey-master/unikey/ukengine.cpp:751:29: style: Variable 'toneRemoved' is assigned a value that is never used. [unreadVariable] fcitx-unikey-master/unikey/ukengine.cpp:1396:28: style: Variable 'newVs' is assigned a value that is never used. [unreadVariable] diff: head fcitx-unikey-master/unikey/byteio.cpp:471:34: style:inconclusive: Function 'attach' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head fcitx-unikey-master/unikey/ukengine.cpp:1355:40: style: Parameter 'ev' can be declared as reference to const [constParameterReference] head fcitx-unikey-master/unikey/ukengine.cpp:1513:45: style: Parameter 'ev' can be declared as reference to const [constParameterReference] head fcitx-unikey-master/unikey/ukengine.cpp:1717:48: style: Parameter 'ev' can be declared as reference to const [constParameterReference] DONE