2025-06-28 14:41 ftp://ftp.de.debian.org/debian/pool/main/libp/libpinyin/libpinyin_2.10.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -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: b6dd286 (2025-06-27 13:53:34 +0200) count: 1802 1830 elapsed-time: 12.8 4.8 head-timing-info: old-timing-info: head results: libpinyin-2.10.0/src/lookup/lookup.h:47:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/lookup.cpp:42:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/lookup.h:46:5: style: Struct 'lookup_value_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/lookup/lookup.cpp:40:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/lookup.cpp:28:34: style:inconclusive: Function 'convert_to_utf8' argument 2 names different: declaration 'match_result' definition 'result'. [funcArgNamesDifferent] libpinyin-2.10.0/src/lookup/lookup.h:79:34: note: Function 'convert_to_utf8' argument 2 names different: declaration 'match_result' definition 'result'. libpinyin-2.10.0/src/lookup/lookup.cpp:28:34: note: Function 'convert_to_utf8' argument 2 names different: declaration 'match_result' definition 'result'. libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:357:26: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:420:30: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:482:26: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:550:30: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:306:30: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:349:30: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:39:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:69:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lookup_value_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:132:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PhraseTokens [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:237:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:277:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:316:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:336:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:357:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:388:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:165:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lookup_value_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:204:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChewingKey [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:237:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PhraseIndexRanges [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:332:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:359:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BigramPhraseItem [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:426:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:454:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:482:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:517:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:579:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:761:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:55:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup_heap.h:61:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nstore [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:253:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nstore [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:283:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nstore [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:306:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:335:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nbest [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:349:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:377:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:506:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:560:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:586:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BigramPhraseItem [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:652:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:680:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:715:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nstore [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:756:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PhraseIndexRanges [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:856:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:140:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChewingKey [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:181:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:348:20: style:inconclusive: Technically the member function 'pinyin::PhraseLookup::save_next_step' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phrase_lookup.h:77:10: note: Technically the member function 'pinyin::PhraseLookup::save_next_step' can be const. libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:348:20: note: Technically the member function 'pinyin::PhraseLookup::save_next_step' can be const. libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:105:5: warning: Class 'PhraseLookup' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:105:5: warning: Class 'PhraseLookup' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:49:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:50:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:79:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:86:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:226:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:230:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:245:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:264:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:285:21: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:359:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:363:48: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:364:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:368:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:387:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:398:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:401:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:413:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:422:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:428:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:348:99: style:inconclusive: Function 'save_next_step' argument 3 names different: declaration 'next_step' definition 'next_value'. [funcArgNamesDifferent] libpinyin-2.10.0/src/lookup/phrase_lookup.h:77:89: note: Function 'save_next_step' argument 3 names different: declaration 'next_step' definition 'next_value'. libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:348:99: note: Function 'save_next_step' argument 3 names different: declaration 'next_step' definition 'next_value'. libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:141:17: style: Local variable 'result' shadows outer argument [shadowArgument] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:120:49: note: Shadowed declaration libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:141:17: note: Shadow variable libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:421:18: style: Local variable 'result' shadows outer argument [shadowArgument] libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:382:45: note: Shadowed declaration libpinyin-2.10.0/src/lookup/phrase_lookup.cpp:421:18: note: Shadow variable libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:472:21: style:inconclusive: Technically the member function 'pinyin::PinyinLookup2::save_next_step' can be const. [functionConst] libpinyin-2.10.0/src/lookup/pinyin_lookup2.h:123:10: note: Technically the member function 'pinyin::PinyinLookup2::save_next_step' can be const. libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:472:21: note: Technically the member function 'pinyin::PinyinLookup2::save_next_step' can be const. libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:687:21: performance:inconclusive: Technically the member function 'pinyin::PinyinLookup2::clear_constraint' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/lookup/pinyin_lookup2.h:224:10: note: Technically the member function 'pinyin::PinyinLookup2::clear_constraint' can be static (but you may consider moving to unnamed namespace). libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:687:21: note: Technically the member function 'pinyin::PinyinLookup2::clear_constraint' can be static (but you may consider moving to unnamed namespace). libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:204:5: warning: Class 'PinyinLookup2' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:204:5: warning: Class 'PinyinLookup2' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:42:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:46:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:64:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:82:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:106:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:108:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:134:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:147:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:148:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:174:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:181:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:245:49: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:279:54: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:318:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:322:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:337:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:355:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:362:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:394:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:399:52: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:484:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:488:48: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:488:76: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:492:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:516:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:523:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:527:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:529:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:542:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:552:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:558:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:582:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:586:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:636:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:671:41: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:679:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:692:41: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:700:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:712:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:731:49: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:741:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:689:15: style: Checking if unsigned expression 'index' is less than zero. [unsignedLessThanZero] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:551:18: style: Local variable 'result' shadows outer argument [shadowArgument] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:511:46: note: Shadowed declaration libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:551:18: note: Shadow variable libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:93:53: style: Parameter 'lhs' can be declared as pointer to const. However it seems that 'lookup_value_less_than' is a callback function, if 'lhs' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:116:40: note: You might need to cast the function pointer here libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:93:53: note: Parameter 'lhs' can be declared as pointer to const libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:93:75: style: Parameter 'rhs' can be declared as pointer to const. However it seems that 'lookup_value_less_than' is a callback function, if 'rhs' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:116:40: note: You might need to cast the function pointer here libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:93:75: note: Parameter 'rhs' can be declared as pointer to const libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:245:31: style: Variable 'cur_constraint' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:279:35: style: Variable 'next_constraint' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:337:36: style: Variable 'range' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:354:27: style: Variable 'constraint' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:586:31: style: Variable 'constraint' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/lookup/pinyin_lookup2.cpp:741:31: style: Variable 'constraint' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:135:5: warning: Member variable 'trellis_constraint_t::m_constraint_step' is not initialized in the constructor. [uninitMemberVar] libpinyin-2.10.0/src/lookup/phonetic_lookup_heap.h:45:12: style:inconclusive: Technically the member function 'pinyin::trellis_node::length' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup_heap.h:46:29: style:inconclusive: Technically the member function 'pinyin::trellis_node::begin' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup_heap.h:47:29: style:inconclusive: Technically the member function 'pinyin::trellis_node::end' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup_heap.h:98:12: performance:inconclusive: Technically the member function 'pinyin::trellis_node < 1 >::length' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/lookup/phonetic_lookup_heap.h:99:29: style:inconclusive: Technically the member function 'pinyin::trellis_node < 1 >::begin' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup_heap.h:100:29: style:inconclusive: Technically the member function 'pinyin::trellis_node < 1 >::end' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:244:10: style:inconclusive: Technically the member function 'pinyin::ForwardPhoneticTrellis::fill_prefixes' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:301:10: style:inconclusive: Technically the member function 'pinyin::ForwardPhoneticTrellis::insert_candidate' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:88:34: style:inconclusive: Technically the member function 'pinyin::ForwardPhoneticConstraints::clear_constraint' can be const. [functionConst] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:444:10: note: Technically the member function 'pinyin::ForwardPhoneticConstraints::clear_constraint' can be const. libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:88:34: note: Technically the member function 'pinyin::ForwardPhoneticConstraints::clear_constraint' can be const. libpinyin-2.10.0/src/lookup/phonetic_lookup.h:190:9: warning: Class 'ForwardPhoneticTrellis' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:190:9: warning: Class 'ForwardPhoneticTrellis' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:428:9: warning: Class 'ForwardPhoneticConstraints' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:428:9: warning: Class 'ForwardPhoneticConstraints' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:469:9: warning: Class 'NBestMatchResults' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:469:9: warning: Class 'NBestMatchResults' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:723:9: warning: Class 'PhoneticLookup' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:723:9: warning: Class 'PhoneticLookup' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:54:5: style: Struct 'trellis_value_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:426:5: style: Class 'ForwardPhoneticConstraints' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:152:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:154:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:211:42: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:219:46: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:248:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:256:54: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:261:50: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:264:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:265:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:274:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:283:44: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:291:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:303:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:304:42: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:308:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:315:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:315:70: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:319:44: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:346:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:347:42: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:351:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:357:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:376:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:386:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:453:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:546:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:565:49: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:589:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:622:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:627:56: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:831:44: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:859:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:914:49: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:30:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:34:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:52:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:72:42: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:80:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:92:42: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:100:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:112:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:130:50: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:143:46: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:179:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:184:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:195:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:89:15: style: Checking if unsigned expression 'index' is less than zero. [unsignedLessThanZero] libpinyin-2.10.0/src/lookup/phonetic_lookup.cpp:143:32: style: Variable 'constraint' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/lookup/phonetic_lookup.h:565:40: style: Variable 'range' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:111:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:152:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:243:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:329:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USE_TONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:448:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:466:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:479:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:499:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:533:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:630:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PINYIN_CORRECT_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:667:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:692:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:709:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:778:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:804:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:902:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:927:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1030:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1236:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1316:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1377:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1392:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FacadePhraseIndex [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1432:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1573:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZHUYIN_CORRECT_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1589:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZHUYIN_CORRECT_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1621:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZHUYIN_CORRECT_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1633:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1717:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1773:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1845:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DYNAMIC_ADJUST [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:1874:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FacadePhraseIndex [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2197:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2315:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2376:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2416:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2463:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2527:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_INTEGER_OVERFLOW [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2600:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FacadePhraseIndex [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2654:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FacadePhraseIndex [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2766:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHEWING_ZERO_MIDDLE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2793:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2807:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2828:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:2841:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3106:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PhraseTokens [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3171:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3218:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3281:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3317:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IS_PINYIN [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3361:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IS_PINYIN [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3391:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IS_PINYIN [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3450:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IS_PINYIN [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3528:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IS_ZHUYIN [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3586:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_DICTIONARY [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3679:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3719:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_DICTIONARY [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:3737:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_DICTIONARY [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:206:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_length [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:222:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_length [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:156:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:218:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:275:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:358:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:498:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_REMOVE_ITEM_DONOT_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:514:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:557:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:711:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:753:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c_separate [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:766:138: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:836:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c_separate [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:872:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:434:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:625:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_INSERT_ITEM_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:656:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_REMOVE_ITEM_DONOT_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1056:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IndexItem [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:188:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:26:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entries [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:68:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entries [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:157:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:175:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:193:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:214:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:92:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:157:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:217:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_INSERT_ITEM_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:246:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_REMOVE_ITEM_DONOT_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 1 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 2 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 3 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 4 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 5 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 6 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 7 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 8 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 9 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 10 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 11 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 12 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 13 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 14 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 15 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:272:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PinyinIndexItem2 < 16 > [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:111:9: performance: Variable 'm_token' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/pinyin.cpp:217:12: warning: Identical condition and return expression 'exists', return value is always false [identicalConditionAfterEarlyExit] libpinyin-2.10.0/src/pinyin.cpp:191:9: note: If condition 'exists' is true, the function will return/exit libpinyin-2.10.0/src/pinyin.cpp:217:12: note: Returning identical expression 'exists' libpinyin-2.10.0/src/storage/bdb_utils.h:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACH_READONLY [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/bdb_utils.h:55:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:54:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:67:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:126:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:139:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:228:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:287:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:393:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FILE_CORRUPTION [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:467:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FILE_CORRUPTION [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:483:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:554:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:403:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:296:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:237:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:168:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/pinyin.cpp:641:9: error: Memory leak: ucs4_phrase [memleak] libpinyin-2.10.0/src/pinyin.cpp:644:9: error: Memory leak: ucs4_phrase [memleak] libpinyin-2.10.0/src/pinyin.cpp:3212:9: error: Memory leak: ucs4_phrase [memleak] libpinyin-2.10.0/src/pinyin.cpp:3680:9: error: Memory leak: ucs4_phrase [memleak] libpinyin-2.10.0/src/pinyin.cpp:889:9: warning:inconclusive: Possible null pointer dereference: user_gram [nullPointer] libpinyin-2.10.0/src/pinyin.cpp:887:34: note: Assignment 'user_gram=NULL', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:889:9: note: Null pointer dereference libpinyin-2.10.0/src/pinyin.cpp:3745:27: warning:inconclusive: Possible null pointer dereference: item [nullPointer] libpinyin-2.10.0/src/pinyin.cpp:3740:25: note: Assignment 'item=NULL', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:3745:27: note: Null pointer dereference libpinyin-2.10.0/src/pinyin.cpp:3747:5: warning:inconclusive: Possible null pointer dereference: item [nullPointer] libpinyin-2.10.0/src/pinyin.cpp:3740:25: note: Assignment 'item=NULL', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:3747:5: note: Null pointer dereference libpinyin-2.10.0/src/pinyin.cpp:3752:24: warning:inconclusive: Possible null pointer dereference: item [nullPointer] libpinyin-2.10.0/src/pinyin.cpp:3740:25: note: Assignment 'item=NULL', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:3752:24: note: Null pointer dereference libpinyin-2.10.0/src/pinyin.cpp:3756:9: warning:inconclusive: Possible null pointer dereference: item [nullPointer] libpinyin-2.10.0/src/pinyin.cpp:3740:25: note: Assignment 'item=NULL', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:3756:9: note: Null pointer dereference libpinyin-2.10.0/src/pinyin.cpp:546:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:578:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:599:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:602:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:732:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:806:53: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:848:41: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:861:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:885:31: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:905:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1338:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1680:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1681:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1727:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1753:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1757:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1779:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1804:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1891:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1962:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:1998:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2042:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2043:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2044:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2047:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2049:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2071:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2072:21: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2147:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2284:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2320:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2344:60: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2388:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2443:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2469:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2478:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2491:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2860:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:3166:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:3286:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:3646:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/pinyin.cpp:2585:12: style: Redundant initialization for 'retval'. The initialized value is overwritten before it is read. [redundantInitialization] libpinyin-2.10.0/src/pinyin.cpp:2578:17: note: retval is initialized libpinyin-2.10.0/src/pinyin.cpp:2585:12: note: retval is overwritten libpinyin-2.10.0/src/pinyin.cpp:527:27: style: The scope of the variable 'pinyin_table' can be reduced. [variableScope] libpinyin-2.10.0/src/pinyin.cpp:1392:27: style: The scope of the variable 'phrase_index' can be reduced. [variableScope] libpinyin-2.10.0/src/pinyin.cpp:1715:25: style: The scope of the variable 'results' can be reduced. [variableScope] libpinyin-2.10.0/src/pinyin.cpp:1718:13: style: The scope of the variable 'i' can be reduced. [variableScope] libpinyin-2.10.0/src/pinyin.cpp:2512:25: style: The scope of the variable 'results' can be reduced. [variableScope] libpinyin-2.10.0/src/pinyin.cpp:3610:14: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] libpinyin-2.10.0/src/pinyin.cpp:2922:42: style:inconclusive: Function 'pinyin_get_pinyin_key' argument 3 names different: declaration 'key' definition 'ppkey'. [funcArgNamesDifferent] libpinyin-2.10.0/src/pinyin.h:867:42: note: Function 'pinyin_get_pinyin_key' argument 3 names different: declaration 'key' definition 'ppkey'. libpinyin-2.10.0/src/pinyin.cpp:2922:42: note: Function 'pinyin_get_pinyin_key' argument 3 names different: declaration 'key' definition 'ppkey'. libpinyin-2.10.0/src/pinyin.cpp:2945:51: style:inconclusive: Function 'pinyin_get_pinyin_key_rest' argument 3 names different: declaration 'key_rest' definition 'ppkey_rest'. [funcArgNamesDifferent] libpinyin-2.10.0/src/pinyin.h:881:51: note: Function 'pinyin_get_pinyin_key_rest' argument 3 names different: declaration 'key_rest' definition 'ppkey_rest'. libpinyin-2.10.0/src/pinyin.cpp:2945:51: note: Function 'pinyin_get_pinyin_key_rest' argument 3 names different: declaration 'key_rest' definition 'ppkey_rest'. libpinyin-2.10.0/src/pinyin.cpp:3011:40: style:inconclusive: Function 'pinyin_get_pinyin_offset' argument 3 names different: declaration 'offset' definition 'poffset'. [funcArgNamesDifferent] libpinyin-2.10.0/src/pinyin.h:924:40: note: Function 'pinyin_get_pinyin_offset' argument 3 names different: declaration 'offset' definition 'poffset'. libpinyin-2.10.0/src/pinyin.cpp:3011:40: note: Function 'pinyin_get_pinyin_offset' argument 3 names different: declaration 'offset' definition 'poffset'. libpinyin-2.10.0/src/pinyin.cpp:3032:45: style:inconclusive: Function 'pinyin_get_left_pinyin_offset' argument 3 names different: declaration 'left' definition 'pleft'. [funcArgNamesDifferent] libpinyin-2.10.0/src/pinyin.h:938:45: note: Function 'pinyin_get_left_pinyin_offset' argument 3 names different: declaration 'left' definition 'pleft'. libpinyin-2.10.0/src/pinyin.cpp:3032:45: note: Function 'pinyin_get_left_pinyin_offset' argument 3 names different: declaration 'left' definition 'pleft'. libpinyin-2.10.0/src/pinyin.cpp:3064:46: style:inconclusive: Function 'pinyin_get_right_pinyin_offset' argument 3 names different: declaration 'right' definition 'pright'. [funcArgNamesDifferent] libpinyin-2.10.0/src/pinyin.h:952:46: note: Function 'pinyin_get_right_pinyin_offset' argument 3 names different: declaration 'right' definition 'pright'. libpinyin-2.10.0/src/pinyin.cpp:3064:46: note: Function 'pinyin_get_right_pinyin_offset' argument 3 names different: declaration 'right' definition 'pright'. libpinyin-2.10.0/src/pinyin.cpp:3195:43: style:inconclusive: Function 'pinyin_get_character_offset' argument 4 names different: declaration 'length' definition 'plength'. [funcArgNamesDifferent] libpinyin-2.10.0/src/pinyin.h:968:43: note: Function 'pinyin_get_character_offset' argument 4 names different: declaration 'length' definition 'plength'. libpinyin-2.10.0/src/pinyin.cpp:3195:43: note: Function 'pinyin_get_character_offset' argument 4 names different: declaration 'length' definition 'plength'. libpinyin-2.10.0/src/pinyin.cpp:854:37: style: Local variable 'freq' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:841:33: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:854:37: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:857:41: style: Local variable 'pinyins' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:844:37: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:857:41: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:861:38: style: Local variable 'strs' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:848:34: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:861:38: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:965:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:939:22: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:965:26: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:983:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:939:22: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:983:26: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:1049:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:1042:22: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:1049:26: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:1069:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:1042:22: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:1069:26: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:1275:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:1248:22: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:1275:26: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:1726:21: style: Local variable 'i' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/pinyin.cpp:1718:13: note: Shadowed declaration libpinyin-2.10.0/src/pinyin.cpp:1726:21: note: Shadow variable libpinyin-2.10.0/src/pinyin.cpp:3279:19: style: Variable 'result' can be declared as reference to const [constVariableReference] libpinyin-2.10.0/src/pinyin.cpp:690:58: style: Parameter 'iter' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:1358:60: style: Parameter 'instance' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:1611:59: style: Parameter 'instance' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:1680:26: style: Variable 'item_lhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:1681:26: style: Variable 'item_rhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:1770:48: style: Parameter 'template_item' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:1778:32: style: Variable 'range' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:2046:26: style: Variable 'candidate_lhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:2048:26: style: Variable 'candidate_rhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:2413:25: style: Variable 'phrase_index' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:2460:25: style: Variable 'phrase_index' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/pinyin.cpp:2764:58: style: Parameter 'instance' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:2765:51: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:2866:53: style: Parameter 'candidate' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:2873:55: style: Parameter 'candidate' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:2880:60: style: Parameter 'candidate' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:2967:60: style: Parameter 'key_rest' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:3099:42: style: Parameter 'phrase' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:3712:52: style: Parameter 'candidate' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:3726:56: style: Parameter 'candidate' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/pinyin.cpp:541:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:1415:21: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:1415:17: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:1883:9: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:1885:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:2381:9: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:2383:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/storage/zhuyin_parser2.h:136:9: performance: Variable 'm_options' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:188:9: performance: Variable 'm_token' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/pinyin.cpp:2413:38: style: Variable 'phrase_index' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:2585:12: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:2663:13: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:2663:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:3114:20: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/pinyin.cpp:3114:13: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/storage/chewing_key.h:111:13: style:inconclusive: Technically the member function '_ChewingKeyRest::length' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 1 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 1 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 2 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 2 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 3 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 3 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 4 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 4 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 5 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 5 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 6 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 6 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 7 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 7 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 8 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 8 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 9 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 9 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 10 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 10 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 11 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 11 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 12 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 12 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 13 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 13 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 14 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 14 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 15 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 15 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:85:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 16 >::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:149:9: performance:inconclusive: Technically the member function 'ChewingTableEntry < 16 >::convert_suggestion' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 1 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 2 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 3 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 4 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 5 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 6 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 7 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 8 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 9 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 10 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 11 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 12 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 13 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 14 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 15 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:54:9: style:inconclusive: Technically the member function 'PrefixLessThanWithTones < 16 >::prefix_compare_with_tones' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 1 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 2 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 3 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 4 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 5 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 6 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 7 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 8 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 9 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 10 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 11 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 12 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 13 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 14 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 15 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones < 16 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/pinyin_parser2.h:156:14: style: The destructor '~FullPinyinParser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:104:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:156:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:160:18: style: The function 'parse_one_key' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:118:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:160:18: note: Function in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:165:17: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:131:17: note: Virtual function in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:165:17: note: Function in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:197:14: style: The destructor '~DoublePinyinParser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:104:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:197:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:199:18: style: The function 'parse_one_key' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:118:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:199:18: note: Function in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:201:17: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:131:17: note: Virtual function in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:201:17: note: Function in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:217:14: style: The destructor '~PinyinDirectParser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:104:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:217:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:219:18: style: The function 'parse_one_key' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:118:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:219:18: note: Function in derived class libpinyin-2.10.0/src/storage/pinyin_parser2.h:221:17: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:131:17: note: Virtual function in base class libpinyin-2.10.0/src/storage/pinyin_parser2.h:221:17: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:52:14: style: The destructor '~ZhuyinParser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:104:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:52:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:99:14: style: The destructor '~ZhuyinSimpleParser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/zhuyin_parser2.h:52:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:99:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:101:18: style: The function 'parse_one_key' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:118:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:101:18: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:103:17: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:131:17: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:103:17: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:107:18: style: The function 'in_chewing_scheme' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/zhuyin_parser2.h:65:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:107:18: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:143:14: style: The destructor '~ZhuyinDiscreteParser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/zhuyin_parser2.h:52:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:143:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:145:18: style: The function 'parse_one_key' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:118:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:145:18: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:147:17: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:131:17: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:147:17: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:151:18: style: The function 'in_chewing_scheme' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/zhuyin_parser2.h:65:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:151:18: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:168:14: style: The destructor '~ZhuyinDaChenCP26Parser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/zhuyin_parser2.h:52:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:168:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:170:18: style: The function 'parse_one_key' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:118:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:170:18: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:172:17: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:131:17: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:172:17: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:175:18: style: The function 'in_chewing_scheme' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/zhuyin_parser2.h:65:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:175:18: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:188:14: style: The destructor '~ZhuyinDirectParser2' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:104:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:188:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:190:18: style: The function 'parse_one_key' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:118:18: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:190:18: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:192:17: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:131:17: note: Virtual function in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:192:17: note: Function in derived class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:52:14: style: The destructor '~ZhuyinParser2' overrides a destructor in a base class but is identical to the overridden function [uselessOverride] libpinyin-2.10.0/src/storage/pinyin_parser2.h:104:14: note: Virtual destructor in base class libpinyin-2.10.0/src/storage/zhuyin_parser2.h:52:14: note: Destructor in derived class libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:122:19: portability: %ld in format string (no. 4) requires 'long *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:157:13: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:204:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:205:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:220:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:221:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:83:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:84:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:85:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:86:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:87:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:88:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:89:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:90:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:91:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:92:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:93:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:94:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:95:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:96:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:97:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:98:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:162:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:139:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:140:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:191:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:192:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:204:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:205:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:229:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:230:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:255:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:256:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:263:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:264:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:276:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:56:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2.h:57:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/kyotodb_utils.h:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACH_READONLY [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:58:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:87:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:100:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:126:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:213:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:274:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:372:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FILE_CORRUPTION [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:443:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FILE_CORRUPTION [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:505:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOP [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:509:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOP [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:516:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entries [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:528:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:381:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:283:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:222:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:152:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:56:22: style: Variable 'keys_lhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table2.h:57:22: style: Variable 'keys_rhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/ngram.cpp:105:18: performance:inconclusive: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/ngram.h:191:10: note: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). libpinyin-2.10.0/src/storage/ngram.cpp:105:18: note: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). libpinyin-2.10.0/src/storage/ngram.cpp:61:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:62:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:83:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:84:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:96:15: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:136:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:137:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:156:3: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:157:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:181:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:182:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:211:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:212:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:235:3: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:236:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:255:3: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:256:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:309:11: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:310:41: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:314:11: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:315:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram.cpp:60:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:82:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:135:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:155:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:180:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:210:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:234:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:254:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:308:41: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:313:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/ngram.cpp:153:53: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:32:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:40:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:72:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:85:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:130:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:149:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:166:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:181:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:219:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/bdb_utils.h:59:19: warning:inconclusive: Either the condition 'cursorp!=NULL' is redundant or there is possible null pointer dereference: cursorp. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/bdb_utils.h:70:18: note: Assuming that condition 'cursorp!=NULL' is not redundant libpinyin-2.10.0/src/storage/bdb_utils.h:59:19: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_bdb.cpp:67:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:75:17: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/ngram_bdb.cpp:67:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_bdb.cpp:94:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:102:17: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/ngram_bdb.cpp:94:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_bdb.cpp:198:19: warning:inconclusive: Either the condition 'cursorp!=NULL' is redundant or there is possible null pointer dereference: cursorp. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:211:17: note: Assuming that condition 'cursorp!=NULL' is not redundant libpinyin-2.10.0/src/storage/ngram_bdb.cpp:198:19: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_bdb.cpp:237:19: warning:inconclusive: Possible null pointer dereference: gram [nullPointer] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:234:29: note: Assignment 'gram=NULL', assigned value is 0 libpinyin-2.10.0/src/storage/ngram_bdb.cpp:237:19: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_bdb.cpp:243:18: warning:inconclusive: Possible null pointer dereference: gram [nullPointer] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:234:29: note: Assignment 'gram=NULL', assigned value is 0 libpinyin-2.10.0/src/storage/ngram_bdb.cpp:238:15: note: Assuming condition is false libpinyin-2.10.0/src/storage/ngram_bdb.cpp:243:18: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_bdb.cpp:200:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_bdb.cpp:227:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:36:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:44:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:58:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:85:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:115:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:125:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:144:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:154:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:171:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:180:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOP [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:187:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:198:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:165:5: style: Class 'KeyCollectVisitor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:216:19: warning:inconclusive: Possible null pointer dereference: gram [nullPointer] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:213:29: note: Assignment 'gram=NULL', assigned value is 0 libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:216:19: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:222:18: warning:inconclusive: Possible null pointer dereference: gram [nullPointer] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:213:29: note: Assignment 'gram=NULL', assigned value is 0 libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:217:15: note: Assuming condition is false libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:222:18: note: Null pointer dereference libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:128:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:135:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:147:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:148:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:157:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:206:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:172:40: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:761:31: style:inconclusive: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table.h:75:10: note: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:761:31: note: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:865:31: style:inconclusive: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:44:10: note: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:865:31: note: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:314:5: warning: Class 'ChewingLengthIndexLevel' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:314:5: warning: Class 'ChewingLengthIndexLevel' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/storage/chewing_large_table.h:64:5: style: Class 'ChewingBitmapIndexLevel' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table.h:106:5: style: Class 'ChewingLargeTable' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/chewing_large_table.h:113:42: style: Return value 'm_bitmap_table.set_options(options)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/chewing_large_table.h:113:42: note: Calling function 'set_options' returns 1 libpinyin-2.10.0/src/storage/chewing_large_table.h:113:42: note: Return value 'm_bitmap_table.set_options(options)' is always true libpinyin-2.10.0/src/storage/chewing_large_table.h:120:35: style: Return value 'm_bitmap_table.load(chunk,0,chunk->size())' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/chewing_large_table.h:120:35: note: Calling function 'load' returns 1 libpinyin-2.10.0/src/storage/chewing_large_table.h:120:35: note: Return value 'm_bitmap_table.load(chunk,0,chunk->size())' is always true libpinyin-2.10.0/src/storage/chewing_large_table.h:125:36: style: Return value 'm_bitmap_table.store(new_chunk,0,end)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/chewing_large_table.h:125:36: note: Calling function 'store' returns 1 libpinyin-2.10.0/src/storage/chewing_large_table.h:125:36: note: Return value 'm_bitmap_table.store(new_chunk,0,end)' is always true libpinyin-2.10.0/src/storage/chewing_large_table.h:149:39: style: Return value 'm_bitmap_table.mask_out(mask,value)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/chewing_large_table.h:149:39: note: Calling function 'mask_out' returns 1 libpinyin-2.10.0/src/storage/chewing_large_table.h:149:39: note: Return value 'm_bitmap_table.mask_out(mask,value)' is always true libpinyin-2.10.0/src/storage/chewing_large_table.cpp:676:19: portability: %ld in format string (no. 4) requires 'long *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:711:13: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/src/storage/pinyin_phrase3.h:193:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_length [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index_logger.h:161:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index_logger.h:240:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:139:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:461:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:632:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_NO_SUB_PHRASE_INDEX [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:650:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_NO_SUB_PHRASE_INDEX [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:686:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_NO_SUB_PHRASE_INDEX [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:705:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:726:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:744:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:764:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:785:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:803:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.h:824:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_ALREADY_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:35:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:58:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:97:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:104:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:109:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:117:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:153:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_MASK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:185:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_MASK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:212:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_MASK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:222:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:318:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_MASK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:347:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:369:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:412:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:440:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:593:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:612:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:625:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_NO_SUB_PHRASE_INDEX [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:644:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:661:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:691:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:768:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:834:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:330:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:331:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:332:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:333:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:334:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:335:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:336:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:337:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:338:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:339:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:340:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:341:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:342:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:343:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:344:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:345:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:375:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:376:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:377:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:378:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:379:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:380:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:381:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:382:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:383:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:384:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:385:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:386:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:387:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:388:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:389:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:390:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:531:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:532:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:533:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:534:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:535:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:536:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:537:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:538:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:539:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:540:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:541:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:542:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:543:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:544:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:545:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:546:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:585:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:586:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:587:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:588:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:589:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:590:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:591:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:592:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:593:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:594:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:595:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:596:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:597:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:598:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:599:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:600:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:716:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:731:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:733:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:806:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:808:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:896:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:897:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:898:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:899:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:900:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:901:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:902:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:903:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:904:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:905:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:906:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:907:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:908:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:909:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:910:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:911:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:952:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1020:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1021:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1022:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1023:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1024:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1025:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1026:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1027:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1028:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1029:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1030:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1031:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1032:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1033:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1034:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1035:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:404:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:405:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:614:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:615:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:641:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:642:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:931:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:966:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:967:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1049:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1050:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1060:15: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:665:42: style:inconclusive: Function 'load_text' argument 1 names different: declaration 'file' definition 'infile'. [funcArgNamesDifferent] libpinyin-2.10.0/src/storage/chewing_large_table.h:128:27: note: Function 'load_text' argument 1 names different: declaration 'file' definition 'infile'. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:665:42: note: Function 'load_text' argument 1 names different: declaration 'file' definition 'infile'. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:283:43: style: Variable 'phrases' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:294:39: style: Variable 'phrases' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:375:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:376:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:377:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:378:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:379:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:380:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:381:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:382:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:383:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:384:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:385:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:386:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:387:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:388:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:389:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:390:2: style: Variable 'array' can be declared as pointer to const [constVariableReference] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:733:22: style: Variable 'index' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:808:22: style: Variable 'index' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:952:16: style: Variable 'array' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:965:17: style: Variable 'chunk_begin' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:965:39: style: Variable 'chunk_end' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:1048:33: style: Variable 'end' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:121:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:129:16: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:121:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:148:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:156:16: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:148:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:32:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:34:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:512:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:513:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:514:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:515:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:516:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:517:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:518:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:519:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:520:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:521:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:522:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:523:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:524:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:525:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:526:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:527:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:573:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:402:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:408:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:295:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:302:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:324:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:240:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:171:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:177:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:32:18: style: Variable 'lhs_chewing' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:34:18: style: Variable 'rhs_chewing' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table2.h:133:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_length [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:153:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_length [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2.h:181:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_length [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/facade_chewing_table2.h:83:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACH_READONLY [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/facade_chewing_table2.h:118:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/facade_chewing_table2.h:144:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/facade_chewing_table2.h:170:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_NO_USER_TABLE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/facade_chewing_table2.h:187:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_NO_USER_TABLE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:357:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:418:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:447:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:508:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:145:25: style:inconclusive: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_index.h:364:13: note: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. libpinyin-2.10.0/src/storage/phrase_index.cpp:145:25: note: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. libpinyin-2.10.0/src/storage/phrase_index.cpp:610:24: style:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_index.h:593:9: note: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. libpinyin-2.10.0/src/storage/phrase_index.cpp:610:24: note: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. libpinyin-2.10.0/src/storage/phrase_index.h:615:13: style:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::get_phrase_index_total_freq' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_index.h:725:10: performance:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::clear_ranges' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/phrase_index.h:743:10: performance:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::destroy_ranges' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/phrase_index.h:784:10: performance:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::clear_tokens' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/phrase_index.h:802:10: performance:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::destroy_tokens' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/phrase_index_logger.h:80:9: warning: Class 'PhraseIndexLogger' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/storage/phrase_index_logger.h:80:9: warning: Class 'PhraseIndexLogger' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/storage/phrase_index.h:692:16: warning: Identical condition and return expression 'result', return value is always 0 [identicalConditionAfterEarlyExit] libpinyin-2.10.0/src/storage/phrase_index.h:689:14: note: If condition 'result' is true, the function will return/exit libpinyin-2.10.0/src/storage/phrase_index.h:692:16: note: Returning identical expression 'result' libpinyin-2.10.0/src/storage/phrase_index.cpp:870:9: style: Condition '!_compute_new_header(oldlogger,mask,value,new_total_freq)' is always false [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phrase_index.cpp:870:29: note: Calling function '_compute_new_header' returns 1 libpinyin-2.10.0/src/storage/phrase_index.cpp:870:9: note: Condition '!_compute_new_header(oldlogger,mask,value,new_total_freq)' is always false libpinyin-2.10.0/src/storage/phrase_index.cpp:541:19: portability: %ld in format string (no. 4) requires 'long *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] libpinyin-2.10.0/src/storage/phrase_index_logger.h:176:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index_logger.h:184:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index_logger.h:194:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index_logger.h:197:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index_logger.h:206:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index_logger.h:209:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.h:101:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.h:102:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.h:113:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.h:114:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.h:140:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:59:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:118:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:203:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:227:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:343:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:591:41: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:637:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:638:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_index.h:149:55: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:66:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:73:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:125:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:130:50: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_index.cpp:365:67: style: Parameter 'end' can be declared as reference to const [constParameterReference] libpinyin-2.10.0/src/storage/phrase_index.cpp:113:66: style: Parameter 'keys' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/phrase_index.h:136:55: style: Parameter 'keys' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/phrase_index.h:709:30: style: Variable 'sub_phrase' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/phrase_index.h:768:30: style: Variable 'sub_phrase' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/phrase_index_logger.h:252:20: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/storage/phrase_index_logger.h:263:20: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/storage/phrase_large_table3.h:77:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3.h:97:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_index.cpp:81:24: style: Variable 'total_freq' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:29:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:62:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_INSERT_ITEM_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:83:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_REMOVE_ITEM_DONOT_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:110:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:135:19: portability: %ld in format string (no. 4) requires 'long *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] libpinyin-2.10.0/src/storage/phrase_large_table3.h:102:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:31:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:32:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:56:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:57:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:73:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:74:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:93:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:94:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:102:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:103:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3.cpp:114:15: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:65:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:108:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:139:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:197:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:302:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_REMOVE_ITEM_DONOT_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:318:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:360:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:523:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c_separate [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:535:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:592:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c_separate [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:625:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:239:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:427:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_INSERT_ITEM_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:458:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_REMOVE_ITEM_DONOT_EXISTS [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:805:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IndexItem [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:47:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:67:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:79:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:95:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:117:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:154:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:183:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:213:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:272:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:339:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:386:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:50:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:70:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:77:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:95:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:112:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:141:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:167:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:198:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_NONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:253:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:313:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:368:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOP [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:352:9: performance: Variable 'm_mask' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:353:9: performance: Variable 'm_value' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:136:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:144:16: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:136:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:163:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:171:16: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:163:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:391:18: warning:inconclusive: Either the condition 'cursorp!=NULL' is redundant or there is possible null pointer dereference: cursorp. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:409:17: note: Assuming that condition 'cursorp!=NULL' is not redundant libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:391:18: note: Null pointer dereference libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:46:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:48:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:191:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:227:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:278:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:300:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:344:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:173:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:186:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:204:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:259:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:268:16: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:295:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:301:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:316:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:326:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:334:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:31:9: style: The scope of the variable 'result' can be reduced. [variableScope] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:361:16: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:49:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:51:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:34:9: style: The scope of the variable 'result' can be reduced. [variableScope] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:399:13: style: Local variable 'ret' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:390:9: note: Shadowed declaration libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:399:13: note: Shadow variable libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:30:36: style: Parameter 'lhs' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/phrase_large_table3_bdb.cpp:30:50: style: Parameter 'rhs' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:33:36: style: Parameter 'lhs' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:33:50: style: Parameter 'rhs' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/punct_table.cpp:29:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table.cpp:42:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table.cpp:58:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table.cpp:101:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table.cpp:131:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ucs4_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table.cpp:29:5: warning: Class 'PunctTableEntry' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/storage/punct_table.cpp:29:5: warning: Class 'PunctTableEntry' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/storage/punct_table.cpp:107:9: style: Condition '!escape(punct)' is always false [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/punct_table.cpp:107:16: note: Calling function 'escape' returns 1 libpinyin-2.10.0/src/storage/punct_table.cpp:107:9: note: Condition '!escape(punct)' is always false libpinyin-2.10.0/src/storage/punct_table.cpp:120:9: style: Condition '!escape(punct)' is always false [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/punct_table.cpp:120:16: note: Calling function 'escape' returns 1 libpinyin-2.10.0/src/storage/punct_table.cpp:120:9: note: Condition '!escape(punct)' is always false libpinyin-2.10.0/src/storage/punct_table.cpp:190:19: portability: %ld in format string (no. 4) requires 'long *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] libpinyin-2.10.0/src/storage/punct_table.cpp:81:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table.cpp:82:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table.cpp:92:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table.cpp:123:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table.cpp:124:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table.cpp:82:14: style: Variable 'end' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/punct_table.cpp:124:14: style: Variable 'end' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:30:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:42:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:57:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:78:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:115:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:141:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:163:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:183:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:198:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:31:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:38:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:55:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:72:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_entry [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:124:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:145:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:156:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:173:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:182:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOP [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:189:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_db [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:97:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:105:16: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:97:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:124:11: warning: Either the condition 'tmp_db!=NULL' is redundant or there is possible null pointer dereference: tmp_db. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:132:16: note: Assuming that condition 'tmp_db!=NULL' is not redundant libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:124:11: note: Null pointer dereference libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:215:19: warning:inconclusive: Either the condition 'cursorp!=NULL' is redundant or there is possible null pointer dereference: cursorp. [nullPointerRedundantCheck] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:228:17: note: Assuming that condition 'cursorp!=NULL' is not redundant libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:215:19: note: Null pointer dereference libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:149:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:169:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:188:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_bdb.cpp:217:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:167:5: style: Class 'KeyCollectVisitor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:130:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:138:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:149:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:150:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:159:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:174:40: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/table_info.cpp:65:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/table_info.cpp:98:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/table_info.cpp:143:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESERVED [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/table_info.cpp:191:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/table_info.cpp:321:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/table_info.cpp:371:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:456:9: performance: Variable 'm_mask' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:456:24: performance: Variable 'm_value' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/storage/tag_utility.cpp:369:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/tag_utility.cpp:387:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:482:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:483:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:484:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:485:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:486:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:487:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:488:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:489:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:490:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:491:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:492:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:493:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:494:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:495:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:496:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:497:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:380:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:384:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:394:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:402:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:282:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:289:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:298:16: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:325:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:331:12: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:225:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:155:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:159:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:172:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:36:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:38:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:539:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/table_info.cpp:47:19: warning: Member variable 'SystemTableInfo2::m_table_database_format_type' is not initialized in the constructor. [uninitMemberVar] libpinyin-2.10.0/src/storage/table_info.cpp:47:19: warning: Member variable 'SystemTableInfo2::m_default_tables' is not initialized in the constructor. [uninitMemberVar] libpinyin-2.10.0/src/storage/table_info.cpp:47:19: warning: Member variable 'SystemTableInfo2::m_addon_tables' is not initialized in the constructor. [uninitMemberVar] libpinyin-2.10.0/src/storage/table_info.cpp:306:16: warning: Member variable 'UserTableInfo::m_table_database_format_type' is not initialized in the constructor. [uninitMemberVar] libpinyin-2.10.0/src/storage/table_info.cpp:289:47: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:87:33: note: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:289:47: note: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:293:47: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:89:33: note: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:293:47: note: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:297:26: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:91:12: note: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:297:26: note: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:301:39: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:93:25: note: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:301:39: note: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:392:21: style:inconclusive: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:113:10: note: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:392:21: note: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:415:20: style:inconclusive: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:117:9: note: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:415:20: note: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:99:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/table_info.cpp:100:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/table_info.cpp:226:9: style: Variable 'num' is reassigned a value before the old one has been used. [redundantAssignment] libpinyin-2.10.0/src/storage/table_info.cpp:222:9: note: num is assigned libpinyin-2.10.0/src/storage/table_info.cpp:226:9: note: num is overwritten libpinyin-2.10.0/src/storage/table_info.cpp:191:12: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/table_info.cpp:321:12: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/table_info.cpp:371:12: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/table_info.cpp:226:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:618:31: style:inconclusive: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:39:10: note: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:618:31: note: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:152:5: warning: Class 'PhraseLengthIndexLevel2' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:152:5: warning: Class 'PhraseLengthIndexLevel2' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/storage/phrase_large_table2.h:87:35: style: Return value 'm_bitmap_table.load(chunk,0,chunk->size())' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phrase_large_table2.h:87:35: note: Calling function 'load' returns 1 libpinyin-2.10.0/src/storage/phrase_large_table2.h:87:35: note: Return value 'm_bitmap_table.load(chunk,0,chunk->size())' is always true libpinyin-2.10.0/src/storage/phrase_large_table2.h:92:36: style: Return value 'm_bitmap_table.store(new_chunk,0,end)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phrase_large_table2.h:92:36: note: Calling function 'store' returns 1 libpinyin-2.10.0/src/storage/phrase_large_table2.h:92:36: note: Return value 'm_bitmap_table.store(new_chunk,0,end)' is always true libpinyin-2.10.0/src/storage/phrase_large_table2.h:114:39: style: Return value 'm_bitmap_table.mask_out(mask,value)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phrase_large_table2.h:114:39: note: Calling function 'mask_out' returns 1 libpinyin-2.10.0/src/storage/phrase_large_table2.h:114:39: note: Return value 'm_bitmap_table.mask_out(mask,value)' is always true libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:479:19: portability: %ld in format string (no. 4) requires 'long *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:36:18: style: Variable 'lhs_chewing' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:38:18: style: Variable 'rhs_chewing' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:170:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:171:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:172:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:173:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:174:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:175:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:176:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:177:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:178:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:179:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:180:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:181:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:182:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:183:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:184:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:185:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:214:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:215:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:216:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:217:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:218:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:219:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:220:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:221:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:222:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:223:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:224:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:225:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:226:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:227:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:228:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:229:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:334:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:335:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:336:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:337:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:338:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:339:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:340:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:341:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:342:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:343:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:344:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:345:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:346:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:347:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:348:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:349:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:388:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:389:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:390:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:391:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:392:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:393:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:394:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:395:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:396:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:397:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:398:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:399:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:400:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:401:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:402:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:403:2: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:505:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:507:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:563:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:566:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:648:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:649:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:650:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:651:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:652:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:653:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:654:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:655:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:656:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:657:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:658:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:659:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:660:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:661:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:662:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:663:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:703:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:768:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:769:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:770:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:771:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:772:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:773:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:774:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:775:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:776:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:777:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:778:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:779:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:780:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:781:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:782:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:783:6: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:242:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:243:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:416:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:417:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:443:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:444:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:682:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:717:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:718:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:798:13: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:799:11: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:809:15: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:105:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:106:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:468:42: style:inconclusive: Function 'load_text' argument 1 names different: declaration 'file' definition 'infile'. [funcArgNamesDifferent] libpinyin-2.10.0/src/storage/phrase_large_table2.h:95:27: note: Function 'load_text' argument 1 names different: declaration 'file' definition 'infile'. libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:468:42: note: Function 'load_text' argument 1 names different: declaration 'file' definition 'infile'. libpinyin-2.10.0/src/storage/tag_utility.cpp:211:9: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] libpinyin-2.10.0/src/storage/tag_utility.cpp:210:53: note: outer condition: i::append' can be const. [functionConst] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:92:10: style:inconclusive: Technically the member function 'PhoneticTable < _ChewingKeyRest >::append' can be const. [functionConst] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:40:9: warning: Class 'PhoneticTable < _ChewingKey >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:40:9: warning: Class 'PhoneticTable < _ChewingKey >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:40:9: warning: Class 'PhoneticTable < _ChewingKeyRest >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:40:9: warning: Class 'PhoneticTable < _ChewingKeyRest >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/storage/chewing_large_table2.h:47:5: style: Class 'PrefixLessThanWithTones' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:130:32: style: Return value 'm_keys.clear_all()' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:130:32: note: Calling function 'clear_all' returns 1 libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:130:32: note: Return value 'm_keys.clear_all()' is always true libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:130:59: style: Return value 'm_key_rests.clear_all()' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:130:59: note: Calling function 'clear_all' returns 1 libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:130:59: note: Return value 'm_key_rests.clear_all()' is always true libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:140:31: style: Return value 'm_keys.set_size(size)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:140:31: note: Calling function 'set_size' returns 1 libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:140:31: note: Return value 'm_keys.set_size(size)' is always true libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:140:61: style: Return value 'm_key_rests.set_size(size)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:140:61: note: Calling function 'set_size' returns 1 libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:140:61: note: Return value 'm_key_rests.set_size(size)' is always true libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:166:31: style: Return value 'm_keys.get_item(index,row,key)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:166:31: note: Calling function 'get_item' returns 1 libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:166:31: note: Return value 'm_keys.get_item(index,row,key)' is always true libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:167:33: style: Return value 'm_key_rests.get_item(index,row,key_rest)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:167:33: note: Calling function 'get_item' returns 1 libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:167:33: note: Return value 'm_key_rests.get_item(index,row,key_rest)' is always true libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:330:9: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:339:13: warning: %hd in format string (no. 1) requires 'short' but the argument type is 'unsigned short'. [invalidPrintfArgType_sint] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:339:13: warning: %hd in format string (no. 2) requires 'short' but the argument type is 'unsigned short'. [invalidPrintfArgType_sint] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:44:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:53:16: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:54:21: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:71:21: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:72:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:109:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:110:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:120:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:122:54: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:187:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:188:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:246:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:247:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:286:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:287:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:333:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:334:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:373:30: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:468:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:551:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:620:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:52:31: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:86:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:96:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:105:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:113:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:117:16: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:593:39: style: Checking if unsigned expression 'matrix->get_column_size(start)' is less than zero. [unsignedLessThanZero] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:595:37: style: Checking if unsigned expression 'matrix->get_column_size(end)' is less than zero. [unsignedLessThanZero] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:159:22: style: Local variable 'size' shadows outer function [shadowFunction] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:133:12: note: Shadowed declaration libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:159:22: note: Shadow variable libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:69:22: style: Variable 'next_key_rest' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:319:38: style: Parameter 'matrix' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/storage/phonetic_key_matrix.h:105:18: style: Variable 'column' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:44:14: style: Variable 'key_rest' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:11:15: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:23:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:24:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:31:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:32:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:36:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:37:20: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:51:16: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:24:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:32:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:37:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:51:11: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/lookup/test_phrase_lookup.cpp:35:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/lookup/test_phrase_lookup.cpp:57:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/lookup/test_pinyin_lookup.cpp:38:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:37:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:98:17: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:88:42: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:96:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:102:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:93:13: style: Local variable 'retval' shadows outer variable [shadowVariable] libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:35:10: note: Shadowed declaration libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:93:13: note: Shadow variable libpinyin-2.10.0/tests/storage/test_chewing_table.cpp:93:20: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:60:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACH_READWRITE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_matrix.cpp:38:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChewingKey [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_matrix.cpp:90:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:66:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:95:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:100:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:108:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:52:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:77:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:87:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:119:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:130:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:52:24: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:77:28: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:87:26: style: Variable 'token' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:119:28: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_flexible_ngram.cpp:130:26: style: Variable 'token' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_matrix.cpp:153:17: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_matrix.cpp:153:17: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_matrix.cpp:51:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_matrix.cpp:154:21: style: Local variable 'retval' shadows outer variable [shadowVariable] libpinyin-2.10.0/tests/storage/test_matrix.cpp:88:10: note: Shadowed declaration libpinyin-2.10.0/tests/storage/test_matrix.cpp:154:21: note: Shadow variable libpinyin-2.10.0/tests/storage/test_matrix.cpp:50:32: style: Variable 'onerange' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/lookup/test_pinyin_lookup.cpp:124:17: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/lookup/test_pinyin_lookup.cpp:130:28: warning:inconclusive: Possible null pointer dereference: sentence [nullPointer] libpinyin-2.10.0/tests/lookup/test_pinyin_lookup.cpp:128:31: note: Assignment 'sentence=NULL', assigned value is 0 libpinyin-2.10.0/tests/lookup/test_pinyin_lookup.cpp:130:28: note: Null pointer dereference libpinyin-2.10.0/tests/lookup/test_pinyin_lookup.cpp:121:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/lookup/test_pinyin_lookup.cpp:121:34: style: Variable 'token' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_ngram.cpp:28:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BigramPhraseItem [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_parser2.cpp:61:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_phrase_index.cpp:77:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_phrase_index.cpp:68:16: style: Local variable 'poss' shadows outer variable [shadowVariable] libpinyin-2.10.0/tests/storage/test_phrase_index.cpp:31:12: note: Shadowed declaration libpinyin-2.10.0/tests/storage/test_phrase_index.cpp:68:16: note: Shadow variable libpinyin-2.10.0/tests/storage/test_ngram.cpp:65:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_ngram.cpp:55:9: warning:inconclusive: Possible null pointer dereference: gram [nullPointer] libpinyin-2.10.0/tests/storage/test_ngram.cpp:49:25: note: Assignment 'gram=NULL', assigned value is 0 libpinyin-2.10.0/tests/storage/test_ngram.cpp:55:9: note: Null pointer dereference libpinyin-2.10.0/tests/storage/test_ngram.cpp:32:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_ngram.cpp:57:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_ngram.cpp:74:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_ngram.cpp:32:28: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_ngram.cpp:57:32: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_ngram.cpp:74:19: style: Variable 'token' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/tests/storage/test_phrase_index_logger.cpp:33:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_parser2.cpp:131:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_parser2.cpp:133:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_parser2.cpp:132:30: style: Variable 'key_rest' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:91:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:106:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:187:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:273:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USE_TONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:363:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:381:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:419:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:515:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USE_TONE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:560:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:771:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:849:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:900:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:915:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FacadePhraseIndex [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:951:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentence_start [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1008:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PINYIN_CORRECT_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1024:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PINYIN_CORRECT_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1101:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1152:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1208:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1247:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DYNAMIC_ADJUST [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1474:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1568:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1681:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FacadePhraseIndex [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1786:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1800:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1821:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:1834:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:2070:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PhraseTokens [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:2127:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:2174:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:2238:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:17:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_punct_table.cpp:26:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_punct_table.cpp:49:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACH_CREATE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_punct_table.cpp:31:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_table_info.cpp:52:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/test_chewing.cpp:40:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:71:17: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:84:44: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:66:13: style: Local variable 'retval' shadows outer variable [shadowVariable] libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:15:10: note: Shadowed declaration libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:66:13: note: Shadow variable libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:78:25: style: Local variable 'i' shadows outer variable [shadowVariable] libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:58:16: note: Shadowed declaration libpinyin-2.10.0/tests/storage/test_phrase_table.cpp:78:25: note: Shadow variable libpinyin-2.10.0/tests/test_phrase.cpp:40:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/test_pinyin.cpp:35:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PINYIN_INCOMPLETE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/test_zhuyin.cpp:40:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/tests/test_pinyin.cpp:44:13: style: The scope of the variable 'read' can be reduced. [variableScope] libpinyin-2.10.0/tests/test_pinyin.cpp:60:19: style: Variable 'read' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/segment/mergeseq.cpp:83:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/mergeseq.cpp:154:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/mergeseq.cpp:198:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/ngseg.cpp:71:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/ngseg.cpp:97:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/ngseg.cpp:104:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/spseg.cpp:72:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/spseg.cpp:101:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PhraseTokens [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/spseg.cpp:192:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/spseg.cpp:199:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/mergeseq.cpp:64:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/mergeseq.cpp:85:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/mergeseq.cpp:105:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/mergeseq.cpp:128:25: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/mergeseq.cpp:131:31: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/mergeseq.cpp:64:21: style: Variable 'token_info' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/segment/mergeseq.cpp:82:17: style: Variable 'token_info' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/segment/mergeseq.cpp:131:17: style: Variable 'token_info' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/segment/mergeseq.cpp:99:21: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/segment/mergeseq.cpp:99:17: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/segment/ngseg.cpp:86:9: error: Memory leak: tmp_string [memleak] libpinyin-2.10.0/utils/segment/ngseg.cpp:73:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/ngseg.cpp:81:15: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/ngseg.cpp:95:11: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/ngseg.cpp:208:19: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] libpinyin-2.10.0/utils/segment/ngseg.cpp:204:15: note: state is assigned libpinyin-2.10.0/utils/segment/ngseg.cpp:208:19: note: state is overwritten libpinyin-2.10.0/utils/segment/ngseg.cpp:213:17: style: Local variable 'result' shadows outer variable [shadowVariable] libpinyin-2.10.0/utils/segment/ngseg.cpp:205:13: note: Shadowed declaration libpinyin-2.10.0/utils/segment/ngseg.cpp:213:17: note: Shadow variable libpinyin-2.10.0/utils/segment/ngseg.cpp:80:16: style: Variable 'tmp_string' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:44:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:77:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:110:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:42:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACH_READWRITE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:90:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACH_CREATE [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:112:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:98:17: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:131:17: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:122:9: warning:inconclusive: Possible null pointer dereference: single_gram [nullPointer] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:118:36: note: Assignment 'single_gram=NULL', assigned value is 0 libpinyin-2.10.0/utils/storage/export_interpolation.cpp:122:9: note: Null pointer dereference libpinyin-2.10.0/utils/storage/export_interpolation.cpp:117:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:124:49: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:128:21: style: The scope of the variable 'freq' can be reduced. [variableScope] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:87:17: style: Local variable 'result' shadows outer variable [shadowVariable] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:80:13: note: Shadowed declaration libpinyin-2.10.0/utils/storage/export_interpolation.cpp:87:17: note: Shadow variable libpinyin-2.10.0/utils/storage/export_interpolation.cpp:124:41: style: Local variable 'item' shadows outer variable [shadowVariable] libpinyin-2.10.0/utils/storage/export_interpolation.cpp:114:16: note: Shadowed declaration libpinyin-2.10.0/utils/storage/export_interpolation.cpp:124:41: note: Shadow variable libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:91:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gunichar [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:107:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:140:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:168:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:252:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable keys [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:263:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:95:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gunichar [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:111:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:141:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:181:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:265:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable keys [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:276:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/segment/spseg.cpp:72:9: performance: Variable 'm_handle' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/utils/segment/spseg.cpp:87:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:97:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:105:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:123:39: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:145:31: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:155:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:156:17: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:178:31: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:190:11: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/segment/spseg.cpp:289:19: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] libpinyin-2.10.0/utils/segment/spseg.cpp:285:15: note: state is assigned libpinyin-2.10.0/utils/segment/spseg.cpp:289:19: note: state is overwritten libpinyin-2.10.0/utils/segment/spseg.cpp:294:17: style: Local variable 'result' shadows outer variable [shadowVariable] libpinyin-2.10.0/utils/segment/spseg.cpp:286:13: note: Shadowed declaration libpinyin-2.10.0/utils/segment/spseg.cpp:294:17: note: Shadow variable libpinyin-2.10.0/utils/segment/spseg.cpp:105:23: style: Variable 'step_begin' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/segment/spseg.cpp:114:17: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:182:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:199:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:330:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:89:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:90:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:204:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:221:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:223:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:224:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:250:21: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:251:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:260:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:261:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:262:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:264:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:266:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:268:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:269:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:288:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:299:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:310:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:311:47: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:318:54: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:321:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:129:15: style: Local variable 'i' shadows outer variable [shadowVariable] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:100:9: note: Shadowed declaration libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:129:15: note: Shadow variable libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:89:19: style: Variable 'itema' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:90:19: style: Variable 'itemb' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:298:41: style: Variable 'chewing_and_freq' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:169:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:186:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:314:17: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:85:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:86:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:191:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:208:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:210:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:211:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:237:21: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:238:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:247:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:248:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:249:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:251:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:253:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:255:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:256:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:275:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:286:22: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:296:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:302:54: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:305:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:125:15: style: Local variable 'i' shadows outer variable [shadowVariable] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:96:9: note: Shadowed declaration libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:125:15: note: Shadow variable libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:85:19: style: Variable 'itema' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:86:19: style: Variable 'itemb' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:285:41: style: Variable 'chewing_and_freq' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:83:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:141:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:178:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable token1 [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:241:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:74:5: error: Memory leak: linebuf [memleak] libpinyin-2.10.0/src/zhuyin.cpp:2019:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:312:5: error: Memory leak: context [memleak] libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:44:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BigramPhraseItemWithCount [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:93:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSTEM_TABLE_INFO [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:205:28: style: Variable 'last_token' is reassigned a value before the old one has been used. [redundantAssignment] libpinyin-2.10.0/utils/storage/import_interpolation.cpp:196:32: note: last_token is assigned libpinyin-2.10.0/utils/storage/import_interpolation.cpp:205:28: note: last_token is overwritten libpinyin-2.10.0/src/zhuyin.cpp:91:9: performance: Variable 'm_token' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] libpinyin-2.10.0/src/zhuyin.cpp:161:12: warning: Identical condition and return expression 'exists', return value is always false [identicalConditionAfterEarlyExit] libpinyin-2.10.0/src/zhuyin.cpp:138:9: note: If condition 'exists' is true, the function will return/exit libpinyin-2.10.0/src/zhuyin.cpp:161:12: note: Returning identical expression 'exists' libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:53:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMixtureModelArrayItemWithToken [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:99:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:526:9: error: Memory leak: ucs4_phrase [memleak] libpinyin-2.10.0/src/zhuyin.cpp:529:9: error: Memory leak: ucs4_phrase [memleak] libpinyin-2.10.0/src/zhuyin.cpp:2168:9: error: Memory leak: ucs4_phrase [memleak] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:36:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PHRASE_LENGTH [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:69:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:87:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChewingKey [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:135:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSTEM_TABLE_INFO [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:432:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:464:45: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:485:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:488:40: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:867:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1131:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1132:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1162:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1188:36: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1192:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1214:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1239:38: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1298:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1323:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1351:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1352:26: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1353:34: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1356:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1358:10: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1381:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1382:21: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1427:43: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1853:19: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:2122:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:2243:14: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1664:12: style: Redundant initialization for 'retval'. The initialized value is overwritten before it is read. [redundantInitialization] libpinyin-2.10.0/src/zhuyin.cpp:1647:17: note: retval is initialized libpinyin-2.10.0/src/zhuyin.cpp:1664:12: note: retval is overwritten libpinyin-2.10.0/src/zhuyin.cpp:413:27: style: The scope of the variable 'pinyin_table' can be reduced. [variableScope] libpinyin-2.10.0/src/zhuyin.cpp:915:27: style: The scope of the variable 'phrase_index' can be reduced. [variableScope] libpinyin-2.10.0/src/zhuyin.cpp:1150:25: style: The scope of the variable 'results' can be reduced. [variableScope] libpinyin-2.10.0/src/zhuyin.cpp:1153:13: style: The scope of the variable 'i' can be reduced. [variableScope] libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:48:42: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:120:28: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:1887:35: style:inconclusive: Function 'zhuyin_get_zhuyin_key' argument 2 names different: declaration 'index' definition 'offset'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:597:35: note: Function 'zhuyin_get_zhuyin_key' argument 2 names different: declaration 'index' definition 'offset'. libpinyin-2.10.0/src/zhuyin.cpp:1887:35: note: Function 'zhuyin_get_zhuyin_key' argument 2 names different: declaration 'index' definition 'offset'. libpinyin-2.10.0/src/zhuyin.cpp:1888:42: style:inconclusive: Function 'zhuyin_get_zhuyin_key' argument 3 names different: declaration 'key' definition 'ppkey'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:598:42: note: Function 'zhuyin_get_zhuyin_key' argument 3 names different: declaration 'key' definition 'ppkey'. libpinyin-2.10.0/src/zhuyin.cpp:1888:42: note: Function 'zhuyin_get_zhuyin_key' argument 3 names different: declaration 'key' definition 'ppkey'. libpinyin-2.10.0/src/zhuyin.cpp:1909:40: style:inconclusive: Function 'zhuyin_get_zhuyin_key_rest' argument 2 names different: declaration 'index' definition 'offset'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:611:40: note: Function 'zhuyin_get_zhuyin_key_rest' argument 2 names different: declaration 'index' definition 'offset'. libpinyin-2.10.0/src/zhuyin.cpp:1909:40: note: Function 'zhuyin_get_zhuyin_key_rest' argument 2 names different: declaration 'index' definition 'offset'. libpinyin-2.10.0/src/zhuyin.cpp:1910:51: style:inconclusive: Function 'zhuyin_get_zhuyin_key_rest' argument 3 names different: declaration 'key_rest' definition 'ppkey_rest'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:612:51: note: Function 'zhuyin_get_zhuyin_key_rest' argument 3 names different: declaration 'key_rest' definition 'ppkey_rest'. libpinyin-2.10.0/src/zhuyin.cpp:1910:51: note: Function 'zhuyin_get_zhuyin_key_rest' argument 3 names different: declaration 'key_rest' definition 'ppkey_rest'. libpinyin-2.10.0/src/zhuyin.cpp:1975:40: style:inconclusive: Function 'zhuyin_get_zhuyin_offset' argument 3 names different: declaration 'offset' definition 'poffset'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:655:40: note: Function 'zhuyin_get_zhuyin_offset' argument 3 names different: declaration 'offset' definition 'poffset'. libpinyin-2.10.0/src/zhuyin.cpp:1975:40: note: Function 'zhuyin_get_zhuyin_offset' argument 3 names different: declaration 'offset' definition 'poffset'. libpinyin-2.10.0/src/zhuyin.cpp:1996:45: style:inconclusive: Function 'zhuyin_get_left_zhuyin_offset' argument 3 names different: declaration 'left' definition 'pleft'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:669:45: note: Function 'zhuyin_get_left_zhuyin_offset' argument 3 names different: declaration 'left' definition 'pleft'. libpinyin-2.10.0/src/zhuyin.cpp:1996:45: note: Function 'zhuyin_get_left_zhuyin_offset' argument 3 names different: declaration 'left' definition 'pleft'. libpinyin-2.10.0/src/zhuyin.cpp:2028:46: style:inconclusive: Function 'zhuyin_get_right_zhuyin_offset' argument 3 names different: declaration 'right' definition 'pright'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:683:46: note: Function 'zhuyin_get_right_zhuyin_offset' argument 3 names different: declaration 'right' definition 'pright'. libpinyin-2.10.0/src/zhuyin.cpp:2028:46: note: Function 'zhuyin_get_right_zhuyin_offset' argument 3 names different: declaration 'right' definition 'pright'. libpinyin-2.10.0/src/zhuyin.cpp:2151:43: style:inconclusive: Function 'zhuyin_get_character_offset' argument 4 names different: declaration 'length' definition 'plength'. [funcArgNamesDifferent] libpinyin-2.10.0/src/zhuyin.h:699:43: note: Function 'zhuyin_get_character_offset' argument 4 names different: declaration 'length' definition 'plength'. libpinyin-2.10.0/src/zhuyin.cpp:2151:43: note: Function 'zhuyin_get_character_offset' argument 4 names different: declaration 'length' definition 'plength'. libpinyin-2.10.0/src/zhuyin.cpp:598:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/zhuyin.cpp:572:22: note: Shadowed declaration libpinyin-2.10.0/src/zhuyin.cpp:598:26: note: Shadow variable libpinyin-2.10.0/src/zhuyin.cpp:624:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/zhuyin.cpp:572:22: note: Shadowed declaration libpinyin-2.10.0/src/zhuyin.cpp:624:26: note: Shadow variable libpinyin-2.10.0/src/zhuyin.cpp:810:26: style: Local variable 'userfilename' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/zhuyin.cpp:783:22: note: Shadowed declaration libpinyin-2.10.0/src/zhuyin.cpp:810:26: note: Shadow variable libpinyin-2.10.0/src/zhuyin.cpp:1161:21: style: Local variable 'i' shadows outer variable [shadowVariable] libpinyin-2.10.0/src/zhuyin.cpp:1153:13: note: Shadowed declaration libpinyin-2.10.0/src/zhuyin.cpp:1161:21: note: Shadow variable libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:67:14: style: Local variable 'item' shadows outer variable [shadowVariable] libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:48:34: note: Shadowed declaration libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:67:14: note: Shadow variable libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:48:34: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:2236:19: style: Variable 'result' can be declared as reference to const [constVariableReference] libpinyin-2.10.0/utils/training/estimate_interpolation.cpp:33:10: style: Unused variable: success [unusedVariable] libpinyin-2.10.0/src/zhuyin.cpp:1083:59: style: Parameter 'instance' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/zhuyin.cpp:1131:26: style: Variable 'item_lhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:1132:26: style: Variable 'item_rhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:1205:48: style: Parameter 'template_item' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/zhuyin.cpp:1213:32: style: Variable 'range' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:1355:26: style: Variable 'candidate_lhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:1357:26: style: Variable 'candidate_rhs' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:1746:24: style: Variable 'context' can be declared as pointer to const [constVariablePointer] libpinyin-2.10.0/src/zhuyin.cpp:1859:53: style: Parameter 'candidate' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/zhuyin.cpp:1866:55: style: Parameter 'candidate' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/zhuyin.cpp:1931:60: style: Parameter 'key_rest' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/src/zhuyin.cpp:2063:42: style: Parameter 'phrase' can be declared as pointer to const [constParameterPointer] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:116:17: warning:inconclusive: Possible null pointer dereference: sentence [nullPointer] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:111:23: note: Assignment 'sentence=NULL', assigned value is 0 libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:116:17: note: Null pointer dereference libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:116:27: warning:inconclusive: Possible null pointer dereference: guessed_sentence [nullPointer] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:111:55: note: Assignment 'guessed_sentence=NULL', assigned value is 0 libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:116:27: note: Null pointer dereference libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:42:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:99:9: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:37:12: style: The scope of the variable 'key_index' can be reduced. [variableScope] libpinyin-2.10.0/utils/training/eval_correction_rate.cpp:37:31: style: The scope of the variable 'max_freq' can be reduced. [variableScope] libpinyin-2.10.0/utils/training/k_mixture_model.h:78:12: style: Condition 'k>1' is always true [knownConditionTrueFalse] libpinyin-2.10.0/utils/training/k_mixture_model.h:75:12: note: Assuming that condition 'k==1' is not redundant libpinyin-2.10.0/utils/training/k_mixture_model.h:78:12: note: Condition 'k>1' is always true libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:39:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:52:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:73:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:113:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:136:22: warning:inconclusive: Possible null pointer dereference: deleted_single_gram [nullPointer] libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:129:57: note: Assignment 'deleted_single_gram=NULL', assigned value is 0 libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:136:22: note: Null pointer dereference libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:57:55: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/src/zhuyin.cpp:427:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:125:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/estimate_k_mixture_model.cpp:39:10: style: Unused variable: success [unusedVariable] libpinyin-2.10.0/src/zhuyin.cpp:933:21: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:933:17: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:1651:20: style: Variable 'len' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:1658:20: style: Variable 'len' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:1664:12: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:1651:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:1658:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:1690:13: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:1690:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:2019:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/training/gen_deleted_ngram.cpp:45:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/src/zhuyin.cpp:2078:20: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/src/zhuyin.cpp:2078:13: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:231:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:294:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:378:23: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:154:5: error: Memory leak: context [memleak] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:82:9: warning:inconclusive: Possible null pointer dereference: single_gram [nullPointer] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:78:49: note: Assignment 'single_gram=NULL', assigned value is 0 libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:82:9: note: Null pointer dereference libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:56:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:77:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/export_k_mixture_model.cpp:85:55: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_ngram.cpp:44:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:80:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:202:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMixtureModelArrayItem [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:231:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:277:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMixtureModelMagicHeader [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:294:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:323:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_unigram.cpp:41:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PHRASE_INDEX_LIBRARY_COUNT [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_unigram.cpp:82:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/gen_unigram.cpp:112:5: error: Memory leak: context [memleak] libpinyin-2.10.0/utils/training/gen_unigram.cpp:49:17: style: The scope of the variable 'freq' can be reduced. [variableScope] libpinyin-2.10.0/utils/training/k_mixture_model_to_interpolation.cpp:66:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/k_mixture_model_to_interpolation.cpp:127:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/k_mixture_model_to_interpolation.cpp:167:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable token1 [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/k_mixture_model_to_interpolation.cpp:193:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/k_mixture_model_to_interpolation.cpp:56:5: error: Memory leak: linebuf [memleak] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:84:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:154:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:190:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_token [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:265:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:50:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMixtureModelArrayItemWithToken [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:108:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:75:5: error: Memory leak: linebuf [memleak] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:61:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMixtureModelArrayItemWithToken [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:103:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMixtureModelMagicHeader [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:322:5: error: Memory leak: context [memleak] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:134:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:213:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:234:28: style: Variable 'last_token' is reassigned a value before the old one has been used. [redundantAssignment] libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:225:32: note: last_token is assigned libpinyin-2.10.0/utils/training/import_k_mixture_model.cpp:234:28: note: last_token is overwritten libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:85:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable phrase_token_t [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:149:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:51:5: warning:inconclusive: Possible null pointer dereference: bigram [nullPointer] libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:149:49: note: Assignment 'single_gram=NULL', assigned value is 0 libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:154:46: note: Calling function 'prune_k_mixture_model', 2nd argument 'single_gram' value is 0 libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:51:5: note: Null pointer dereference libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:54:51: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:148:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:162:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:182:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:167:30: style: Condition 'freq==0' is always true [knownConditionTrueFalse] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:164:23: note: Assuming that condition 'freq>0' is not redundant libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:167:30: note: Condition 'freq==0' is always true libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:194:30: style: Condition 'freq==0' is always true [knownConditionTrueFalse] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:191:23: note: Assuming that condition 'freq>0' is not redundant libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:194:30: note: Condition 'freq==0' is always true libpinyin-2.10.0/utils/training/prune_k_mixture_model.cpp:48:10: style: Unused variable: success [unusedVariable] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:91:31: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:94:50: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:95:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:99:50: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:100:33: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:113:32: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:119:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:124:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:132:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:133:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:135:29: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:160:44: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:165:54: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:166:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:169:49: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:187:44: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:192:54: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:193:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:196:49: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:233:37: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:235:27: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:398:44: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:302:21: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:302:14: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:206:29: style: Return value 'merge_array_items(target,new_one)' is always true [knownConditionTrueFalse] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:206:29: note: Calling function 'merge_array_items' returns 1 libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:206:29: note: Return value 'merge_array_items(target,new_one)' is always true libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:49:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:51:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:80:23: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:87:24: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:138:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:187:18: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:40:68: style: Parameter 'merged' can be declared as reference to const [constParameterReference] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:64:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:66:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:71:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:73:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:127:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:128:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:172:5: error: Memory leak: context [memleak] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:95:9: warning:inconclusive: Possible null pointer dereference: single_gram [nullPointer] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:90:49: note: Assignment 'single_gram=NULL', assigned value is 0 libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:95:9: note: Null pointer dereference libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:98:22: warning:inconclusive: Possible null pointer dereference: single_gram [nullPointer] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:90:49: note: Assignment 'single_gram=NULL', assigned value is 0 libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:98:22: note: Null pointer dereference libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:56:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:89:35: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:121:55: style: C-style pointer casting [cstyleCast] libpinyin-2.10.0/utils/training/validate_k_mixture_model.cpp:101:17: style: The scope of the variable 'freq' can be reduced. [variableScope] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:115:20: warning: Assert statement calls a function which may have desired side effects: 'get_table_index'. [assertWithSideEffect] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:148:20: warning: Assert statement calls a function which may have desired side effects: 'get_table_index'. [assertWithSideEffect] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:159:5: warning: Class 'FullPinyinParser2' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:159:5: warning: Class 'FullPinyinParser2' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:448:55: style: Condition 'CHEWING_ZERO_TONE==tone' is always false [knownConditionTrueFalse] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:443:19: note: Assuming that condition ''0'm_user_dir,"user_phrase_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1008:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1017:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1016:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1016:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_bigram.db.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1017:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1059:33: warning: If memory allocation fails, then there is a possible null pointer dereference: tmppathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1052:51: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1052:51: note: Assignment 'tmppathname=g_build_filename(context->m_user_dir,tmpfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1059:33: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1059:46: warning: If memory allocation fails, then there is a possible null pointer dereference: chunkpathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1056:53: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1056:53: note: Assignment 'chunkpathname=g_build_filename(context->m_user_dir,userfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1059:46: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1078:33: warning: If memory allocation fails, then there is a possible null pointer dereference: tmppathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1071:51: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1071:51: note: Assignment 'tmppathname=g_build_filename(context->m_user_dir,tmpfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1078:33: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1078:46: warning: If memory allocation fails, then there is a possible null pointer dereference: chunkpathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1075:53: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1075:53: note: Assignment 'chunkpathname=g_build_filename(context->m_user_dir,userfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1078:46: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1094:25: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1090:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1090:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_pinyin_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1094:25: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1094:38: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1092:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1092:9: note: Assignment 'filename=g_build_filename(context->m_user_dir,"user_pinyin_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1094:38: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1108:21: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1104:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1104:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_phrase_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1108:21: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1108:34: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1106:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1106:9: note: Assignment 'filename=g_build_filename(context->m_user_dir,"user_phrase_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1108:34: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1121:21: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1118:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1118:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_bigram.db.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1121:21: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1121:34: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:1119:32: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:1119:32: note: Assignment 'filename=g_build_filename(context->m_user_dir,"user_bigram.db",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:1121:34: note: Null pointer dereference head libpinyin-2.10.0/src/pinyin.cpp:1415:17: style: Variable 'num' is assigned a value that is never used. [unreadVariable] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:165:16: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:164:44: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:164:44: note: Assignment 'filename=g_build_filename(user_dir,userfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:165:16: note: Null pointer dereference head libpinyin-2.10.0/src/pinyin.cpp:1680:37: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1680:38: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/pinyin.cpp:1681:37: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:1681:38: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:204:12: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:203:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:203:9: note: Assignment 'filename=g_build_filename(user_dir,"user_pinyin_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:204:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:209:12: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:208:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:208:9: note: Assignment 'filename=g_build_filename(user_dir,"user_phrase_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:209:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:214:12: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:213:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:213:9: note: Assignment 'filename=g_build_filename(user_dir,"user_bigram.db",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:214:12: note: Null pointer dereference head libpinyin-2.10.0/src/pinyin.cpp:2663:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] head libpinyin-2.10.0/src/pinyin.cpp:3114:13: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:3420:34: warning: If memory allocation fails, then there is a possible null pointer dereference: left [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:3418:37: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:3418:37: note: Assignment 'left=g_strndup(pinyin,len)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:3420:34: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:3501:33: warning: If memory allocation fails, then there is a possible null pointer dereference: middle [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:3496:40: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:3496:40: note: Assignment 'newmiddle=g_strdup_printf("%s%d",middle,key.m_tone)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:3498:22: note: Assignment 'middle=newmiddle', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:3501:33: note: Null pointer dereference head libpinyin-2.10.0/src/pinyin.cpp:578:45: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:578:46: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/pinyin.cpp:599:33: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:599:34: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/pinyin.cpp:602:40: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:602:41: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/pinyin.cpp:999:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/pinyin.cpp:998:9: note: Assuming allocation function fails libpinyin-2.10.0/src/pinyin.cpp:998:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_pinyin_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/pinyin.cpp:999:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table.cpp:44:10: style:inconclusive: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:865:31: note: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:44:10: note: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. head libpinyin-2.10.0/src/storage/chewing_large_table.cpp:716:30: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table.cpp:716:31: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table.cpp:761:31: style:inconclusive: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table.h:75:10: note: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:761:31: note: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. head libpinyin-2.10.0/src/storage/chewing_large_table.cpp:865:31: style:inconclusive: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:44:10: note: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.cpp:865:31: note: Technically the member function 'pinyin::ChewingLengthIndexLevel::store' can be const. 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table.h:75:10: style:inconclusive: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/chewing_large_table.cpp:761:31: note: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. libpinyin-2.10.0/src/storage/chewing_large_table.h:75:10: note: Technically the member function 'pinyin::ChewingBitmapIndexLevel::store' can be const. head libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:162:30: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2.cpp:162:31: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table2.h:56:33: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2.h:56:34: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table2.h:57:33: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2.h:57:34: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:32:32: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:32:33: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:34:32: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2_bdb.cpp:34:33: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:36:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:36:33: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:38:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:38:33: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:539:26: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/chewing_large_table2_kyotodb.cpp:539:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:105:18: performance:inconclusive: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/ngram.h:191:10: note: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). libpinyin-2.10.0/src/storage/ngram.cpp:105:18: note: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). head libpinyin-2.10.0/src/storage/ngram.cpp:135:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:136:10: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:136:11: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:137:34: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:137:35: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:155:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:156:3: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:156:4: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:157:34: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:157:35: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:180:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:181:10: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:181:11: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:210:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:211:10: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:211:11: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:212:34: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:212:35: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:234:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:235:3: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:235:4: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:236:34: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:236:35: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:254:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:255:3: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:255:4: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:308:41: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:309:11: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:309:12: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:310:41: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:310:42: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:313:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:314:11: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:314:12: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:315:39: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:315:40: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:60:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:61:10: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:61:11: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:62:34: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:62:35: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:82:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/ngram.cpp:83:10: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:83:11: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:84:34: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:84:35: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram.cpp:96:15: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.cpp:96:16: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/ngram.h:191:10: performance:inconclusive: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). [functionStatic] libpinyin-2.10.0/src/storage/ngram.cpp:105:18: note: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). libpinyin-2.10.0/src/storage/ngram.h:191:10: note: Technically the member function 'pinyin::SingleGram::prune' can be static (but you may consider moving to unnamed namespace). 2.17.0 libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:172:40: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/ngram_kyotodb.cpp:172:40: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:373:30: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:373:31: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:468:32: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:468:33: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:551:14: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:551:15: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:620:14: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phonetic_key_matrix.cpp:620:15: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:125:27: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_index.cpp:125:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/phrase_index.cpp:130:50: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:130:51: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_index.cpp:145:25: style:inconclusive: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_index.h:364:13: note: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. libpinyin-2.10.0/src/storage/phrase_index.cpp:145:25: note: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:344:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable guint32 [valueFlowBailoutIncompleteVar] head libpinyin-2.10.0/src/storage/phrase_index.cpp:347:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:366:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable guint32 [valueFlowBailoutIncompleteVar] head libpinyin-2.10.0/src/storage/phrase_index.cpp:369:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable table_offset_t [valueFlowBailoutIncompleteVar] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:395:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable guint32 [valueFlowBailoutIncompleteVar] head libpinyin-2.10.0/src/storage/phrase_index.cpp:412:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OK [valueFlowBailoutIncompleteVar] head libpinyin-2.10.0/src/storage/phrase_index.cpp:591:41: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:591:42: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_index.cpp:610:24: style:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_index.h:593:9: note: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. libpinyin-2.10.0/src/storage/phrase_index.cpp:610:24: note: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. head libpinyin-2.10.0/src/storage/phrase_index.cpp:637:36: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:637:37: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_index.cpp:638:34: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:638:35: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:66:27: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_index.cpp:66:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/phrase_index.cpp:73:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:73:21: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:753:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable guint32 [valueFlowBailoutIncompleteVar] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.cpp:822:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable guint32 [valueFlowBailoutIncompleteVar] head libpinyin-2.10.0/src/storage/phrase_index.h:149:55: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.h:149:56: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.h:364:13: style:inconclusive: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_index.cpp:145:25: note: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. libpinyin-2.10.0/src/storage/phrase_index.h:364:13: note: Technically the member function 'pinyin::SubPhraseIndex::get_phrase_index_total_freq' can be const. 2.17.0 libpinyin-2.10.0/src/storage/phrase_index.h:593:9: style:inconclusive: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_index.cpp:610:24: note: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. libpinyin-2.10.0/src/storage/phrase_index.h:593:9: note: Technically the member function 'pinyin::FacadePhraseIndex::get_sub_phrase_range' can be const. 2.17.0 libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:105:27: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:105:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:106:27: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:106:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:39:10: style:inconclusive: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:618:31: note: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:39:10: note: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. head libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:618:31: style:inconclusive: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. [functionConst] libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:39:10: note: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. libpinyin-2.10.0/src/storage/phrase_large_table2.cpp:618:31: note: Technically the member function 'pinyin::PhraseLengthIndexLevel2::store' can be const. 2.17.0 libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:49:27: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:49:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:51:27: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/phrase_large_table3_kyotodb.cpp:51:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:170:27: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:169:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:169:30: note: Assignment 'input=g_strndup(pinyin,len)', assigned value is 0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:170:27: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:195:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:169:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:169:30: note: Assignment 'input=g_strndup(pinyin,len)', assigned value is 0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:195:5: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:238:13: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:234:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:234:30: note: Assignment 'input=g_strndup(str,len)', assigned value is 0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:238:13: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:512:48: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:504:38: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:504:38: note: Assignment 'input=g_strndup(str,2)', assigned value is 0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:512:48: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:629:27: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:628:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:628:30: note: Assignment 'input=g_strndup(str,len)', assigned value is 0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:629:27: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:654:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:628:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:628:30: note: Assignment 'input=g_strndup(str,len)', assigned value is 0 libpinyin-2.10.0/src/storage/pinyin_parser2.cpp:654:5: note: Null pointer dereference head libpinyin-2.10.0/src/storage/pinyin_phrase3.h:204:29: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/pinyin_phrase3.h:204:30: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/pinyin_phrase3.h:205:29: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/pinyin_phrase3.h:205:30: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/pinyin_phrase3.h:220:29: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/pinyin_phrase3.h:220:30: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/pinyin_phrase3.h:221:29: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/pinyin_phrase3.h:221:30: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:174:40: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/storage/punct_table_kyotodb.cpp:174:40: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/src/storage/table_info.cpp:289:47: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:87:33: note: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:289:47: note: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. head libpinyin-2.10.0/src/storage/table_info.cpp:293:47: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:89:33: note: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:293:47: note: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. head libpinyin-2.10.0/src/storage/table_info.cpp:297:26: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:91:12: note: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:297:26: note: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. head libpinyin-2.10.0/src/storage/table_info.cpp:301:39: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:93:25: note: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:301:39: note: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. head libpinyin-2.10.0/src/storage/table_info.cpp:392:21: style:inconclusive: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:113:10: note: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:392:21: note: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. head libpinyin-2.10.0/src/storage/table_info.cpp:415:20: style:inconclusive: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.h:117:9: note: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. libpinyin-2.10.0/src/storage/table_info.cpp:415:20: note: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. 2.17.0 libpinyin-2.10.0/src/storage/table_info.h:113:10: style:inconclusive: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.cpp:392:21: note: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. libpinyin-2.10.0/src/storage/table_info.h:113:10: note: Technically the member function 'pinyin::UserTableInfo::is_conform' can be const. 2.17.0 libpinyin-2.10.0/src/storage/table_info.h:117:9: style:inconclusive: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.cpp:415:20: note: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. libpinyin-2.10.0/src/storage/table_info.h:117:9: note: Technically the member function 'pinyin::UserTableInfo::get_open_counter' can be const. 2.17.0 libpinyin-2.10.0/src/storage/table_info.h:87:33: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.cpp:289:47: note: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. libpinyin-2.10.0/src/storage/table_info.h:87:33: note: Technically the member function 'pinyin::SystemTableInfo2::get_default_tables' can be const. 2.17.0 libpinyin-2.10.0/src/storage/table_info.h:89:33: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.cpp:293:47: note: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. libpinyin-2.10.0/src/storage/table_info.h:89:33: note: Technically the member function 'pinyin::SystemTableInfo2::get_addon_tables' can be const. 2.17.0 libpinyin-2.10.0/src/storage/table_info.h:91:12: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.cpp:297:26: note: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. libpinyin-2.10.0/src/storage/table_info.h:91:12: note: Technically the member function 'pinyin::SystemTableInfo2::get_lambda' can be const. 2.17.0 libpinyin-2.10.0/src/storage/table_info.h:93:25: style:inconclusive: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. [functionConst] libpinyin-2.10.0/src/storage/table_info.cpp:301:39: note: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. libpinyin-2.10.0/src/storage/table_info.h:93:25: note: Technically the member function 'pinyin::SystemTableInfo2::get_table_phonetic_type' can be const. 2.17.0 libpinyin-2.10.0/src/storage/tag_utility.cpp:146:43: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/tag_utility.cpp:143:36: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/tag_utility.cpp:143:36: note: Assignment 'tmp=g_strndup(begin,cur-begin)', assigned value is 0 libpinyin-2.10.0/src/storage/tag_utility.cpp:146:43: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:560:27: warning:inconclusive: Possible null pointer dereference: str [nullPointer] libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assignment 'input=g_strndup(str,len)', assigned value is 0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:607:11: note: Assuming condition is false libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:615:40: note: Calling function 'count_same_chars', 1st argument 'input+index' value is 0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:560:27: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:563:25: warning:inconclusive: Possible null pointer dereference: str [nullPointer] libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assignment 'input=g_strndup(str,len)', assigned value is 0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:607:11: note: Assuming condition is false libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:615:40: note: Calling function 'count_same_chars', 1st argument 'input+index' value is 0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:563:25: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:595:14: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assignment 'input=g_strndup(str,len)', assigned value is 0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:595:14: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:614:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assuming allocation function fails libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:586:30: note: Assignment 'input=g_strndup(str,len)', assigned value is 0 libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:607:11: note: Assuming condition is false libpinyin-2.10.0/src/storage/zhuyin_parser2.cpp:614:14: note: Null pointer dereference head libpinyin-2.10.0/src/zhuyin.cpp:1131:37: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:1131:38: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/zhuyin.cpp:1132:37: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:1132:38: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:119:16: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:118:44: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:118:44: note: Assignment 'filename=g_build_filename(user_dir,userfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:119:16: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:148:12: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:147:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:147:9: note: Assignment 'filename=g_build_filename(user_dir,"user_pinyin_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:148:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:153:12: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:152:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:152:9: note: Assignment 'filename=g_build_filename(user_dir,"user_phrase_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:153:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:158:12: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:157:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:157:9: note: Assignment 'filename=g_build_filename(user_dir,"user_bigram.db",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:158:12: note: Null pointer dereference head libpinyin-2.10.0/src/zhuyin.cpp:1651:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] head libpinyin-2.10.0/src/zhuyin.cpp:1658:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] head libpinyin-2.10.0/src/zhuyin.cpp:1690:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] head libpinyin-2.10.0/src/zhuyin.cpp:2078:13: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] head libpinyin-2.10.0/src/zhuyin.cpp:464:45: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:464:46: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/zhuyin.cpp:485:33: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:485:34: style: C-style pointer casting [cstyleCast] head libpinyin-2.10.0/src/zhuyin.cpp:488:40: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:488:41: style: C-style pointer casting [cstyleCast] 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:609:33: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmppathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:601:51: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:601:51: note: Assignment 'tmppathname=g_build_filename(context->m_user_dir,tmpfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:609:33: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:609:46: warning: If memory allocation fails, then there is a possible null pointer dereference: chunkpathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:605:53: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:605:53: note: Assignment 'chunkpathname=g_build_filename(context->m_user_dir,userfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:609:46: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:635:33: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmppathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:626:51: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:626:51: note: Assignment 'tmppathname=g_build_filename(context->m_user_dir,tmpfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:635:33: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:635:46: warning: If memory allocation fails, then there is a possible null pointer dereference: chunkpathname [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:630:53: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:630:53: note: Assignment 'chunkpathname=g_build_filename(context->m_user_dir,userfilename,NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:635:46: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:649:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:648:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:648:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_pinyin_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:649:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:655:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:648:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:648:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_pinyin_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:655:25: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:655:38: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:651:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:651:9: note: Assignment 'filename=g_build_filename(context->m_user_dir,"user_pinyin_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:655:38: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:666:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:665:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:665:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_phrase_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:666:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:672:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:665:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:665:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_phrase_index.bin.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:672:21: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:672:34: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:668:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:668:9: note: Assignment 'filename=g_build_filename(context->m_user_dir,"user_phrase_index.bin",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:672:34: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:683:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:682:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:682:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_bigram.db.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:683:12: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:687:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmpfilename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:682:9: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:682:9: note: Assignment 'tmpfilename=g_build_filename(context->m_user_dir,"user_bigram.db.tmp",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:687:21: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/src/zhuyin.cpp:687:34: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/src/zhuyin.cpp:684:32: note: Assuming allocation function fails libpinyin-2.10.0/src/zhuyin.cpp:684:32: note: Assignment 'filename=g_build_filename(context->m_user_dir,"user_bigram.db",NULL)', assigned value is 0 libpinyin-2.10.0/src/zhuyin.cpp:687:34: note: Null pointer dereference head libpinyin-2.10.0/src/zhuyin.cpp:933:17: style: Variable 'num' is assigned a value that is never used. [unreadVariable] head libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:24:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:32:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/tests/include/test_memory_chunk.cpp:37:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head libpinyin-2.10.0/utils/segment/mergeseq.cpp:99:17: style: Variable 'num' is assigned a value that is never used. [unreadVariable] 2.17.0 libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:61:34: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:60:44: note: Assuming allocation function fails libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:60:44: note: Assignment 'filename=g_build_filename(table_dir,tablename,NULL)', assigned value is 0 libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:61:34: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:97:30: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:96:40: note: Assuming allocation function fails libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:96:40: note: Assignment 'filename=g_build_filename(table_dir,"punct.table",NULL)', assigned value is 0 libpinyin-2.10.0/utils/storage/gen_binary_files.cpp:97:30: note: Null pointer dereference 2.17.0 libpinyin-2.10.0/utils/storage/gen_pinyin_table.cpp:202:9: error: Memory leak: array [memleak] 2.17.0 libpinyin-2.10.0/utils/storage/gen_zhuyin_table.cpp:215:9: error: Memory leak: array [memleak] head libpinyin-2.10.0/utils/training/gen_k_mixture_model.cpp:302:14: style: Variable 'result' is assigned a value that is never used. [unreadVariable] head libpinyin-2.10.0/utils/training/merge_k_mixture_model.cpp:40:68: style: Parameter 'merged' can be declared as reference to const [constParameterReference] DONE