Cppcheck
Classes | Functions
pathanalysis.h File Reference
#include "errortypes.h"
#include <functional>
#include <list>
#include <utility>

Go to the source code of this file.

Classes

struct  PathAnalysis
 
struct  PathAnalysis::Info
 

Functions

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

◆ 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().