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

Method libraryPaths_internal

plugins/qmljs/duchain/cache.cpp:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46KDevelop::Path::List QmlJS::Cache::libraryPaths_internal(const KDevelop::IndexedString& baseFile) const
47{
48 Q_ASSERT(!m_mutex.try_lock());
49
50 KDevelop::Path::List paths;
51
52 const auto& libraryPaths = QCoreApplication::instance()->libraryPaths();
53 for (auto& path : libraryPaths) {
54 KDevelop::Path p(path);
55
56 // Change /path/to/qt5/plugins to /path/to/qt5/{qml,imports}
57 paths << p.cd(QStringLiteral("../qml"));
58 paths << p.cd(QStringLiteral("../imports"));
59 }
60
61 paths << m_includeDirs[baseFile];
62 return paths;
63}
64
65QString QmlJS::Cache::modulePath(const KDevelop::IndexedString& baseFile, const QString& uri, const QString& version)
66{

Callers

nothing calls this directly

Calls 2

libraryPathsMethod · 0.80
cdMethod · 0.80

Tested by

no test coverage detected