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

Function toCanonical

plugins/cmake/cmakefileapi.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26namespace {
27Path toCanonical(const Path& path)
28{
29 QFileInfo info(path.toLocalFile());
30 if (!info.exists())
31 return path;
32 const auto canonical = info.canonicalFilePath();
33 if (info.filePath() != canonical) {
34 return Path(canonical);
35 } else {
36 return path;
37 }
38}
39
40QJsonObject parseFile(const QString& path)
41{

Callers 2

parseTargetFunction · 0.85
parseReplyIndexFileFunction · 0.85

Calls 4

toLocalFileMethod · 0.80
existsMethod · 0.80
PathClass · 0.70
filePathMethod · 0.45

Tested by

no test coverage detected