cppcheck/lib
Richard Quirk a880469c5a Refactor the same expression check
Work out if a function is inconclusive when creating the entry in the
Expressions class instead of when checking the counts at the end. Store
the result in a new bool flag in the ExpressionTokens helper struct.

The pointer to symbol database and ref to list of const functions are
temporarily stored in  the Expressions helper class to avoid passing
them in too on every endExpr(tok) call.

Use a const reference to ExpressionTokens in the check loop to avoid
repeating the it->second several times, which clarifies what that code
does.
2011-12-01 19:57:04 +01:00
..
check.h Reverted previous commit. There are testrunner problems when the code is removed. 2011-11-19 15:14:45 +01:00
check64bit.cpp code cleanups and refactorings 2011-11-26 21:15:16 +01:00
check64bit.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkassignif.cpp Fixed Visual Studio compiler warnings 2011-12-01 18:32:14 +01:00
checkassignif.h Fixed Visual Studio compiler warnings 2011-12-01 18:32:14 +01:00
checkautovariables.cpp 1)internal check found a 'findmatch' with simple string argument; 2011-12-01 12:04:47 +01:00
checkautovariables.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkboost.cpp Change every 'tokAt(1)' to 'next()' and every 'tokAt(-1)' to 'previous()'. 2011-11-20 15:59:37 +01:00
checkboost.h Fixed #3232 (Check if container is modified inside BOOST_FOREACH) 2011-10-23 13:07:43 +02:00
checkbufferoverrun.cpp Fixed #3283 (False negative: array index out of bounds not found for constant string and known array index value) 2011-11-30 19:17:09 -08:00
checkbufferoverrun.h DJGPP: Fixed a few compiler errors by using std::size_t instead of size_t 2011-11-22 21:14:14 +01:00
checkclass.cpp 1)internal check found a 'findmatch' with simple string argument; 2011-12-01 12:04:47 +01:00
checkclass.h removed 'explicit constructors' check. see comments in pull request #51 for the reasons. 2011-11-02 17:12:46 +01:00
checkexceptionsafety.cpp Change every 'tokAt(...)->str()' to 'strAt(...)'. 2011-11-13 13:10:59 +01:00
checkexceptionsafety.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkinternal.cpp Conforming style: always use 'std::' namespace where needed. This removes the mixing style inside the code. 2011-11-07 00:54:00 +01:00
checkinternal.h Add internal check that searches Token::Match() patterns for missing % end charaters 2011-10-29 12:22:26 +02:00
checkmemoryleak.cpp 1)internal check found a 'findmatch' with simple string argument; 2011-12-01 12:04:47 +01:00
checkmemoryleak.h Fixed #3267 (False positive (experimental): resource leak in vdr-xinelib) 2011-11-30 19:43:02 +01:00
checknonreentrantfunctions.cpp checkMathFunctions: Refactoring the check 2011-10-22 12:31:47 +02:00
checknonreentrantfunctions.h Fix #3243 (Improve non reentrant function check) 2011-10-22 11:54:52 +02:00
checknullpointer.cpp 1)internal check found a 'findmatch' with simple string argument; 2011-12-01 12:04:47 +01:00
checknullpointer.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkobsoletefunctions.cpp Change every 'tokAt(1)' to 'next()' and every 'tokAt(-1)' to 'previous()'. 2011-11-20 15:59:37 +01:00
checkobsoletefunctions.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkother.cpp Refactor the same expression check 2011-12-01 19:57:04 +01:00
checkother.h Merge pull request #61 from richq/sameexpr 2011-11-29 08:50:02 -08:00
checkpostfixoperator.cpp Change: 'next()->next()'->'tokAt(2)', 'previous()->previous()'->'tokAt(-2)'. 2011-11-12 22:33:03 +01:00
checkpostfixoperator.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkstl.cpp Fixed #3255 (Error message for std::string::c_str() is not descriptive) 2011-11-20 19:26:07 +01:00
checkstl.h Fixed #3255 (Error message for std::string::c_str() is not descriptive) 2011-11-20 19:26:07 +01:00
checkuninitvar.cpp 1)internal check found a 'findmatch' with simple string argument; 2011-12-01 12:04:47 +01:00
checkuninitvar.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkunusedfunctions.cpp Change every 'tokAt(1)' to 'next()' and every 'tokAt(-1)' to 'previous()'. 2011-11-20 15:59:37 +01:00
checkunusedfunctions.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
checkunusedvar.cpp Change every 'tokAt(..)->link()' to 'linkAt(..)'. 2011-11-20 14:24:27 +01:00
checkunusedvar.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
cppcheck.cpp Fixed #3347 (False positive: unused function (taking address)) 2011-11-21 19:12:54 +01:00
cppcheck.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
errorlogger.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
errorlogger.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
executionpath.cpp Change every 'tokAt(..)->link()' to 'linkAt(..)'. 2011-11-20 14:24:27 +01:00
executionpath.h Add more warnings and fix the ones reported by them. 2011-10-22 15:05:43 +02:00
lib.pri Add check for cppcheck's internal API usage (#3263) 2011-10-28 22:46:07 +02:00
mathlib.cpp Remove duplicate expressions on both sides of || 2011-11-08 21:56:54 +01:00
mathlib.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
path.cpp code cleanups and refactorings 2011-11-26 21:02:04 +01:00
path.h code cleanups and refactorings 2011-11-26 21:02:04 +01:00
pcrerules.pri Complete 'disable the rules by default' for other platforms. 2011-10-19 15:14:39 +02:00
preprocessor.cpp 1)internal check found a 'findmatch' with simple string argument; 2011-12-01 12:04:47 +01:00
preprocessor.h Preprocessor: Bailout #include if it is recursive 2011-10-30 19:00:11 +01:00
settings.cpp support any number of --append=<file> options 2011-11-15 19:27:36 +01:00
settings.h Solution for ticket #3353 'Allow explicit undef's for configuration' 2011-11-30 20:24:01 +01:00
standards.h Add newline at end of file! 2011-10-31 15:12:29 +01:00
suppressions.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
suppressions.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
symboldatabase.cpp Change every 'tokAt(..)->link()' to 'linkAt(..)'. 2011-11-20 14:24:27 +01:00
symboldatabase.h DJGPP: Fixed a few compiler errors by using std::size_t instead of size_t 2011-11-22 21:14:14 +01:00
timer.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
timer.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
token.cpp DJGPP: Fixed a few compiler errors by using std::size_t instead of size_t 2011-11-22 21:14:14 +01:00
token.h DJGPP: Fixed a few compiler errors by using std::size_t instead of size_t 2011-11-22 21:14:14 +01:00
tokenize.cpp 1)internal check found a 'findmatch' with simple string argument; 2011-12-01 12:04:47 +01:00
tokenize.h 1) Run runastyle; 2011-11-20 19:06:55 +01:00