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

Function joinRelativePattern

lib/pathmatch.h:165–170  ·  view source on GitHub ↗

* @brief Join a pattern with a base path. * * @param basepath The base path to join the pattern to. * @param pattern The pattern to join. * @return The pattern appended to the base path with a separator if the pattern is a relative * path name, otherwise just returns pattern. */

Source from the content-addressed store, hash-verified

163 * path name, otherwise just returns pattern.
164 */
165 static std::string joinRelativePattern(const std::string &basepath, const std::string &pattern)
166 {
167 if (isRelativePattern(pattern))
168 return Path::join(basepath, pattern);
169 return pattern;
170 }
171
172protected:
173 class PathIterator;

Callers 1

readXmlPathMatchListFunction · 0.85

Calls 2

isRelativePatternFunction · 0.85
joinFunction · 0.85

Tested by

no test coverage detected