|
Cppcheck
|
#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... | |
Definition at line 39 of file pathanalysis.cpp.
References astIsLHS(), Token::astParent(), and Token::Match().
Referenced by PathAnalysis::forwardRange(), and CheckStl::invalidContainer().
| bool reaches | ( | const Token * | start, |
| const Token * | dest, | ||
| const Library & | library, | ||
| ErrorPath * | errorPath | ||
| ) |
Returns true if there is a path between the two tokens.
| start | Starting point of the path |
| dest | The path destination |
| errorPath | Adds 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().