Cppcheck
Classes | Functions | Variables
Checks

Classes

class  Check64BitPortability
 Check for 64-bit portability issues. More...
class  CheckAssignIf
 Check for assignment / condition mismatches. More...
class  CheckAutoVariables
class  CheckBoost
 Check Boost usage More...
class  ExecutionPathBufferOverrun
 Check for buffer overruns (using ExecutionPath) More...
class  CheckBufferOverrun
 buffer overruns and array index out of bounds More...
class  CheckClass
 Check classes. More...
class  CheckExceptionSafety
 Check exception safety (exceptions shouldn't cause leaks nor corrupt data) More...
class  CheckInternal
 Check Internal cppcheck API usage More...
class  CheckIO
 Check input output operations. More...
class  CheckLeakAutoVar
 Check for leaks. More...
class  CheckMemoryLeakInFunction
 CheckMemoryLeakInFunction detects when a function variable is allocated but not deallocated properly. More...
class  CheckMemoryLeakInClass
 Check class variables, variables that are allocated in the constructor should be deallocated in the destructor More...
class  CheckMemoryLeakStructMember
 detect simple memory leaks for struct members More...
class  CheckMemoryLeakNoVar
 detect simple memory leaks (address not taken) More...
class  CheckNonReentrantFunctions
 Using non reentrant functions that can be replaced by their reentrant versions. More...
class  Nullpointer
 Check for null pointer usage (using ExecutionPath) More...
class  CheckNullPointer
 check for null pointer dereferencing More...
class  CheckObsoleteFunctions
 Using obsolete functions that are always insecure to use. More...
class  CheckOther
 Various small checks. More...
class  CheckPostfixOperator
 Using postfix operators ++ or -- rather than postfix operator. More...
class  CheckStl
 Check STL usage (invalidation of iterators, mismatching containers, etc) More...
class  UninitVar
 Check that uninitialized variables aren't used (using ExecutionPath) More...
class  CheckUninitVar
 Checking for uninitialized variables. More...
class  CheckUnusedFunctions
class  CheckUnusedVar
 Various small checks. More...

Functions

 CheckBufferOverrun::ArrayInfo::ArrayInfo ()
 CheckBufferOverrun::ArrayInfo::ArrayInfo (const ArrayInfo &)
 CheckBufferOverrun::ArrayInfo::ArrayInfo (const Variable *var, const Tokenizer *tokenizer)
ArrayInfo & CheckBufferOverrun::ArrayInfo::operator= (const ArrayInfo &ai)
 CheckBufferOverrun::ArrayInfo::ArrayInfo (unsigned int id, const std::string &name, MathLib::bigint size1, MathLib::bigint n)
 Create array info with specified data The intention is that this is only a temporary solution.
ArrayInfo CheckBufferOverrun::ArrayInfo::limit (MathLib::bigint value) const
 Create a copy ArrayInfo where the number of elements have been limited by a value.

Variables

static std::set< std::string > UninitVar::uvarFunctions
 Functions that don't handle uninitialized variables well.

Function Documentation

Definition at line 1973 of file checkbufferoverrun.cpp.

Definition at line 1978 of file checkbufferoverrun.cpp.

CheckBufferOverrun::ArrayInfo::ArrayInfo ( const Variable var,
const Tokenizer tokenizer 
)
CheckBufferOverrun::ArrayInfo::ArrayInfo ( unsigned int  id,
const std::string &  name,
MathLib::bigint  size1,
MathLib::bigint  n 
)

Create array info with specified data The intention is that this is only a temporary solution.

. all checking should be based on ArrayInfo from the start and then this will not be needed as the declare can be used instead.

Definition at line 2013 of file checkbufferoverrun.cpp.

References CheckBufferOverrun::ArrayInfo::_num.

Create a copy ArrayInfo where the number of elements have been limited by a value.

Definition at line 2019 of file checkbufferoverrun.cpp.

Referenced by CheckBufferOverrun::checkFunctionCall().

CheckBufferOverrun::ArrayInfo & CheckBufferOverrun::ArrayInfo::operator= ( const ArrayInfo ai)

Variable Documentation

std::set< std::string > UninitVar::uvarFunctions [static]

Functions that don't handle uninitialized variables well.

Definition at line 923 of file checkuninitvar.cpp.

Referenced by CheckUninitVar::executionPaths(), UninitVar::parse(), and CheckUninitVar::saveAnalysisData().