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

Method match

lib/pathmatch.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32{}
33
34bool PathMatch::match(const std::string &path, Filemode mode) const
35{
36 return std::any_of(mPatterns.cbegin(), mPatterns.cend(), [&] (const std::string &pattern) {
37 return match(pattern, path, mBasepath, mode, mSyntax);
38 });
39}
40
41bool PathMatch::match(const std::string &pattern, const std::string &path, const std::string &basepath, Filemode mode, Syntax syntax)
42{

Callers

nothing calls this directly

Calls 4

isRelativePatternFunction · 0.85
setposMethod · 0.80
matchFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected