cppcheck/lib
Thomas Jarosch dca65ce3da Fix FP if sizeof is used without parentheses on struct members
Right now we only support checking basic pointer types.
Pointers inside structs are not supported yet.

Consider the tokens "foo@1 . bar@2",
Token::Match( "sizeof ( %varid% )" ) won't match it.
Token::Match( "sizeof %varid%" ) did match it -> FP.
2014-12-22 09:44:08 +01:00
..
check.cpp astyle formatting 2014-11-26 16:13:57 +01:00
check.h Refactoring CheckUnusedFunctions so it uses new infrastructure for multifile analysis 2014-12-02 06:41:18 +01:00
check64bit.cpp Added support for member variables in Check64BitPortability::pointerassignment() 2014-10-02 20:38:54 +02:00
check64bit.h astyle formatting 2014-11-20 14:20:09 +01:00
checkassert.cpp Refactorized CheckAssert::assertWithSideEffects(): 2014-08-06 10:15:48 +02:00
checkassert.h astyle formatting 2014-11-20 14:20:09 +01:00
checkautovariables.cpp Fixed #4776 (FP: Assignment of function parameter has no effect outside the function, with goto) 2014-10-21 16:21:33 +02:00
checkautovariables.h astyle formatting 2014-11-20 14:20:09 +01:00
checkbool.cpp Refactoring: Replace names with underscores with camelCase names 2014-12-01 16:22:56 +01:00
checkbool.h astyle formatting 2014-11-20 14:20:09 +01:00
checkboost.cpp Refactoring: Replace names with underscores with camelCase names 2014-12-01 16:22:56 +01:00
checkboost.h astyle formatting 2014-11-20 14:20:09 +01:00
checkbufferoverrun.cpp Fixed #6346 (pointer calculation overflow) 2014-12-22 09:38:00 +01:00
checkbufferoverrun.h Refactoring CheckUnusedFunctions so it uses new infrastructure for multifile analysis 2014-12-02 06:41:18 +01:00
checkclass.cpp Code cleanup. Use 'isDelete' instead of token match 2014-11-28 17:50:23 +01:00
checkclass.h astyle formatting 2014-11-20 14:20:09 +01:00
checkcondition.cpp Move cheap checks earlier to avoid more expensive ones 2014-09-01 12:52:27 +04:00
checkcondition.h astyle formatting 2014-11-20 14:20:09 +01:00
checkexceptionsafety.cpp Simplified code 2014-09-11 20:27:01 +02:00
checkexceptionsafety.h astyle formatting 2014-11-20 14:20:09 +01:00
checkinternal.cpp Added internal check for || and | inside Token::Match patterns. 2014-07-02 15:51:18 +02:00
checkinternal.h astyle formatting 2014-11-20 14:20:09 +01:00
checkio.cpp astyle formatting 2014-11-20 14:20:09 +01:00
checkio.h astyle formatting 2014-11-20 14:20:09 +01:00
checkleakautovar.cpp leakautovar: handling of unknown/non-pod types in c++ 2014-10-14 16:40:30 +02:00
checkleakautovar.h astyle formatting 2014-11-20 14:20:09 +01:00
checkmemoryleak.cpp Remove dead code in CheckMemoryLeakInFunction::call_func() (Coverity CID 1257017) 2014-12-09 20:34:30 +01:00
checkmemoryleak.h astyle formatting 2014-11-20 14:20:09 +01:00
checknonreentrantfunctions.cpp Refactorization: Avoid iterations over whole token list, limited several checks to function scopes. 2014-10-31 11:42:54 +01:00
checknonreentrantfunctions.h astyle formatting 2014-11-20 14:20:09 +01:00
checknullpointer.cpp Added missing relational operators to pattern, as suggested in #6189 2014-10-16 20:37:21 +02:00
checknullpointer.h astyle formatting 2014-11-20 14:20:09 +01:00
checkobsolescentfunctions.cpp Restored files removed in 1cc872f5b2 2014-09-23 21:02:46 +02:00
checkobsolescentfunctions.h astyle formatting 2014-11-20 14:20:09 +01:00
checkother.cpp Fixed #6327 (Unwanted constStatement on (void)0) 2014-12-21 13:42:21 +01:00
checkother.h astyle formatting 2014-11-20 14:20:09 +01:00
checkpostfixoperator.cpp Refactorization: Use AST in CheckOther::checkRedundantCopy(), CheckOther::clarifyStatement() and CheckPostfixOperator::postfixOperator(). 2014-05-18 13:00:58 +02:00
checkpostfixoperator.h astyle formatting 2014-11-20 14:20:09 +01:00
checksizeof.cpp Fix FP if sizeof is used without parentheses on struct members 2014-12-22 09:44:08 +01:00
checksizeof.h astyle formatting 2014-11-20 14:20:09 +01:00
checkstl.cpp Remove redundant variable and manipulation thereof 2014-11-22 12:17:49 +01:00
checkstl.h astyle formatting 2014-11-20 14:20:09 +01:00
checkstring.cpp Fixed a couple of #6276 integer over/underflow issues 2014-12-09 23:28:22 +01:00
checkstring.h astyle formatting 2014-11-20 14:20:09 +01:00
checktype.cpp Fixed #6234 (FP : shift by too many bits is undefined on a QT container) 2014-10-23 06:52:19 +02:00
checktype.h astyle formatting 2014-11-20 14:20:09 +01:00
checkuninitvar.cpp astyle formatting 2014-12-20 18:47:40 +01:00
checkuninitvar.h Refactoring CheckUnusedFunctions so it uses new infrastructure for multifile analysis 2014-12-02 06:41:18 +01:00
checkunusedfunctions.cpp Fixed #6291 and #6293: Support :: in front of function name in checkUnusedFunctions 2014-12-09 22:04:51 +01:00
checkunusedfunctions.h Refactoring CheckUnusedFunctions so it uses new infrastructure for multifile analysis 2014-12-02 06:41:18 +01:00
checkunusedvar.cpp #6301 Unused shared lock variable. Add exception for std::shared_lock() to CheckUnusedVar::checkFunctionVariableUsage_iterateScopes() 2014-12-07 15:32:09 +01:00
checkunusedvar.h astyle formatting 2014-11-20 14:20:09 +01:00
checkvaarg.cpp CheckVaarg::va_list_usage(): Bailout when try{} block is encountered (#6186) 2014-09-27 11:03:58 +02:00
checkvaarg.h astyle formatting 2014-11-20 14:20:09 +01:00
config.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
cppcheck.cpp Refactoring CheckUnusedFunctions so it uses new infrastructure for multifile analysis 2014-12-02 06:41:18 +01:00
cppcheck.h Refactoring CheckUnusedFunctions so it uses new infrastructure for multifile analysis 2014-12-02 06:41:18 +01:00
cppcheck.vcxproj Change "obsolete" in all filenames into "obsolescent", and also update all references to such files. 2014-09-23 16:18:04 +02:00
cppcheck.vcxproj.filters Change "obsolete" in all filenames into "obsolescent", and also update all references to such files. 2014-09-23 16:18:04 +02:00
cxx11emu.h Fix compilation with GCC 4.4. 2014-12-21 02:15:53 +02:00
errorlogger.cpp Fixed a couple of #6276 integer over/underflow issues 2014-12-09 23:28:22 +01:00
errorlogger.h astyle formatting 2014-11-20 14:20:09 +01:00
executionpath.cpp Improved fix for Cppcheck warning. Remove useless conditions instead of adding a new one. 2014-09-07 09:56:07 +02:00
executionpath.h Fix some (clang) compiler warnings 2014-11-20 20:49:05 +01:00
lib.pri Revert "run dmake" 2014-09-23 21:04:31 +02:00
library.cpp Improve readability of Library::load() 2014-12-12 22:18:22 +01:00
library.h astyle formatting 2014-11-20 14:20:09 +01:00
mathlib.cpp Fix some (clang) compiler warnings 2014-11-20 20:49:05 +01:00
mathlib.h astyle formatting 2014-11-20 14:20:09 +01:00
path.cpp Refactorization: avoid string copying in Path::getPathFromFilename() 2014-10-30 23:48:23 +01:00
path.h astyle formatting 2014-11-20 14:20:09 +01:00
pcrerules.pri pro and pri files: remove unneeded empty lines, use spaces for consistency 2012-10-12 17:46:57 +02:00
preprocessor.cpp Fixed a couple of #6276 integer over/underflow issues 2014-12-09 23:28:22 +01:00
preprocessor.h astyle formatting 2014-11-20 14:20:09 +01:00
settings.cpp Fixed #5982 (Add xml dump) 2014-07-14 15:51:45 +02:00
settings.h astyle formatting 2014-11-20 14:20:09 +01:00
standards.h man, htdocs, gui, test, tools: bump a few more copyrights to 2014 2014-03-03 11:03:17 +01:00
suppressions.cpp Fixed reporting of unmatched suppressions for unusedFunction (#4946) 2014-09-01 10:13:03 +02:00
suppressions.h astyle formatting 2014-11-20 14:20:09 +01:00
symboldatabase.cpp Fixed #6266: Support noexcept(false) 2014-12-09 23:53:50 +01:00
symboldatabase.h astyle formatting 2014-11-20 14:20:09 +01:00
templatesimplifier.cpp Merge pull request #484 from simartin/ticket_6181 2014-12-21 12:21:17 +01:00
templatesimplifier.h Fixed #4272 and #6237 (Crash from running out of memory with many templates) 2014-11-01 22:07:24 +01:00
timer.cpp Refactorization in timer.cpp (#5902), Removed misleading comment in symboldatabase 2014-06-05 17:39:14 +02:00
timer.h astyle formatting 2014-11-20 14:20:09 +01:00
token.cpp Fixed a couple of #6276 integer over/underflow issues 2014-12-09 23:28:22 +01:00
token.h astyle formatting 2014-11-20 14:20:09 +01:00
tokenize.cpp Fixed a couple of #6276 integer over/underflow issues 2014-12-09 23:28:22 +01:00
tokenize.h astyle formatting 2014-11-20 14:20:09 +01:00
tokenlist.cpp Make single-argument constructors explicit 2014-11-13 21:39:14 +01:00
tokenlist.h astyle formatting 2014-11-20 14:20:09 +01:00
valueflow.cpp Fixed #5840 (False positive (inconclusive): Possible nullpointer dereference - use before for-loop over nested list) 2014-12-14 14:10:42 +01:00
valueflow.h ValueFlow: start adding valueflow handling of strings and pointer aliases 2014-08-03 20:11:22 +02:00
version.h Increase CPPCHECK_DEVMINOR to 68 2014-11-13 21:36:57 +01:00
version.rc Refactorized resource files: 2012-10-14 10:21:22 +02:00