Cppcheck
|
#include "checkmemoryleak.h"
#include "astutils.h"
#include "errorlogger.h"
#include "errortypes.h"
#include "library.h"
#include "mathlib.h"
#include "platform.h"
#include "settings.h"
#include "symboldatabase.h"
#include "token.h"
#include "tokenize.h"
#include <algorithm>
#include <utility>
#include <vector>
Go to the source code of this file.
Functions | |
static bool | notvar (const Token *tok, nonneg int varid) |
static bool | ifvar (const Token *tok, nonneg int varid, const std::string &comp, const std::string &rhs) |
Variables | |
static const CWE | CWE398 (398U) |
static const CWE | CWE401 (401U) |
static const CWE | CWE771 (771U) |
static const CWE | CWE772 (772U) |
|
static |
Definition at line 407 of file checkmemoryleak.cpp.
References astIsVariableComparison(), Token::astOperand1(), Token::astOperand2(), Token::Match(), Token::next(), Token::simpleMatch(), Token::str(), and Token::varId().
Referenced by CheckMemoryLeakStructMember::checkStructVariable().
Definition at line 395 of file checkmemoryleak.cpp.
References astIsVariableComparison(), Token::astOperand1(), Token::astOperand2(), Token::Match(), Token::str(), and Token::varId().
Referenced by CheckMemoryLeakInFunction::checkReallocUsage(), and CheckMemoryLeakStructMember::checkStructVariable().
|
static |
|
static |
Referenced by CheckMemoryLeakNoVar::unsafeArgAllocError().
|
static |
Referenced by CheckMemoryLeakNoVar::returnValueNotUsedError().
|
static |
Referenced by CheckMemoryLeakNoVar::functionCallLeak().