Cppcheck
Functions
fwdanalysis.cpp File Reference
#include "fwdanalysis.h"
#include "astutils.h"
#include "config.h"
#include "library.h"
#include "settings.h"
#include "symboldatabase.h"
#include "token.h"
#include "vfvalue.h"
#include <list>
#include <map>
#include <string>

Go to the source code of this file.

Functions

static bool isUnchanged (const Token *startToken, const Token *endToken, const std::set< nonneg int > &exprVarIds, bool local)
 
static bool hasFunctionCall (const Token *tok)
 
static bool hasGccCompoundStatement (const Token *tok)
 
static bool nonLocal (const Variable *var, bool deref)
 
static bool hasVolatileCastOrVar (const Token *expr)
 

Function Documentation

◆ hasFunctionCall()

static bool hasFunctionCall ( const Token tok)
static

Definition at line 58 of file fwdanalysis.cpp.

References Token::astOperand1(), Token::astOperand2(), and Token::Match().

Referenced by FwdAnalysis::checkRecursive().

◆ hasGccCompoundStatement()

static bool hasGccCompoundStatement ( const Token tok)
static

◆ hasVolatileCastOrVar()

static bool hasVolatileCastOrVar ( const Token expr)
static

◆ isUnchanged()

static bool isUnchanged ( const Token startToken,
const Token endToken,
const std::set< nonneg int > &  exprVarIds,
bool  local 
)
static

◆ nonLocal()

static bool nonLocal ( const Variable var,
bool  deref 
)
static