Cppcheck
Functions | Variables
checkbool.cpp File Reference
#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)
 

Function Documentation

◆ isBool()

static bool isBool ( const Variable var)
static

◆ isConvertedToBool()

static bool isConvertedToBool ( const Token tok)
static

Definition at line 80 of file checkbool.cpp.

References astIsBool(), Token::astParent(), and Token::Match().

Referenced by CheckBool::checkBitwiseOnBoolean().

◆ tokenIsFunctionReturningBool()

static bool tokenIsFunctionReturningBool ( const Token tok)
static

Variable Documentation

◆ CWE398

const CWE CWE398(398U) ( 398U  )
static

◆ CWE571

const CWE CWE571(571U) ( 571U  )
static

◆ CWE587

const CWE CWE587(587U) ( 587U  )
static

◆ CWE704

const CWE CWE704(704U) ( 704U  )
static