2026-05-01 14:11 ftp://ftp.de.debian.org/debian/pool/main/c/csstidy/csstidy_1.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 101 126 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: csstidy-1.4/csstidy/file_functions.cpp:24:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable binary [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/umap.hpp:112:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable first [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/conversions.cpp:113:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hex [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/conversions.cpp:151:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fixed [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/cssopt.cpp:116:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/cssopt.cpp:150:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/csstidy.cpp:117:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/umap.hpp:123:4: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] csstidy-1.4/csstidy/umap.hpp:140:5: warning: Member variable 'iterator::pos' is not initialized in the constructor. [uninitMemberVar] csstidy-1.4/csstidy/umap.hpp:140:5: warning: Member variable 'iterator::size' is not initialized in the constructor. [uninitMemberVar] csstidy-1.4/csstidy/umap.hpp:53:7: style:inconclusive: Technically the member function 'umap < string , string >::size' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:58:8: style:inconclusive: Technically the member function 'umap < string , string >::empty' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:73:8: style:inconclusive: Technically the member function 'umap < string , string >::has' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:153:10: style:inconclusive: Technically the member function 'umap < string , string >::iterator::islast' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:170:10: style:inconclusive: Technically the member function 'umap < string , string >::iterator::operator!=' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:53:7: style:inconclusive: Technically the member function 'umap < string , umap < string , string > >::size' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:58:8: style:inconclusive: Technically the member function 'umap < string , umap < string , string > >::empty' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:73:8: style:inconclusive: Technically the member function 'umap < string , umap < string , string > >::has' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:153:10: style:inconclusive: Technically the member function 'umap < string , umap < string , string > >::iterator::islast' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:170:10: style:inconclusive: Technically the member function 'umap < string , umap < string , string > >::iterator::operator!=' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:53:7: style:inconclusive: Technically the member function 'umap < string , umap < string , umap < string , string > > >::size' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:58:8: style:inconclusive: Technically the member function 'umap < string , umap < string , umap < string , string > > >::empty' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:73:8: style:inconclusive: Technically the member function 'umap < string , umap < string , umap < string , string > > >::has' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:153:10: style:inconclusive: Technically the member function 'umap < string , umap < string , umap < string , string > > >::iterator::islast' can be const. [functionConst] csstidy-1.4/csstidy/umap.hpp:170:10: style:inconclusive: Technically the member function 'umap < string , umap < string , umap < string , string > > >::iterator::operator!=' can be const. [functionConst] csstidy-1.4/csstidy/file_functions.cpp:25:12: style: The scope of the variable 'line' can be reduced. [variableScope] csstidy-1.4/csstidy/file_functions.cpp:22:39: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/umap.hpp:73:23: performance: Function parameter 'key' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/umap.hpp:78:35: style: Parameter 'set' can be declared as reference to const [constParameterReference] csstidy-1.4/csstidy/umap.hpp:88:36: style: Parameter 'comp' can be declared as reference to const [constParameterReference] csstidy-1.4/csstidy/important.cpp:44:11: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] csstidy-1.4/csstidy/important.cpp:46:11: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] csstidy-1.4/csstidy/conversions.cpp:163:26: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/conversions.cpp:156:14: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] csstidy-1.4/csstidy/conversions.cpp:159:14: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] csstidy-1.4/csstidy/misc.cpp:95:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/misc.cpp:112:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/misc.cpp:136:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/main.cpp:83:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/cssopt.cpp:254:10: style: The scope of the variable 'newsel' can be reduced. [variableScope] csstidy-1.4/csstidy/cssopt.cpp:79:32: performance: Function parameter 'subvalue' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/cssopt.cpp:79:49: performance: Function parameter 'property' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/cssopt.cpp:258:61: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] csstidy-1.4/csstidy/cssopt.cpp:286:4: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] csstidy-1.4/csstidy/parse_css.cpp:190:138: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/csstidy.cpp:22:10: warning: Member variable 'csstidy::input_size' is not initialized in the constructor. [uninitMemberVar] csstidy-1.4/csstidy/csstidy.cpp:22:10: warning: Member variable 'csstidy::output_size' is not initialized in the constructor. [uninitMemberVar] csstidy-1.4/csstidy/csstidy.cpp:26:2: performance: Variable 'charset' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] csstidy-1.4/csstidy/csstidy.cpp:27:2: performance: Variable 'namesp' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] csstidy-1.4/csstidy/csstidy.cpp:29:2: performance: Variable 'tokens' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] csstidy-1.4/csstidy/csstidy.cpp:30:2: performance: Variable 'css_level' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] csstidy-1.4/csstidy/csstidy.cpp:206:29: style: The member function 'csstidy::dissolve_4value_shorthands' can be static. [functionStatic] csstidy-1.4/csstidy/csstidy.hpp:72:22: note: The member function 'csstidy::dissolve_4value_shorthands' can be static. csstidy-1.4/csstidy/csstidy.cpp:206:29: note: The member function 'csstidy::dissolve_4value_shorthands' can be static. csstidy-1.4/csstidy/csstidy.cpp:181:10: style: The scope of the variable 'temp' can be reduced. [variableScope] csstidy-1.4/csstidy/csstidy.cpp:129:9: style: Local variable 'add' shadows outer function [shadowFunction] csstidy-1.4/csstidy/csstidy.hpp:59:8: note: Shadowed declaration csstidy-1.4/csstidy/csstidy.cpp:129:9: note: Shadow variable csstidy-1.4/csstidy/csstidy.cpp:209:39: style: Local variable 'shorthands' shadows outer variable [shadowVariable] csstidy-1.4/csstidy/csstidy.cpp:20:38: note: Shadowed declaration csstidy-1.4/csstidy/csstidy.cpp:209:39: note: Shadow variable csstidy-1.4/csstidy/csstidy.cpp:64:62: performance: Function parameter 'data' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:74:33: performance: Function parameter 'media' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:74:53: performance: Function parameter 'selector' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:74:76: performance: Function parameter 'media_new' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:74:100: performance: Function parameter 'selector_new' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:104:32: performance: Function parameter 'msg' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:177:46: performance: Function parameter 'media' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:177:60: performance: Function parameter 'selector' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:206:63: performance: Function parameter 'property' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/csstidy.cpp:111:9: style: Variable 'iline' is assigned a value that is never used. [unreadVariable] csstidy-1.4/csstidy/print_css.cpp:81:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/misc.cpp:39:37: performance: Function parameter 'e' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:62:29: performance: Function parameter 'e' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:62:52: performance: Function parameter 's' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:89:33: performance: Function parameter 'find' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:89:52: performance: Function parameter 'replace' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:103:61: performance: Function parameter 'replace' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:139:64: performance: Function parameter 'needle' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:183:44: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:214:34: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/misc.cpp:144:3: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] csstidy-1.4/csstidy/trim.cpp:25:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/trim.cpp:37:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] csstidy-1.4/csstidy/background.cpp:126:43: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/background.cpp:109:110: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] csstidy-1.4/csstidy/background.cpp:181:111: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] csstidy-1.4/csstidy/background.cpp:235:110: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] csstidy-1.4/csstidy/trim.cpp:22:32: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/trim.cpp:34:33: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/trim.cpp:46:33: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/trim.cpp:52:33: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/trim.cpp:52:55: performance: Function parameter 'chars' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/trim.cpp:58:26: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/print_css.cpp:116:31: style: Obsolete function 'std::asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] csstidy-1.4/csstidy/print_css.cpp:116:40: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] csstidy-1.4/csstidy/print_css.cpp:62:14: style:inconclusive: Technically the member function 'csstidy::_seeknocomment' can be const. [functionConst] csstidy-1.4/csstidy/csstidy.hpp:44:7: note: Technically the member function 'csstidy::_seeknocomment' can be const. csstidy-1.4/csstidy/print_css.cpp:62:14: note: Technically the member function 'csstidy::_seeknocomment' can be const. csstidy-1.4/csstidy/print_css.cpp:23:17: style: The member function 'csstidy::_htmlsp' can be static. [functionStatic] csstidy-1.4/csstidy/csstidy.hpp:45:10: note: The member function 'csstidy::_htmlsp' can be static. csstidy-1.4/csstidy/print_css.cpp:23:17: note: The member function 'csstidy::_htmlsp' can be static. csstidy-1.4/csstidy/print_css.cpp:23:38: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/print_css.cpp:77:32: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/print_css.cpp:69:22: warning: Either the condition 'i>csstokens.size()' is redundant or 'i' can have the value csstokens.size(). Expression 'csstokens[i]' causes access out of bounds. [containerOutOfBounds] csstidy-1.4/csstidy/print_css.cpp:66:24: note: Assuming that condition 'i>csstokens.size()' is not redundant csstidy-1.4/csstidy/print_css.cpp:69:22: note: Access out of bounds csstidy-1.4/csstidy/print_css.cpp:215:79: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] csstidy-1.4/csstidy/parse_css.cpp:398:12: style: Condition '!pn' is always true [knownConditionTrueFalse] csstidy-1.4/csstidy/parse_css.cpp:231:32: note: Assuming that condition 'pn' is not redundant csstidy-1.4/csstidy/parse_css.cpp:398:12: note: Condition '!pn' is always true csstidy-1.4/csstidy/parse_css.cpp:352:27: style: Local variable 'temp' shadows outer variable [shadowVariable] csstidy-1.4/csstidy/parse_css.cpp:43:30: note: Shadowed declaration csstidy-1.4/csstidy/parse_css.cpp:352:27: note: Shadow variable csstidy-1.4/csstidy/parse_css.cpp:361:27: style: Local variable 'temp' shadows outer variable [shadowVariable] csstidy-1.4/csstidy/parse_css.cpp:43:30: note: Shadowed declaration csstidy-1.4/csstidy/parse_css.cpp:361:27: note: Shadow variable csstidy-1.4/csstidy/parse_css.cpp:501:65: performance: Function parameter 'property' should be passed by const reference. [passedByValue] csstidy-1.4/csstidy/parse_css.cpp:474:61: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] diff: 2.20.0 csstidy-1.4/csstidy/background.hpp:23:51: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/conversions.hpp:41:26: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:38:55: performance: Function parameter 'data' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:42:25: performance: Function parameter 'msg' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:45:31: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:46:58: performance: Function parameter 'property' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:60:29: performance: Function parameter 'media' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:60:49: performance: Function parameter 'selector' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:60:72: performance: Function parameter 'media_new' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/csstidy.hpp:60:96: performance: Function parameter 'selector_new' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/file_functions.hpp:23:39: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:29:37: performance: Function parameter 'e' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:32:34: performance: Function parameter 'e' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:32:58: performance: Function parameter 's' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:35:33: performance: Function parameter 'find' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:35:52: performance: Function parameter 'replace' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:38:61: performance: Function parameter 'replace' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:43:64: performance: Function parameter 'needle' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:61:44: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/misc.hpp:64:34: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/trim.hpp:23:32: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/trim.hpp:26:33: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/trim.hpp:29:33: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/trim.hpp:30:33: performance: Function parameter 'istring' should be passed by const reference. [passedByValue] 2.20.0 csstidy-1.4/csstidy/trim.hpp:30:55: performance: Function parameter 'chars' should be passed by const reference. [passedByValue] DONE