forked from qt-creator/qt-creator
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3747e941ad
commit
a44aa55502
@@ -523,7 +523,7 @@ void BreakpointDialog::typeChanged(int)
|
||||
const BreakpointType newType = type();
|
||||
m_previousType = newType;
|
||||
// Save current state.
|
||||
switch(previousType) {
|
||||
switch (previousType) {
|
||||
case UnknownType:
|
||||
break;
|
||||
case BreakpointByFileAndLine:
|
||||
|
||||
@@ -1472,7 +1472,7 @@ void CdbEngine::updateLocals(bool forNewStackFrame)
|
||||
if (!expanded.isEmpty()) {
|
||||
str << blankSeparator << "-e ";
|
||||
int i = 0;
|
||||
foreach(const QByteArray &e, expanded) {
|
||||
foreach (const QByteArray &e, expanded) {
|
||||
if (i++)
|
||||
str << ',';
|
||||
str << e;
|
||||
@@ -1488,7 +1488,7 @@ void CdbEngine::updateLocals(bool forNewStackFrame)
|
||||
if (!uninitializedVariables.isEmpty()) {
|
||||
str << blankSeparator << "-u \"";
|
||||
int i = 0;
|
||||
foreach(const QString &u, uninitializedVariables) {
|
||||
foreach (const QString &u, uninitializedVariables) {
|
||||
if (i++)
|
||||
str << ',';
|
||||
str << localsPrefixC << u;
|
||||
@@ -2135,7 +2135,7 @@ void CdbEngine::handleSessionIdle(const QByteArray &messageBA)
|
||||
|
||||
m_specialStopMode = NoSpecialStop;
|
||||
|
||||
switch(specialStopMode) {
|
||||
switch (specialStopMode) {
|
||||
case SpecialStopSynchronizeBreakpoints:
|
||||
if (debug)
|
||||
qDebug("attemptBreakpointSynchronization in special stop");
|
||||
@@ -2259,7 +2259,7 @@ void CdbEngine::handleSessionAccessible(unsigned long cdbExState)
|
||||
qDebug("CdbEngine::handleSessionAccessible %dms in state '%s'/'%s', special mode %d",
|
||||
elapsedLogTime(), cdbStatusName(cdbExState), stateName(state()), m_specialStopMode);
|
||||
|
||||
switch(s) {
|
||||
switch (s) {
|
||||
case EngineShutdownRequested:
|
||||
shutdownEngine();
|
||||
break;
|
||||
@@ -2563,7 +2563,7 @@ static QByteArray multiBreakpointCommand(const char *cmdC, const Breakpoints &bp
|
||||
{
|
||||
QByteArray cmd(cmdC);
|
||||
ByteArrayInputStream str(cmd);
|
||||
foreach(const BreakpointData *bp, bps)
|
||||
foreach (const BreakpointData *bp, bps)
|
||||
str << ' ' << bp->bpNumber;
|
||||
return cmd;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
//# define STATE_DEBUG(s)
|
||||
// do { QString msg; QTextStream ts(&msg); ts << s;
|
||||
// showMessage(msg, LogDebug); } while (0)
|
||||
# define STATE_DEBUG(s) do { qDebug() << s; } while(0)
|
||||
# define STATE_DEBUG(s) do { qDebug() << s; } while (0)
|
||||
#else
|
||||
# define STATE_DEBUG(s)
|
||||
#endif
|
||||
|
||||
@@ -430,7 +430,7 @@ void IPCEngineHost::rpcCallback(quint64 f, QByteArray payload)
|
||||
gotoLocation(Location(sh->currentFrame(), true));
|
||||
else if (!m_sourceAgents.contains(sh->currentFrame().file))
|
||||
fetchFrameSource(token);
|
||||
foreach(SourceAgent *agent, m_sourceAgents.values())
|
||||
foreach (SourceAgent *agent, m_sourceAgents.values())
|
||||
agent->updateLocationMarker();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -160,7 +160,7 @@ LldbEngineHost::LldbEngineHost(const DebuggerStartParameters &startParameters)
|
||||
|
||||
|
||||
QString a = Core::ICore::resourcePath() + QLatin1String("/qtcreator-lldb");
|
||||
if(getenv("QTC_LLDB_GUEST") != 0)
|
||||
if (getenv("QTC_LLDB_GUEST") != 0)
|
||||
a = QString::fromLocal8Bit(getenv("QTC_LLDB_GUEST"));
|
||||
|
||||
showStatusMessage(QString(QLatin1String("starting %1")).arg(a));
|
||||
|
||||
@@ -705,7 +705,7 @@ static inline QString msgDebugInsert(const WatchData &d0, const QList<WatchData>
|
||||
QString rc;
|
||||
QTextStream str(&rc);
|
||||
str << "INSERTING " << d0.toString() << '\n';
|
||||
foreach(const WatchData &c, children)
|
||||
foreach (const WatchData &c, children)
|
||||
str << " " << c.toString() << '\n';
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ bool getPDBFiles(const QString &peExecutableFileName, QStringList *rc, QString *
|
||||
if (debugSectionCount)
|
||||
collectPDBfiles(fileMemory, debugDir, debugSectionCount, rc);
|
||||
success = true;
|
||||
} while(false);
|
||||
} while (false);
|
||||
|
||||
if (fileMemory)
|
||||
UnmapViewOfFile(fileMemory);
|
||||
|
||||
Reference in New Issue
Block a user