forked from qt-creator/qt-creator
IOS: Remove unneeded qualifications
Mostly done using the following ruby script:
Dir.glob('**/*.cpp').each { |file|
next if file =~ %r{src/shared/qbs|/qmljs/}
s = File.read(file)
s.scan(/^using namespace (.*);$/) {
ns = $1
t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
before = $1
char = $2
if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
m
else
before + char
end
}
if t != s
puts file
File.open(file, 'w').write(t)
end
}
}
Change-Id: I8ef73f4861069dcd7edf5e73b397d60609d4b476
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
4e09ec98c7
commit
2813643cfe
@@ -233,7 +233,7 @@ void IosConfigurations::updateAutomaticKitList()
|
||||
qtVersionsForArch[abi.architecture()].append(qtVersion);
|
||||
}
|
||||
|
||||
const DebuggerItem *possibleDebugger = DebuggerItemManager::findByEngineType(Debugger::LldbEngineType);
|
||||
const DebuggerItem *possibleDebugger = DebuggerItemManager::findByEngineType(LldbEngineType);
|
||||
QVariant debuggerId = (possibleDebugger ? possibleDebugger->id() : QVariant());
|
||||
|
||||
QList<Kit *> existingKits;
|
||||
@@ -318,16 +318,16 @@ void IosConfigurations::updateAutomaticKitList()
|
||||
}
|
||||
kitAtt->setUnexpandedDisplayName(displayName);
|
||||
}
|
||||
kitAtt->setIconPath(Utils::FileName::fromString(
|
||||
kitAtt->setIconPath(FileName::fromString(
|
||||
QLatin1String(Constants::IOS_SETTINGS_CATEGORY_ICON)));
|
||||
DeviceTypeKitInformation::setDeviceTypeId(kitAtt, pDeviceType);
|
||||
ToolChainKitInformation::setToolChain(kitAtt, pToolchain);
|
||||
QtKitInformation::setQtVersion(kitAtt, qt);
|
||||
if ((!Debugger::DebuggerKitInformation::debugger(kitAtt)
|
||||
|| !Debugger::DebuggerKitInformation::debugger(kitAtt)->isValid()
|
||||
|| Debugger::DebuggerKitInformation::debugger(kitAtt)->engineType() != Debugger::LldbEngineType)
|
||||
if ((!DebuggerKitInformation::debugger(kitAtt)
|
||||
|| !DebuggerKitInformation::debugger(kitAtt)->isValid()
|
||||
|| DebuggerKitInformation::debugger(kitAtt)->engineType() != LldbEngineType)
|
||||
&& debuggerId.isValid())
|
||||
Debugger::DebuggerKitInformation::setDebugger(kitAtt,
|
||||
DebuggerKitInformation::setDebugger(kitAtt,
|
||||
debuggerId);
|
||||
|
||||
kitAtt->setMutable(DeviceKitInformation::id(), true);
|
||||
@@ -335,7 +335,7 @@ void IosConfigurations::updateAutomaticKitList()
|
||||
kitAtt->setSticky(ToolChainKitInformation::id(), true);
|
||||
kitAtt->setSticky(DeviceTypeKitInformation::id(), true);
|
||||
kitAtt->setSticky(SysRootKitInformation::id(), true);
|
||||
kitAtt->setSticky(Debugger::DebuggerKitInformation::id(), false);
|
||||
kitAtt->setSticky(DebuggerKitInformation::id(), false);
|
||||
|
||||
SysRootKitInformation::setSysRoot(kitAtt, p.sdkPath);
|
||||
// QmakeProjectManager::QmakeKitInformation::setMkspec(newKit,
|
||||
|
||||
Reference in New Issue
Block a user