forked from qt-creator/qt-creator
Remove spaces in initializer lists
Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -498,11 +498,11 @@ CallgrindTool::CallgrindTool(QObject *parent)
|
||||
Debugger::registerToolbar(CallgrindPerspectiveId, toolbar);
|
||||
|
||||
Debugger::registerPerspective(CallgrindPerspectiveId, new Perspective(tr("Callgrind"), {
|
||||
{ CallgrindFlatDockId, m_flatView, {}, Perspective::SplitVertical },
|
||||
{ CallgrindCalleesDockId, m_calleesView, {}, Perspective::SplitVertical },
|
||||
{ CallgrindCallersDockId, m_callersView, CallgrindCalleesDockId, Perspective::SplitHorizontal },
|
||||
{ CallgrindVisualizationDockId, m_visualization, {}, Perspective::SplitVertical,
|
||||
false, Qt::RightDockWidgetArea }
|
||||
{CallgrindFlatDockId, m_flatView, {}, Perspective::SplitVertical},
|
||||
{CallgrindCalleesDockId, m_calleesView, {}, Perspective::SplitVertical},
|
||||
{CallgrindCallersDockId, m_callersView, CallgrindCalleesDockId, Perspective::SplitHorizontal},
|
||||
{CallgrindVisualizationDockId, m_visualization, {}, Perspective::SplitVertical,
|
||||
false, Qt::RightDockWidgetArea}
|
||||
}));
|
||||
|
||||
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::updateRunActions,
|
||||
|
||||
@@ -304,17 +304,17 @@ MemcheckTool::MemcheckTool(QObject *parent)
|
||||
tr("These suppression files were used in the last memory analyzer run."));
|
||||
|
||||
QAction *a = new QAction(tr("Definite Memory Leaks"), this);
|
||||
initKindFilterAction(a, { Leak_DefinitelyLost, Leak_IndirectlyLost });
|
||||
initKindFilterAction(a, {Leak_DefinitelyLost, Leak_IndirectlyLost});
|
||||
m_errorFilterActions.append(a);
|
||||
|
||||
a = new QAction(tr("Possible Memory Leaks"), this);
|
||||
initKindFilterAction(a, { Leak_PossiblyLost, Leak_StillReachable });
|
||||
initKindFilterAction(a, {Leak_PossiblyLost, Leak_StillReachable});
|
||||
m_errorFilterActions.append(a);
|
||||
|
||||
a = new QAction(tr("Use of Uninitialized Memory"), this);
|
||||
initKindFilterAction(a, { InvalidRead, InvalidWrite, InvalidJump, Overlap,
|
||||
InvalidMemPool, UninitCondition, UninitValue,
|
||||
SyscallParam, ClientCheck });
|
||||
initKindFilterAction(a, {InvalidRead, InvalidWrite, InvalidJump, Overlap,
|
||||
InvalidMemPool, UninitCondition, UninitValue,
|
||||
SyscallParam, ClientCheck});
|
||||
m_errorFilterActions.append(a);
|
||||
|
||||
a = new QAction(tr("Invalid Calls to \"free()\""), this);
|
||||
@@ -338,7 +338,7 @@ MemcheckTool::MemcheckTool(QObject *parent)
|
||||
m_errorView->setWindowTitle(tr("Memory Issues"));
|
||||
|
||||
Debugger::registerPerspective(MemcheckPerspectiveId, new Perspective (tr("Memcheck"), {
|
||||
{ MemcheckErrorDockId, m_errorView, {}, Perspective::SplitVertical }
|
||||
{MemcheckErrorDockId, m_errorView, {}, Perspective::SplitVertical}
|
||||
}));
|
||||
|
||||
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::updateRunActions,
|
||||
|
||||
@@ -133,8 +133,8 @@ void ValgrindMemcheckParserTest::initTest(const QString &testfile, const QString
|
||||
|
||||
m_process->start(
|
||||
fakeValgrind,
|
||||
QStringList({ QString("--xml-socket=127.0.0.1:%1").arg(m_server->serverPort()), "-i",
|
||||
dataFile(testfile)}) << otherArgs);
|
||||
QStringList({QString("--xml-socket=127.0.0.1:%1").arg(m_server->serverPort()), "-i",
|
||||
dataFile(testfile)}) << otherArgs);
|
||||
|
||||
QVERIFY(m_process->waitForStarted(5000));
|
||||
QCOMPARE(m_process->state(), QProcess::Running);
|
||||
|
||||
Reference in New Issue
Block a user