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:
@@ -323,14 +323,16 @@ static AnalyzeUnits unitsToAnalyzeFromCompilerCallData(
|
||||
|
||||
AnalyzeUnits unitsToAnalyze;
|
||||
|
||||
QHashIterator<QString, QList<QStringList> > it(compilerCallData);
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
const QString file = it.key();
|
||||
const QList<QStringList> compilerCalls = it.value();
|
||||
foreach (const QStringList &options, compilerCalls) {
|
||||
const QStringList arguments = tweakedArguments(file, options, extraParams);
|
||||
unitsToAnalyze << AnalyzeUnit(file, arguments);
|
||||
foreach (const ProjectInfo::CompilerCallGroup &compilerCallGroup, compilerCallData) {
|
||||
QHashIterator<QString, QList<QStringList> > it(compilerCallGroup.callsPerSourceFile);
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
const QString file = it.key();
|
||||
const QList<QStringList> compilerCalls = it.value();
|
||||
foreach (const QStringList &options, compilerCalls) {
|
||||
const QStringList arguments = tweakedArguments(file, options, extraParams);
|
||||
unitsToAnalyze << AnalyzeUnit(file, arguments);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user