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

Method fromPattern

lib/pathmatch.h:209–214  ·  view source on GitHub ↗

Create from a pattern and base path */

Source from the content-addressed store, hash-verified

207public:
208 /* Create from a pattern and base path */
209 static PathIterator fromPattern(const std::string &pattern, const std::string &basepath, Syntax syntax)
210 {
211 if (isRelativePattern(pattern))
212 return PathIterator(basepath.c_str(), pattern.c_str(), syntax);
213 return PathIterator(pattern.c_str(), nullptr, syntax);
214 }
215
216 /* Create from path and base path */
217 static PathIterator fromPath(const std::string &path, const std::string &basepath, Syntax syntax)

Callers

nothing calls this directly

Calls 2

isRelativePatternFunction · 0.85
PathIteratorClass · 0.85

Tested by

no test coverage detected