Cppcheck
Functions
pathanalysis.cpp File Reference
#include "pathanalysis.h"
#include "astutils.h"
#include "symboldatabase.h"
#include "token.h"
#include "vfvalue.h"
#include <algorithm>
#include <string>
#include <tuple>

Go to the source code of this file.

Functions

static const Token * assignExpr (const Token *tok)
 
bool reaches (const Token *start, const Token *dest, const Library &library, ErrorPath *errorPath)
 Returns true if there is a path between the two tokens. More...
 

Function Documentation

◆ assignExpr()

static const Token* assignExpr ( const Token *  tok)
static

◆ reaches()

bool reaches ( const Token *  start,
const Token *  dest,
const Library &  library,
ErrorPath *  errorPath 
)

Returns true if there is a path between the two tokens.

Parameters
startStarting point of the path
destThe path destination
errorPathAdds the path traversal to the errorPath

Definition at line 185 of file pathanalysis.cpp.

References PathAnalysis::Info::errorPath, and PathAnalysis::Info::tok.

Referenced by CheckStl::invalidContainer().