MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / fromPath

Method fromPath

lib/pathmatch.h:217–222  ·  view source on GitHub ↗

Create from path and base path */

Source from the content-addressed store, hash-verified

215
216 /* Create from path and base path */
217 static PathIterator fromPath(const std::string &path, const std::string &basepath, Syntax syntax)
218 {
219 if (Path::isAbsolute(path))
220 return PathIterator(path.c_str(), nullptr, syntax);
221 return PathIterator(basepath.c_str(), path.c_str(), syntax);
222 }
223
224 /* Constructor */
225 explicit PathIterator(const char *path_a = nullptr, const char *path_b = nullptr, Syntax syntax = platform_syntax) :

Callers

nothing calls this directly

Calls 1

PathIteratorClass · 0.85

Tested by

no test coverage detected