Commit 522b19d0 authored by Jordan P. Lefebvre's avatar Jordan P. Lefebvre
Browse files

Updating .clang-format option ConstructorInitializerAllOnOneLineOrOnePerLine...

Updating .clang-format option ConstructorInitializerAllOnOneLineOrOnePerLine to be false. Applying updated format.
parent 7d9e31b0
Pipeline #11085 passed with stage
in 3 minutes and 29 seconds
......@@ -11,7 +11,8 @@ namespace radix {
namespace Private {
#ifdef USE_MPI
MPICommGroup::MPICommGroup() : group(MPI_GROUP_NULL) {}
MPICommGroup::MPICommGroup()
: group(MPI_GROUP_NULL) {}
MPICommGroup::MPICommGroup(MPI_Group ngroup) { this->group = ngroup; }
......
......@@ -8,7 +8,8 @@
namespace radix {
template <class GroupImpl>
CommunicatorGroupImpl<GroupImpl>::CommunicatorGroupImpl() : GroupImpl() {}
CommunicatorGroupImpl<GroupImpl>::CommunicatorGroupImpl()
: GroupImpl() {}
template <class GroupImpl>
CommunicatorGroupImpl<GroupImpl>::CommunicatorGroupImpl(const GroupImpl &orig)
......
......@@ -10,11 +10,17 @@ namespace radix {
namespace Private {
#ifdef USE_MPI
MPICommRequest::MPICommRequest() : d_request(NULL), d_source(0), d_tag(0) {}
MPICommRequest::MPICommRequest()
: d_request(NULL)
, d_source(0)
, d_tag(0) {}
MPICommRequest::MPICommRequest(MPI_Request *request, int nsource, int ntag,
MPI_Datatype ntype)
: d_request(request), d_source(nsource), d_tag(ntag), d_type(ntype) {}
: d_request(request)
, d_source(nsource)
, d_tag(ntag)
, d_type(ntype) {}
MPICommRequest::~MPICommRequest() {
if (d_request != NULL) {
......
......@@ -9,7 +9,10 @@
namespace radix {
namespace Private {
#ifdef USE_MPI
MPICommStatus::MPICommStatus() : d_source(0), d_error(0), d_tag(0) {}
MPICommStatus::MPICommStatus()
: d_source(0)
, d_error(0)
, d_tag(0) {}
MPICommStatus::MPICommStatus(MPI_Status status, int nsource, int nerror,
int ntag, MPI_Datatype ntype)
......
......@@ -8,7 +8,8 @@
namespace radix {
template <class StatusImpl>
CommunicatorStatusImpl<StatusImpl>::CommunicatorStatusImpl() : StatusImpl() {}
CommunicatorStatusImpl<StatusImpl>::CommunicatorStatusImpl()
: StatusImpl() {}
template <class StatusImpl>
CommunicatorStatusImpl<StatusImpl>::CommunicatorStatusImpl(
......
......@@ -3,11 +3,15 @@
namespace radix {
ThreadPool::ThreadPool() : mStop(false) {
ThreadPool::ThreadPool()
: mStop(false) {
init(std::thread::hardware_concurrency());
}
ThreadPool::ThreadPool(size_t numThreads) : mStop(false) { init(numThreads); }
ThreadPool::ThreadPool(size_t numThreads)
: mStop(false) {
init(numThreads);
}
// the destructor joins all threads
ThreadPool::~ThreadPool() {
......
......@@ -19,7 +19,8 @@
#include <cstdlib>
#include <limits>
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent) {
setGeometry(400, 250, 542, 390);
QWidget *mainWidget = new QWidget(this);
......
......@@ -11,7 +11,10 @@
namespace radix {
Graph2D::Graph2D(QCPGraph *graph)
: qcpgraph(graph), dataMap(new QCPDataMap()), keyUnit(""), valueUnit("") {
: qcpgraph(graph)
, dataMap(new QCPDataMap())
, keyUnit("")
, valueUnit("") {
// make sure graph is backed with my dataset
// qcpgraph takes ownership of datamap
qcpgraph->setData(dataMap, false);
......
......@@ -636,7 +636,8 @@ QMap<QString, int> AxisPropertyManager::stringToDateFormatEnum;
QMap<QString, int> AxisPropertyManager::stringToNumberFormatEnum;
QStringList AxisPropertyManager::tickLabelNames;
AxisPropertyManager::AxisPropertyManager(QObject *parent) : QObject(parent) {
AxisPropertyManager::AxisPropertyManager(QObject *parent)
: QObject(parent) {
initEnums();
}
......@@ -947,7 +948,8 @@ void AxisPropertyManager::visibilityChanged(QtProperty *property, bool value) {
axis->parentPlot()->replot();
}
BarsPropertyManager::BarsPropertyManager(QObject *parent) : QObject(parent) {}
BarsPropertyManager::BarsPropertyManager(QObject *parent)
: QObject(parent) {}
void BarsPropertyManager::manage(QtAbstractPropertyBrowser *pb,
QtAbstractPropertyManager *pm, QCPBars *bars) {
......@@ -1144,7 +1146,8 @@ QStringList GraphPropertyManager::penNames;
QStringList GraphPropertyManager::scatterNames;
QMap<int, QIcon> GraphPropertyManager::scatterIcons;
GraphPropertyManager::GraphPropertyManager(QObject *parent) : QObject(parent) {
GraphPropertyManager::GraphPropertyManager(QObject *parent)
: QObject(parent) {
initEnums();
}
......@@ -1412,7 +1415,8 @@ QStringList CurvePropertyManager::penNames;
QStringList CurvePropertyManager::scatterNames;
QMap<int, QIcon> CurvePropertyManager::scatterIcons;
CurvePropertyManager::CurvePropertyManager(QObject *parent) : QObject(parent) {
CurvePropertyManager::CurvePropertyManager(QObject *parent)
: QObject(parent) {
initEnums();
}
......@@ -1666,7 +1670,8 @@ void LegendPropertyManager::visibilityChanged(QtProperty *property,
legend->parentPlot()->replot();
}
PlotPropertyManager::PlotPropertyManager(QObject *parent) : QObject(parent) {}
PlotPropertyManager::PlotPropertyManager(QObject *parent)
: QObject(parent) {}
void PlotPropertyManager::manage(QtAbstractPropertyBrowser *pb,
QtAbstractPropertyManager *pm, Plot *plot) {
......
......@@ -11,7 +11,8 @@
#include <QLabel>
#include <limits>
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent) {
setGeometry(400, 250, 542, 390);
mTabWidget = new radix::TabWidget(this);
......
......@@ -7,7 +7,8 @@
namespace radix {
TableView::TableView(QWidget *parent) : QTableView(parent) {}
TableView::TableView(QWidget *parent)
: QTableView(parent) {}
void TableView::copy() {
// selected items
......
......@@ -8,7 +8,8 @@
#include <QToolButton>
namespace radix {
TabWidget::TabWidget(QWidget *parent) : QTabWidget(parent) {
TabWidget::TabWidget(QWidget *parent)
: QTabWidget(parent) {
// we want this tabs to be closable
setTabsClosable(true);
//
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment