diff options
| author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-04-10 10:49:04 +0200 |
|---|---|---|
| committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-04-13 12:34:35 +0000 |
| commit | 8936e5103367e300ac2b31ae5d4cf547425dc2a7 (patch) | |
| tree | 9138934df3cb1e3d22557a8e21758fa1f0c1ca89 /src/plugins/cpptools | |
| parent | 1bd967badbc38edf40dc24152ba4ca494f760685 (diff) | |
| download | qt-creator-8936e5103367e300ac2b31ae5d4cf547425dc2a7.tar.gz | |
ClangTools: Always use CompilerOptionsBuilder for clang tools
We do not ship clang-cl anymore which makes it impossible
to run clang with MSVC options.
Secondly we used to we tweak compiler options quite a bit so
why not to switch to CompilerOptionsBuilder totally?
Change-Id: Id323cb554587afaea7d9aa530e947a45a03922d1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cpptools')
| -rw-r--r-- | src/plugins/cpptools/cppmodelmanager.cpp | 13 | ||||
| -rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 3 | ||||
| -rw-r--r-- | src/plugins/cpptools/projectinfo.cpp | 18 | ||||
| -rw-r--r-- | src/plugins/cpptools/projectinfo.h | 11 |
4 files changed, 0 insertions, 45 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 953b0eb06f..eb02ac8892 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -1101,19 +1101,6 @@ QFuture<void> CppModelManager::updateProjectInfo(QFutureInterface<void> &futureI return indexingFuture; } -ProjectInfo CppModelManager::updateCompilerCallDataForProject( - ProjectExplorer::Project *project, - ProjectInfo::CompilerCallData &compilerCallData) -{ - QMutexLocker locker(&d->m_projectMutex); - - ProjectInfo projectInfo = d->m_projectToProjectsInfo.value(project, ProjectInfo()); - projectInfo.setCompilerCallData(compilerCallData); - d->m_projectToProjectsInfo.insert(project, projectInfo); - - return projectInfo; -} - ProjectPart::Ptr CppModelManager::projectPartForId(const QString &projectPartId) const { return d->m_projectPartIdToProjectProjectPart.value(projectPartId); diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index f7a9d6ddd6..af15450863 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -117,9 +117,6 @@ public: QFuture<void> updateProjectInfo(QFutureInterface<void> &futureInterface, const ProjectInfo &newProjectInfo); - ProjectInfo updateCompilerCallDataForProject(ProjectExplorer::Project *project, - ProjectInfo::CompilerCallData &compilerCallData); - /// \return The project part with the given project file ProjectPart::Ptr projectPartForId(const QString &projectPartId) const; /// \return All project parts that mention the given file name as one of the sources/headers. diff --git a/src/plugins/cpptools/projectinfo.cpp b/src/plugins/cpptools/projectinfo.cpp index cb1cf04ba9..34ae92aa60 100644 --- a/src/plugins/cpptools/projectinfo.cpp +++ b/src/plugins/cpptools/projectinfo.cpp @@ -91,28 +91,10 @@ const QSet<QString> ProjectInfo::sourceFiles() const return m_sourceFiles; } -void ProjectInfo::setCompilerCallData(const CompilerCallData &data) -{ - m_compilerCallData = data; -} - -ProjectInfo::CompilerCallData ProjectInfo::compilerCallData() const -{ - return m_compilerCallData; -} - -static bool operator==(const ProjectInfo::CompilerCallGroup &first, - const ProjectInfo::CompilerCallGroup &second) -{ - return first.groupId == second.groupId - && first.callsPerSourceFile == second.callsPerSourceFile; -} - bool ProjectInfo::operator ==(const ProjectInfo &other) const { return m_project == other.m_project && m_projectParts == other.m_projectParts - && m_compilerCallData == other.m_compilerCallData && m_headerPaths == other.m_headerPaths && m_sourceFiles == other.m_sourceFiles && m_defines == other.m_defines; diff --git a/src/plugins/cpptools/projectinfo.h b/src/plugins/cpptools/projectinfo.h index 50596b79b0..6202bf193a 100644 --- a/src/plugins/cpptools/projectinfo.h +++ b/src/plugins/cpptools/projectinfo.h @@ -95,16 +95,6 @@ public: const QVector<ProjectPart::Ptr> projectParts() const; const QSet<QString> sourceFiles() const; - struct CompilerCallGroup { - using CallsPerSourceFile = QHash<QString, QList<QStringList>>; - - QString groupId; - CallsPerSourceFile callsPerSourceFile; - }; - using CompilerCallData = QVector<CompilerCallGroup>; - void setCompilerCallData(const CompilerCallData &data); - CompilerCallData compilerCallData() const; - // Comparisons bool operator ==(const ProjectInfo &other) const; bool operator !=(const ProjectInfo &other) const; @@ -119,7 +109,6 @@ public: private: QPointer<ProjectExplorer::Project> m_project; QVector<ProjectPart::Ptr> m_projectParts; - CompilerCallData m_compilerCallData; // The members below are (re)calculated from the project parts with finish() ProjectPartHeaderPaths m_headerPaths; |
