2022-07-01 14:30 ftp://ftp.de.debian.org/debian/pool/main/t/tmispell-voikko/tmispell-voikko_0.7.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-5.18.6-1-MANJARO-x86_64-with-glibc2.35 python: 3.10.5 client-version: 1.3.25 compiler: g++ (GCC) 12.1.0 cppcheck: head 2.8 head-info: 596f75e (2022-07-01 10:48:32 +0200) count: 66 66 elapsed-time: 2.4 5.0 head-timing-info: Tokenizer::simplifyTokens1: 2.29651s (avg. 0.153101s - 15 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 2.23647s (avg. 0.159748s - 14 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.025341s (avg. 0.00181007s - 14 result(s)) Tokenizer::createTokens: 0.010885s (avg. 0.000725667s - 15 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.007088s (avg. 0.000506286s - 14 result(s)) Overall time: 4.61346s old-timing-info: Tokenizer::simplifyTokens1: 4.94258s (avg. 0.329505s - 15 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 4.88174s (avg. 0.348696s - 14 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.025697s (avg. 0.0018355s - 14 result(s)) Tokenizer::createTokens: 0.010653s (avg. 0.0007102s - 15 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.006964s (avg. 0.000497429s - 14 result(s)) Overall time: 9.90439s head results: tmispell-voikko-0.7.1/enchant/voikko_provider.cc:48:1: error: There is an unknown macro here somewhere. Configuration is required. If ENCHANT_PLUGIN_DECLARE is a macro then please configure it. [unknownMacro] tmispell-voikko-0.7.1/src/charset.cc:132:2: warning: Class 'CharsetConverter' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] tmispell-voikko-0.7.1/src/charset.cc:132:2: warning: Class 'CharsetConverter' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] tmispell-voikko-0.7.1/src/charset.cc:70:3: warning: Class 'CharsetConverterPimpl' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] tmispell-voikko-0.7.1/src/charset.cc:70:3: warning: Class 'CharsetConverterPimpl' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] tmispell-voikko-0.7.1/src/charset.hh:43:2: style: Class 'CharsetConverter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/charset.cc:44:2: style: Class 'CharsetConverterPimpl' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/charset.cc:96:4: style: Exception should be caught by reference. [catchExceptionByValue] tmispell-voikko-0.7.1/src/charset.cc:110:4: style: Exception should be caught by reference. [catchExceptionByValue] tmispell-voikko-0.7.1/src/charset.cc:146:50: performance: Function parameter 'str' should be passed by const reference. [passedByValue] tmispell-voikko-0.7.1/src/config_file.cc:89:25: style:inconclusive: Technically the member function 'ConfigFileIterator::begin' can be const. [functionConst] tmispell-voikko-0.7.1/src/config_file.cc:92:25: style:inconclusive: Technically the member function 'ConfigFileIterator::end' can be const. [functionConst] tmispell-voikko-0.7.1/src/regexp.hh:55:2: style: Class 'RegExp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/config_file.hh:96:2: style: Class 'ConfigFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/config_file.cc:70:2: style: Class 'ConfigFileIterator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/config_file.cc:384:16: style: The scope of the variable 'none' can be reduced. [variableScope] tmispell-voikko-0.7.1/src/config_file.cc:321:50: performance: Function parameter 'library' should be passed by const reference. [passedByValue] tmispell-voikko-0.7.1/src/config_file.cc:322:22: performance: Function parameter 'dictionary' should be passed by const reference. [passedByValue] tmispell-voikko-0.7.1/src/config_file.cc:323:22: performance: Function parameter 'encoding' should be passed by const reference. [passedByValue] tmispell-voikko-0.7.1/src/config_file.cc:324:22: performance: Function parameter 'lc_ctype' should be passed by const reference. [passedByValue] tmispell-voikko-0.7.1/src/config_file.cc:89:39: style: Parameter 're' can be declared as reference to const [constParameter] tmispell-voikko-0.7.1/src/config_file.cc:92:37: style: Parameter 're' can be declared as reference to const [constParameter] tmispell-voikko-0.7.1/src/config_file.cc:95:26: style: Parameter 're' can be declared as reference to const [constParameter] tmispell-voikko-0.7.1/src/filter.cc:178:14: warning: Member variable 'Filter::line_' is not initialized in the constructor. Maybe it should be initialized directly in the class Filter? [uninitDerivedMemberVar] tmispell-voikko-0.7.1/src/filter.cc:457:12: warning: Member variable 'TeXFilter::in_comment_' is not initialized in the constructor. [uninitMemberVar] tmispell-voikko-0.7.1/src/filter.cc:349:8: style:inconclusive: Technically the member function 'TeXFilter::Command::finished' can be const. [functionConst] tmispell-voikko-0.7.1/src/filter.cc:72:2: style: Class 'PlainFilter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/filter.cc:277:2: style: Class 'TeXFilter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/filter.cc:798:2: style: Class 'SGMLFilter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/filter.cc:970:2: style: Class 'NroffFilter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/filter.cc:76:15: style: The function 'reset' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.hh:44:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:76:15: note: Function in derived class tmispell-voikko-0.7.1/src/filter.cc:79:15: style: The function 'set_line' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.hh:48:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:79:15: note: Function in derived class tmispell-voikko-0.7.1/src/filter.cc:86:15: style: The function 'get_next_word' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.hh:54:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:86:15: note: Function in derived class tmispell-voikko-0.7.1/src/filter.cc:281:15: style: The function 'set_line' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.cc:79:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:281:15: note: Function in derived class tmispell-voikko-0.7.1/src/filter.cc:285:15: style: The function 'get_next_word' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.cc:86:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:285:15: note: Function in derived class tmispell-voikko-0.7.1/src/filter.cc:802:15: style: The function 'get_next_word' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.cc:86:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:802:15: note: Function in derived class tmispell-voikko-0.7.1/src/filter.cc:974:15: style: The function 'set_line' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.cc:79:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:974:15: note: Function in derived class tmispell-voikko-0.7.1/src/filter.cc:978:15: style: The function 'get_next_word' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] tmispell-voikko-0.7.1/src/filter.cc:86:15: note: Virtual function in base class tmispell-voikko-0.7.1/src/filter.cc:978:15: note: Function in derived class tmispell-voikko-0.7.1/src/options.hh:137:7: performance:inconclusive: Technically the member function 'Options::print_usage' can be static (but you may consider moving to unnamed namespace). [functionStatic] tmispell-voikko-0.7.1/src/options.cc:79:15: note: Technically the member function 'Options::print_usage' can be static (but you may consider moving to unnamed namespace). tmispell-voikko-0.7.1/src/options.hh:137:7: note: Technically the member function 'Options::print_usage' can be static (but you may consider moving to unnamed namespace). tmispell-voikko-0.7.1/src/options.cc:216:60: style:inconclusive: Function 'is_option' argument 2 names different: declaration 'arg' definition 'arg_p'. [funcArgNamesDifferent] tmispell-voikko-0.7.1/src/options.cc:198:49: note: Function 'is_option' argument 2 names different: declaration 'arg' definition 'arg_p'. tmispell-voikko-0.7.1/src/options.cc:216:60: note: Function 'is_option' argument 2 names different: declaration 'arg' definition 'arg_p'. tmispell-voikko-0.7.1/src/personal_dictionary.hh:43:2: style: Class 'CapitalizedWord' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/personal_dictionary.cc:177:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] tmispell-voikko-0.7.1/src/regexp.cc:80:41: style:inconclusive: Function 'begin' argument 1 names different: declaration 'nth' definition 'n'. [funcArgNamesDifferent] tmispell-voikko-0.7.1/src/regexp.hh:87:34: note: Function 'begin' argument 1 names different: declaration 'nth' definition 'n'. tmispell-voikko-0.7.1/src/regexp.cc:80:41: note: Function 'begin' argument 1 names different: declaration 'nth' definition 'n'. tmispell-voikko-0.7.1/src/regexp.cc:93:39: style:inconclusive: Function 'end' argument 1 names different: declaration 'nth' definition 'n'. [funcArgNamesDifferent] tmispell-voikko-0.7.1/src/regexp.hh:90:32: note: Function 'end' argument 1 names different: declaration 'nth' definition 'n'. tmispell-voikko-0.7.1/src/regexp.cc:93:39: note: Function 'end' argument 1 names different: declaration 'nth' definition 'n'. tmispell-voikko-0.7.1/src/spell.hh:53:6: performance:inconclusive: Technically the member function 'Spellchecker::get_version' can be static (but you may consider moving to unnamed namespace). [functionStatic] tmispell-voikko-0.7.1/src/spell.cc:84:19: note: Technically the member function 'Spellchecker::get_version' can be static (but you may consider moving to unnamed namespace). tmispell-voikko-0.7.1/src/spell.hh:53:6: note: Technically the member function 'Spellchecker::get_version' can be static (but you may consider moving to unnamed namespace). tmispell-voikko-0.7.1/src/spell.hh:56:7: performance:inconclusive: Technically the member function 'Spellchecker::open_dictionary' can be static (but you may consider moving to unnamed namespace). [functionStatic] tmispell-voikko-0.7.1/src/spell.cc:92:20: note: Technically the member function 'Spellchecker::open_dictionary' can be static (but you may consider moving to unnamed namespace). tmispell-voikko-0.7.1/src/spell.hh:56:7: note: Technically the member function 'Spellchecker::open_dictionary' can be static (but you may consider moving to unnamed namespace). tmispell-voikko-0.7.1/src/spell.cc:68:2: warning: Class 'Spellchecker' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] tmispell-voikko-0.7.1/src/spell.cc:68:2: warning: Class 'Spellchecker' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] tmispell-voikko-0.7.1/src/ui/pipeui.hh:37:2: warning: Member variable 'PipeInterface::filter_' is not initialized in the constructor. [uninitMemberVar] tmispell-voikko-0.7.1/src/ui/pipeui.hh:37:2: warning: Member variable 'PipeInterface::include_depth_' is not initialized in the constructor. [uninitMemberVar] tmispell-voikko-0.7.1/src/ui/pipeui.hh:37:2: warning: Member variable 'PipeInterface::terse_' is not initialized in the constructor. [uninitMemberVar] tmispell-voikko-0.7.1/src/tmispell.hh:96:16: performance:inconclusive: Technically the member function 'IspellAlike::from_locale' can be static (but you may consider moving to unnamed namespace). [functionStatic] tmispell-voikko-0.7.1/src/tmispell.hh:100:14: performance:inconclusive: Technically the member function 'IspellAlike::to_locale' can be static (but you may consider moving to unnamed namespace). [functionStatic] tmispell-voikko-0.7.1/src/tmispell.hh:121:7: style:inconclusive: Technically the member function 'IspellAlike::stop_if_needed' can be const. [functionConst] tmispell-voikko-0.7.1/src/tmispell.cc:255:19: note: Technically the member function 'IspellAlike::stop_if_needed' can be const. tmispell-voikko-0.7.1/src/tmispell.hh:121:7: note: Technically the member function 'IspellAlike::stop_if_needed' can be const. tmispell-voikko-0.7.1/src/ui/listui.hh:35:2: style: Class 'ListInterface' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/ui/pipeui.hh:37:2: style: Class 'PipeInterface' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/ui/cursesui.hh:35:2: style: Class 'CursesInterface' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/ui/cursesui.cc:354:4: warning: Return value of function tolower() is not used. [ignoredReturnValue] tmispell-voikko-0.7.1/src/ui/cursesui.cc:747:2: warning: Class 'CursesInterface' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] tmispell-voikko-0.7.1/src/ui/cursesui.cc:747:2: warning: Class 'CursesInterface' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] tmispell-voikko-0.7.1/src/ui/cursesui_pimpl.hh:121:2: style: Class 'Pimpl' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tmispell-voikko-0.7.1/src/ui/cursesui.cc:498:5: warning: Redundant assignment of 'sig' to itself. [selfAssignment] tmispell-voikko-0.7.1/src/ui/cursesui.cc:607:26: style:inconclusive: Function 'Context' argument 1 names different: declaration 'filter_' definition 'filter'. [funcArgNamesDifferent] tmispell-voikko-0.7.1/src/ui/cursesui_pimpl.hh:46:18: note: Function 'Context' argument 1 names different: declaration 'filter_' definition 'filter'. tmispell-voikko-0.7.1/src/ui/cursesui.cc:607:26: note: Function 'Context' argument 1 names different: declaration 'filter_' definition 'filter'. tmispell-voikko-0.7.1/src/ui/cursesui.cc:498:5: style: Variable 'sig' is assigned a value that is never used. [unreadVariable] tmispell-voikko-0.7.1/src/ui/pipeui.cc:131:3: warning: Return value of function tolower() is not used. [ignoredReturnValue] tmispell-voikko-0.7.1/src/ui/pipeui.cc:198:40: style:inconclusive: Function 'spell_check_pipe' argument 2 names different: declaration 'str_begin' definition 'sbeg'. [funcArgNamesDifferent] tmispell-voikko-0.7.1/src/ui/pipeui.hh:53:40: note: Function 'spell_check_pipe' argument 2 names different: declaration 'str_begin' definition 'sbeg'. tmispell-voikko-0.7.1/src/ui/pipeui.cc:198:40: note: Function 'spell_check_pipe' argument 2 names different: declaration 'str_begin' definition 'sbeg'. diff: head tmispell-voikko-0.7.1/src/config_file.cc:89:39: style: Parameter 're' can be declared as reference to const [constParameter] 2.8 tmispell-voikko-0.7.1/src/config_file.cc:89:39: style: Parameter 're' can be declared with const [constParameter] head tmispell-voikko-0.7.1/src/config_file.cc:92:37: style: Parameter 're' can be declared as reference to const [constParameter] 2.8 tmispell-voikko-0.7.1/src/config_file.cc:92:37: style: Parameter 're' can be declared with const [constParameter] head tmispell-voikko-0.7.1/src/config_file.cc:95:26: style: Parameter 're' can be declared as reference to const [constParameter] 2.8 tmispell-voikko-0.7.1/src/config_file.cc:95:26: style: Parameter 're' can be declared with const [constParameter] DONE