MCPcopy Create free account
hub / github.com/KDE/kdevelop / isDirectParentOf

Method isDirectParentOf

kdevplatform/util/path.cpp:255–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255bool Path::isDirectParentOf(const Path& path) const
256{
257 if (!isValid() || !path.isValid() || remotePrefix() != path.remotePrefix()) {
258 return false;
259 }
260 return isParentPath(m_data, path.m_data, true);
261}
262
263QString Path::remotePrefix() const
264{

Callers 4

addSubDirMethod · 0.80
testPathMethod · 0.80
populateTargetsMethod · 0.80

Calls 4

isParentPathFunction · 0.85
remotePrefixMethod · 0.80
isValidFunction · 0.70
isValidMethod · 0.45

Tested by 1

testPathMethod · 0.64