forked from qt-creator/qt-creator
CppTools: Include "group id" in CompilerCallData
We will need the id in a follow-up change to match the corresponding project part. Change-Id: Id7686503f96fb238c9fa9857e7fde5cf94b0bcc7 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -36,6 +36,13 @@ ProjectInfo::ProjectInfo(QPointer<ProjectExplorer::Project> project)
|
||||
: m_project(project)
|
||||
{}
|
||||
|
||||
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
|
||||
|
||||
@@ -60,8 +60,13 @@ public:
|
||||
const QSet<QString> sourceFiles() const;
|
||||
const QByteArray defines() const;
|
||||
|
||||
// Source file --> List of compiler calls
|
||||
typedef QHash<QString, QList<QStringList>> CompilerCallData;
|
||||
struct CompilerCallGroup {
|
||||
using CallsPerSourceFile = QHash<QString, QList<QStringList>>;
|
||||
|
||||
QString groupId;
|
||||
CallsPerSourceFile callsPerSourceFile;
|
||||
};
|
||||
using CompilerCallData = QVector<CompilerCallGroup>;
|
||||
void setCompilerCallData(const CompilerCallData &data);
|
||||
CompilerCallData compilerCallData() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user