Cppcheck
Functions | Variables
checktype.cpp File Reference
#include "checktype.h"
#include "errortypes.h"
#include "mathlib.h"
#include "platform.h"
#include "settings.h"
#include "standards.h"
#include "symboldatabase.h"
#include "token.h"
#include "tokenize.h"
#include "valueflow.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <iterator>
#include <list>
#include <sstream>
#include <utility>
#include <vector>

Go to the source code of this file.

Functions

static bool checkTypeCombination (ValueType src, ValueType tgt, const Settings &settings)
 
static void makeBaseTypeString (std::string &typeStr)
 

Variables

static const CWE CWE195 (195U)
 
static const CWE CWE197 (197U)
 
static const CWE CWE758 (758U)
 
static const CWE CWE190 (190U)
 

Function Documentation

◆ checkTypeCombination()

static bool checkTypeCombination ( ValueType  src,
ValueType  tgt,
const Settings settings 
)
static

Definition at line 302 of file checktype.cpp.

References ValueFlow::getSizeOf(), None, ValueType::reference, and ValueType::type.

Referenced by CheckType::checkLongCast().

◆ makeBaseTypeString()

static void makeBaseTypeString ( std::string &  typeStr)
static

Variable Documentation

◆ CWE190

const CWE CWE190(190U) ( 190U  )
static

◆ CWE195

const CWE CWE195(195U) ( 195U  )
static

◆ CWE197

const CWE CWE197(197U) ( 197U  )
static

◆ CWE758

const CWE CWE758(758U) ( 758U  )
static