Cppcheck
|
#include "checkbool.h"
#include "astutils.h"
#include "errortypes.h"
#include "settings.h"
#include "symboldatabase.h"
#include "token.h"
#include "tokenize.h"
#include "vfvalue.h"
#include <list>
#include <vector>
Go to the source code of this file.
Functions | |
static bool | isBool (const Variable *var) |
static bool | isConvertedToBool (const Token *tok) |
static bool | tokenIsFunctionReturningBool (const Token *tok) |
Variables | |
static const CWE | CWE398 (398U) |
static const CWE | CWE571 (571U) |
static const CWE | CWE587 (587U) |
static const CWE | CWE704 (704U) |
|
static |
Definition at line 45 of file checkbool.cpp.
References Token::Match(), and Variable::typeEndToken().
Referenced by CheckBool::checkComparisonOfBoolWithBool(), and valueFlowConditionExpressions().
|
static |
Definition at line 80 of file checkbool.cpp.
References astIsBool(), Token::astParent(), and Token::Match().
Referenced by CheckBool::checkBitwiseOnBoolean().
|
static |
Definition at line 193 of file checkbool.cpp.
References Token::function(), Token::Match(), Token::previous(), and Function::tokenDef.
Referenced by CheckBool::checkComparisonOfFuncReturningBool().
|
static |
|
static |
Referenced by CheckBool::pointerArithBoolError().
|
static |
Referenced by CheckBool::assignBoolToPointerError().
|
static |
Referenced by CheckBool::assignBoolToFloatError().