|
Cppcheck
|
#include "checknullpointer.h"#include "astutils.h"#include "ctu.h"#include "errorlogger.h"#include "errortypes.h"#include "library.h"#include "mathlib.h"#include "settings.h"#include "symboldatabase.h"#include "token.h"#include "tokenize.h"#include "valueflow.h"#include <algorithm>#include <cctype>#include <map>#include <set>#include <vector>Go to the source code of this file.
Functions | |
| static bool | checkNullpointerFunctionCallPlausibility (const Function *func, unsigned int arg) |
| static bool | isNullablePointer (const Token *tok) |
| static std::string | arithmeticTypeString (const Token *tok) |
| static bool | isUnsafeUsage (const Settings &settings, const Token *vartok, MathLib::bigint *value) |
Variables | |
| static const CWE | CWE_NULL_POINTER_DEREFERENCE (476U) |
| static const CWE | CWE_INCORRECT_CALCULATION (682U) |
|
static |
Definition at line 504 of file checknullpointer.cpp.
References Token::str().
Referenced by CheckNullPointer::pointerArithmeticError(), and CheckNullPointer::redundantConditionWarning().
|
static |
Definition at line 54 of file checknullpointer.cpp.
References Function::argCount(), Function::getArgumentVar(), and Variable::isPointer().
Referenced by CheckNullPointer::parseFunctionCall().
|
static |
Definition at line 264 of file checknullpointer.cpp.
References astIsPointer(), astIsSmartPointer(), Token::astOperand2(), Token::simpleMatch(), Token::variable(), and Token::varId().
Referenced by CheckNullPointer::nullPointerByDeRefAndChec().
|
static |
Definition at line 552 of file checknullpointer.cpp.
References CheckNullPointer::isPointerDeRef().
Referenced by CheckNullPointer::getFileInfo(), getUnsafeFunction(), and CTU::getUnsafeUsage().
|
static |
|
static |
Referenced by CheckNullPointer::analyseWholeProgram(), and CheckNullPointer::nullPointerError().