summaryrefslogtreecommitdiff
path: root/src/plugins/compilationdatabaseprojectmanager
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-08-28 18:22:45 +0200
committerEike Ziller <eike.ziller@qt.io>2019-09-11 06:22:12 +0000
commit9cc45fe1fb6a953c9cbe1fe96683de5dd305d457 (patch)
tree9fbfe86b84d2038a6c03c258f2af5239d772687b /src/plugins/compilationdatabaseprojectmanager
parentf52c4f450dcce22dc68b9e8d9adede94cad12e59 (diff)
downloadqt-creator-9cc45fe1fb6a953c9cbe1fe96683de5dd305d457.tar.gz
CppTools: Move RawProjectPart to ProjectExplorer
Doesn't have any dependencies into CppTools anymore, therefore moving it reduces the dependencies of the project managers to CppTools as well. Change-Id: Ibe728abe59eb88a8877943dca1f48a85163e27ac Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/compilationdatabaseprojectmanager')
-rw-r--r--src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp b/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp
index 918b8ef81a..4d763e333f 100644
--- a/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp
+++ b/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp
@@ -168,12 +168,12 @@ void addDriverModeFlagIfNeeded(const ToolChain *toolchain,
}
}
-CppTools::RawProjectPart makeRawProjectPart(const Utils::FilePath &projectFile,
- Kit *kit,
- CppTools::KitInfo &kitInfo,
- const QString &workingDir,
- const Utils::FilePath &fileName,
- QStringList flags)
+RawProjectPart makeRawProjectPart(const Utils::FilePath &projectFile,
+ Kit *kit,
+ CppTools::KitInfo &kitInfo,
+ const QString &workingDir,
+ const Utils::FilePath &fileName,
+ QStringList flags)
{
HeaderPaths headerPaths;
Macros macros;
@@ -188,7 +188,7 @@ CppTools::RawProjectPart makeRawProjectPart(const Utils::FilePath &projectFile,
fileKind,
kitInfo.sysRootPath);
- CppTools::RawProjectPart rpp;
+ RawProjectPart rpp;
rpp.setProjectFileLocation(projectFile.toString());
rpp.setBuildSystemTarget(workingDir);
rpp.setDisplayName(fileName.fileName());
@@ -286,13 +286,13 @@ void addChild(FolderNode *root, const Utils::FilePath &fileName)
void createTree(std::unique_ptr<ProjectNode> &root,
const Utils::FilePath &rootPath,
- const CppTools::RawProjectParts &rpps,
+ const RawProjectParts &rpps,
const QList<FileNode *> &scannedFiles = QList<FileNode *>())
{
root->setAbsoluteFilePathAndLine(rootPath, -1);
std::unique_ptr<FolderNode> secondRoot;
- for (const CppTools::RawProjectPart &rpp : rpps) {
+ for (const RawProjectPart &rpp : rpps) {
for (const QString &filePath : rpp.files) {
Utils::FilePath fileName = Utils::FilePath::fromString(filePath);
if (!fileName.isChildOf(rootPath)) {
@@ -343,7 +343,7 @@ void CompilationDatabaseProject::buildTreeAndProjectParts()
// Reset toolchains to pick them based on the database entries.
kitInfo.cToolChain = nullptr;
kitInfo.cxxToolChain = nullptr;
- CppTools::RawProjectParts rpps;
+ RawProjectParts rpps;
QTC_ASSERT(m_parser, return);
const DbContents dbContents = m_parser->dbContents();
@@ -356,12 +356,12 @@ void CompilationDatabaseProject::buildTreeAndProjectParts()
prevEntry = &entry;
- CppTools::RawProjectPart rpp = makeRawProjectPart(projectFilePath(),
- m_kit.get(),
- kitInfo,
- entry.workingDir,
- entry.fileName,
- entry.flags);
+ RawProjectPart rpp = makeRawProjectPart(projectFilePath(),
+ m_kit.get(),
+ kitInfo,
+ entry.workingDir,
+ entry.fileName,
+ entry.flags);
rpps.append(rpp);
}
@@ -373,7 +373,7 @@ void CompilationDatabaseProject::buildTreeAndProjectParts()
for (const QString &extra : dbContents.extras)
extraFiles.append(baseDir.pathAppended(extra).toString());
- CppTools::RawProjectPart rppExtra;
+ RawProjectPart rppExtra;
rppExtra.setFiles(extraFiles);
rpps.append(rppExtra);
}