cppcheck/test
PKEuS ce961578c2 New checks (inconclusive): Suspicious calculation with sizeof()
- Check for sizeof(ptr)/something: This indicates that programmer was trying to calculate array size, but sizeof(ptr) doesn't return the length of the memory area, but size of a pointer.
- Check for sizeof()*sizeof(): This indicates that programmer misunderstood what sizeof() does: It does return the length in bytes of the given variable, not e.g. the number of elements in an array.
2012-11-09 18:08:20 +01:00
..
options.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
options.h Changed the order of some structures in order to improve, even if for a bit, their padding. 2012-05-14 20:49:03 +02:00
redirect.h CheckMemoryLeak: add '?1:0' to clarify the value of the argument to 'deleteNext'; Tokenize.cpp: in simplifyCompoundAssignment(), remove ':' odd code used to fix a weird test case ('case' code not inside a function body), remove useless 'tok->next() != NULL' check (already true by previous condition); in simplifyConditionOperator(), handle better the parenthesis skipping code and remove useless ')'check; in simplifyQuestionMark(), remove useless 'tok->tokAt(-2)' check (Token::Match returns false if the token is NULL), add more patterns to Token::Match to handle more test cases; in simplifyBitFields(), add 'const' to 'offset' bool. RedirectOutputError: style nitpick change to declaration of a pointer. 2012-10-19 14:19:52 +02:00
test.cxx test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
test.pro pro and pri files: remove unneeded empty lines, use spaces for consistency 2012-10-12 17:46:57 +02:00
test64bit.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testassignif.cpp AssignIf: better handling of function calls 2012-09-29 19:22:34 +02:00
testautovariables.cpp SymbolDatabase: Improved find function functionality. Taking arguments into account 2012-10-14 17:30:37 +02:00
testboost.cpp Clarified errormessage of checkBoost 2012-08-02 02:40:08 -07:00
testbufferoverrun.cpp Fixed #4228 ((error) Internal error. Token::Match called with varid 0 (multiple declarations in for loop)) 2012-09-23 17:15:39 +02:00
testcharvar.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testclass.cpp Don't suggest using initialization list for static variables (#4332) 2012-11-04 11:59:09 +01:00
testcmdlineparser.cpp cleanup more java/c# code. Thanks amai for telling me about this. 2012-10-03 19:19:49 +02:00
testconstructors.cpp Revert "Fixed #3190 (SymbolDatabase: Parse of sub class constructor fails)" 2012-10-16 19:12:27 +02:00
testcppcheck.cpp Removed --doc formating hack that removes more than three newlines and added format testing of Check::classInfo instead. 2012-08-26 16:22:46 +02:00
testdivision.cpp Fixed #3357: 2012-05-06 10:37:41 -07:00
testerrorlogger.cpp Fixed #3442 (unmatchedSuppression can't be suppressed) 2012-07-13 08:29:49 +02:00
testexceptionsafety.cpp Refactorizations in testrunner: 2012-07-16 04:17:14 -07:00
testfilelister.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testfiles.pri Fixed #2709 (Negative times in --showtime summary) 2012-09-15 19:49:48 +02:00
testincompletestatement.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testinternal.cpp New internal check: checkRedundantNextPrevious(). 2012-09-07 12:36:40 +02:00
testio.cpp Fixed #4189 (Improve check (printf('%l') not detected)) 2012-10-21 08:50:29 +02:00
testleakautovar.cpp Fixed #4237 (False positive: (error) Memory Leak: data (assign reference variable value to a shadow variable in inner scope)) 2012-10-27 16:36:14 +02:00
testmathlib.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testmemleak.cpp Fixed #4237 (False positive: (error) Memory Leak: data (assign reference variable value to a shadow variable in inner scope)) 2012-10-27 16:36:14 +02:00
testnonreentrantfunctions.cpp Message refactorization: checkobsoletefunctions.h and checknonreentrantfunctions.h 2012-07-29 02:30:03 -07:00
testnullpointer.cpp Symbol database: fix some function prototype bugs that were found during check conversions. Ticket: #4266 2012-10-30 15:48:06 +01:00
testobsoletefunctions.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testoptions.cpp Refactorizations: Made several test functions const according to cppcheck messages. 2012-08-02 02:13:09 -07:00
testother.cpp New checks (inconclusive): Suspicious calculation with sizeof() 2012-11-09 18:08:20 +01:00
testpath.cpp Path: Removed java/c# handling. Thanks amai. 2012-10-03 19:47:14 +02:00
testpathmatch.cpp Refactorizations: Made several test functions const according to cppcheck messages. 2012-08-02 02:13:09 -07:00
testpostfixoperator.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testpreprocessor.cpp Fixed parsing of "__asm__ volatile {""};" 2012-11-04 12:21:34 +01:00
testrunner.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testrunner.vcproj Implemented support for building cppcheck lib into a dll 2012-06-10 05:19:09 -07:00
testrunner.vcxproj Updated VS10 solution. 2012-09-16 13:38:46 +02:00
testrunner.vcxproj.filters Updated VS10 solution. 2012-09-16 13:38:46 +02:00
testsimplifytokens.cpp Support GNU extension of '?:' operator: 2012-11-08 17:49:43 +01:00
teststl.cpp Fixed #4305 (improve check: 'vector.size() < 1' should result in 'inefficient checking for '...' emptiness.') 2012-11-04 16:15:26 +01:00
testsuite.cpp Made several functions in testsuite.cpp const according to cppcheck suggestions 2012-08-01 11:54:55 -07:00
testsuite.h test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testsuppressions.cpp Fixed #4210 (Unmatched suppression warning emitted from disabled check) 2012-09-23 10:56:12 +02:00
testsymboldatabase.cpp Fixed two MSVC warnings in testsymboldatabase.cpp 2012-11-01 18:55:15 +01:00
testthreadexecutor.cpp Change every C version of 'size_t' to C++ 'std::size_t'. 2012-07-09 13:30:18 +02:00
testtimer.cpp Fixed MSVC 10 compiler warnings 2012-09-16 16:29:06 +02:00
testtoken.cpp Add '%char%' as pattern to match in Token::Match. 2012-11-04 16:58:18 +01:00
testtokenize.cpp Add more testcases for simplifyPlatformTypes: 2012-11-05 00:35:34 +01:00
testuninitvar.cpp Message refactorization: Changed expression "0-terminate" to "null-terminate" as discussed on 24b98feadb 2012-11-03 21:21:19 +01:00
testunusedfunctions.cpp Message refactorization: checkuninitvar.cpp, checkunusedfunctions.cpp, checkunusedvar.cpp 2012-11-01 18:40:20 +01:00
testunusedprivfunc.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
testunusedvar.cpp Message refactorization: checkuninitvar.cpp, checkunusedfunctions.cpp, checkunusedvar.cpp 2012-11-01 18:40:20 +01:00
testutils.h Refactorizations in test suite: 2012-05-16 09:04:03 -07:00