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

Function buddyOrder

plugins/clang/duchain/documentfinderhelpers.cpp:210–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210bool buddyOrder(const QUrl &url1, const QUrl& url2)
211{
212 auto type1 = basePathAndTypeForUrl(url1);
213 auto type2 = basePathAndTypeForUrl(url2);
214 // Precondition is that the two URLs are buddies, so don't check it
215 return(type1.second == Header && type2.second == Source);
216}
217
218QVector<QUrl> potentialBuddies(const QUrl& url, bool checkDUChain)
219{

Callers 1

buddyOrderMethod · 0.85

Calls 1

basePathAndTypeForUrlFunction · 0.85

Tested by

no test coverage detected