forked from qt-creator/qt-creator
Enable macro editing for the Clang indexer
Refactor much of the code from Environment* classes to NameValue* classes to share it with the preprocessor macro settings. Change-Id: Ica4ee817aa338230c422b30d91240d266248d226 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -254,7 +254,7 @@ Utils::Environment ExtraCompiler::buildEnvironment() const
|
||||
if (BuildConfiguration *bc = target->activeBuildConfiguration()) {
|
||||
return bc->environment();
|
||||
} else {
|
||||
QList<Utils::EnvironmentItem> changes =
|
||||
Utils::EnvironmentItems changes =
|
||||
EnvironmentKitAspect::environmentChanges(target->kit());
|
||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||
env.modify(changes);
|
||||
|
||||
Reference in New Issue
Block a user