cppcheck/lib
PKEuS ec1bd420a7 Refactorizations optimizing std::string usage:
1) Added global static const std::string emptyString; object:
-> Replaces some static variables in functions which might be not threadsafe
-> Avoids constructor call (std::string::string(""))
-> Even functions that return an empty string in some branches can return by reference now.
Added to config.h to ensure that it is available everywhere

2) Added overloads for TestFixture::assertEquals for the most common use cases:
-> Moves conversion from const char[] to std::string into a function, reducing code duplication in binary.
2014-06-26 11:51:02 +02:00
..
check.cpp Moved implementation of two functions to new file check.cpp -> Don't include <iostream> everywhere 2014-05-24 12:50:04 +02:00
check.h Moved implementation of two functions to new file check.cpp -> Don't include <iostream> everywhere 2014-05-24 12:50:04 +02:00
check64bit.cpp Remove redundant code 2014-03-14 15:56:40 +01:00
check64bit.h Update copyright 2014-02-15 07:45:39 +01:00
checkassert.cpp use nullptr 2014-02-16 10:32:10 +01:00
checkassert.h Update copyright 2014-02-15 07:45:39 +01:00
checkassignif.cpp #5875 clang ubsan errors: lib/checkassignif.cpp:58:34: runtime error: member call on null pointer of type 'Token' 2014-05-31 15:12:04 +02:00
checkassignif.h Update copyright 2014-02-15 07:45:39 +01:00
checkautovariables.cpp Fixed #5860: Don't show returnTempReference for calculations on unknown types 2014-05-24 12:50:04 +02:00
checkautovariables.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkbool.cpp Simplify code - bail out early, vreak loops early, reorder checks and declarations. 2014-06-09 13:35:30 +04:00
checkbool.h #4375 New check: add style warning about 'double d=false;' Add a new check to CheckBool. Also implement Variable::isFloatingType() 2014-05-24 18:35:49 +02:00
checkboost.cpp Update copyright 2014-02-15 07:45:39 +01:00
checkboost.h Update copyright 2014-02-15 07:45:39 +01:00
checkbufferoverrun.cpp Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
checkbufferoverrun.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
checkclass.cpp Fixed #5807 (non virtual dtor in virtual class) 2014-06-14 12:55:20 +02:00
checkclass.h Fixed #5807 (non virtual dtor in virtual class) 2014-06-14 12:55:20 +02:00
checkexceptionsafety.cpp Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkexceptionsafety.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkinternal.cpp Fixed messages of CheckInternal, fixed a false positive. 2014-05-18 20:39:52 +02:00
checkinternal.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkio.cpp CheckIO: Handle library types 2014-06-12 07:01:44 +02:00
checkio.h CheckIO: Handle library types 2014-06-12 07:01:44 +02:00
checkleakautovar.cpp Fixed #5923 (false positive: (error) Resource leak: fp (static file pointer)) 2014-06-23 16:05:28 +02:00
checkleakautovar.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkmemoryleak.cpp Fix clang and coverity warnings 2014-06-12 20:03:11 +02:00
checkmemoryleak.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checknonreentrantfunctions.cpp Update copyright 2014-02-15 07:45:39 +01:00
checknonreentrantfunctions.h Update copyright 2014-02-15 07:45:39 +01:00
checknullpointer.cpp Removed redundant code (replaced by libaries, should fix #5934). 2014-06-24 21:57:19 +02:00
checknullpointer.h Refactoring: Removed CheckNullPointer::nullPointerByCheckAndDeRef and implemented needed analysis in ValueFlow instead. 2014-06-22 10:02:14 +02:00
checkobsoletefunctions.cpp Update copyright 2014-02-15 07:45:39 +01:00
checkobsoletefunctions.h Update copyright 2014-02-15 07:45:39 +01:00
checkother.cpp Reverted fix 6d0f490138, but keeping the testcase in the testsuite. 2014-06-06 14:44:22 +02:00
checkother.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkpostfixoperator.cpp Refactorization: Use AST in CheckOther::checkRedundantCopy(), CheckOther::clarifyStatement() and CheckPostfixOperator::postfixOperator(). 2014-05-18 13:00:58 +02:00
checkpostfixoperator.h Update copyright 2014-02-15 07:45:39 +01:00
checksizeof.cpp #5875 fix 'lib/checksizeof.cpp:142:26: runtime error: member call on null pointer of type 'Token'. Improve error handling in CheckSizeof::checkSizeofForPointerSize() 2014-06-01 22:18:17 +02:00
checksizeof.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkstl.cpp #5926 Dangerous iterator comparison using operator< on 'std::deque'. 2014-06-16 20:50:47 +02:00
checkstl.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkuninitvar.cpp Fixed typo in comment, no functional changes [ci-skip] 2014-05-23 22:31:01 +02:00
checkuninitvar.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkunusedfunctions.cpp Moved getSourceFilePath(), isC() and isCPP() from Tokenizer to TokenList 2014-06-04 18:36:25 +02:00
checkunusedfunctions.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
checkunusedvar.cpp Use simple match where possible 2014-03-14 16:27:47 +01:00
checkunusedvar.h Cleaned up includes and forward declarations in checkers: 2014-05-24 12:50:03 +02:00
config.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
cppcheck.cpp Attempt to fix travis and some more VS warnings 2014-06-04 19:18:27 +02:00
cppcheck.h Further include cleanup 2014-05-24 12:50:04 +02:00
cppcheck.vcxproj Moved implementation of two functions to new file check.cpp -> Don't include <iostream> everywhere 2014-05-24 12:50:04 +02:00
cppcheck.vcxproj.filters Moved implementation of two functions to new file check.cpp -> Don't include <iostream> everywhere 2014-05-24 12:50:04 +02:00
cxx11emu.h Revert "cxx11.h: removed the 'evil workaround'" 2014-02-21 20:06:55 +01:00
errorlogger.cpp Fixed assertion failure in VS debug mode 2014-04-30 21:06:01 +02:00
errorlogger.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
executionpath.cpp Fixed CID 1037101 Dereference after null check in ExecutionPath::checkScope. 2014-05-23 18:27:34 +02:00
executionpath.h Update copyright 2014-02-15 07:45:39 +01:00
lib.pri Updated Makefile 2014-05-24 12:54:16 +02:00
library.cpp Refactoring: Move isScopeNoReturn implementation to library and reuse it both in ValueFlow and Tokenizer 2014-06-22 19:13:15 +02:00
library.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
mathlib.cpp Fix clang compiler warning in mathlib.cpp and repair test case for #5895 2014-06-07 13:16:02 +02:00
mathlib.h Fixed #5885 - fsanitize=undefined: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' in lib/tokenize.cpp. 2014-05-29 18:25:01 +02:00
path.cpp Fixed #5925: The first include in path.cpp is not path.h and astyle run. 2014-06-16 15:11:44 +02:00
path.h Small enhancements for doxygen 2014-04-27 21:42:10 +02: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 Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
preprocessor.h Preprocessor: set error flag when unhandled characters are found so checking can bailout 2014-06-01 11:24:10 +02:00
settings.cpp Internal checking is now enabled by the macro CHECK_INTERNAL 2014-05-18 19:50:06 +02:00
settings.h Refactorization: Use templates and rValue references 2014-04-03 15:03:37 +02: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 Refactorized inefficient usage of std::string and const char[]. 2014-04-02 13:56:34 +02:00
suppressions.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
symboldatabase.cpp SymbolDatabase: 'const' can't be the name of a variable - fix use after free #5882 2014-06-26 09:19:57 +02:00
symboldatabase.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
templatesimplifier.cpp Fixed fsanitize=undefined: left shift of negative value -10000 in lib/templatesimplifier.cpp. 2014-06-16 10:58:41 +02:00
templatesimplifier.h Refactoring/small corrections to fix warnings from clang -fsanitize=undefined 'member call on null pointer' 2014-05-20 21:55:08 +02:00
timer.cpp Refactorization in timer.cpp (#5902), Removed misleading comment in symboldatabase 2014-06-05 17:39:14 +02:00
timer.h Update copyright 2014-02-15 07:45:39 +01:00
token.cpp Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
token.h Replaced static variable isCPP in Token (was not threadsafe): 2014-06-14 10:28:12 +02:00
tokenize.cpp Optimized Tokenizer::simplifyPlatformTypes() once more: Another 3% improvement on Windows. 2014-06-25 20:42:59 +02:00
tokenize.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
tokenlist.cpp Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
tokenlist.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
valueflow.cpp Fixed #5947 (valueFlowForward: forward conditions not handled properly) 2014-06-25 16:00:56 +02:00
valueflow.h Fixed some complaints of PVS Studio 2014-05-19 14:37:54 +02:00
version.h Increased version number to 1.65.99/1.66 dev. 2014-05-10 12:57:33 +02:00
version.rc Refactorized resource files: 2012-10-14 10:21:22 +02:00