#5101 clang-format: Allow short functions on a single line

Use AllowShortFunctionsOnASingleLine: InlineOnly
This commit is contained in:
Magne Sjaastad
2020-02-12 11:13:38 +01:00
parent ab9d46ee75
commit 10f0abc9b5
428 changed files with 1519 additions and 1990 deletions

View File

@@ -132,7 +132,9 @@ RicExportEclipseSectorModelUi::RicExportEclipseSectorModelUi()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicExportEclipseSectorModelUi::~RicExportEclipseSectorModelUi() {}
RicExportEclipseSectorModelUi::~RicExportEclipseSectorModelUi()
{
}
//--------------------------------------------------------------------------------------------------
///

View File

@@ -101,10 +101,7 @@ public:
double startMd;
double endMd;
bool operator<( const CellInfo& other ) const
{
return startMd < other.startMd;
}
bool operator<( const CellInfo& other ) const { return startMd < other.startMd; }
};
//--------------------------------------------------------------------------------------------------
@@ -200,14 +197,8 @@ public:
return true;
}
caf::VecIjk min() const
{
return caf::VecIjk( m_min[I], m_min[J], m_min[K] );
}
caf::VecIjk max() const
{
return caf::VecIjk( m_max[I], m_max[J], m_max[K] );
}
caf::VecIjk min() const { return caf::VecIjk( m_min[I], m_min[J], m_min[K] ); }
caf::VecIjk max() const { return caf::VecIjk( m_max[I], m_max[J], m_max[K] ); }
private:
std::array<size_t, 3> m_min;

View File

@@ -71,10 +71,7 @@ public:
sizes.k() / ( mainGridEndCell.k() - mainGridStartCell.k() + 1 ) );
}
size_t cellCount() const
{
return sizes.i() * sizes.j() * sizes.k();
}
size_t cellCount() const { return sizes.i() * sizes.j() * sizes.k(); }
int id;
QString name;
@@ -141,10 +138,7 @@ public:
return type == other.type && name == other.name && wellPathName == other.wellPathName;
}
bool operator!=( const CompletionInfo& other ) const
{
return !operator==( other );
}
bool operator!=( const CompletionInfo& other ) const { return !operator==( other ); }
};
//==================================================================================================
@@ -155,10 +149,7 @@ class RicExportLgrFeature : public caf::CmdFeature
CAF_CMD_HEADER_INIT;
using Range = std::pair<size_t, size_t>;
static Range initRange()
{
return std::make_pair( std::numeric_limits<size_t>::max(), 0 );
}
static Range initRange() { return std::make_pair( std::numeric_limits<size_t>::max(), 0 ); }
static RicExportLgrUi* openDialog( const QString& dialogTitle,
RimEclipseCase* defaultCase = nullptr,

View File

@@ -59,7 +59,9 @@ RicSaveEclipseInputVisibleCellsUi::RicSaveEclipseInputVisibleCellsUi( void )
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicSaveEclipseInputVisibleCellsUi::~RicSaveEclipseInputVisibleCellsUi() {}
RicSaveEclipseInputVisibleCellsUi::~RicSaveEclipseInputVisibleCellsUi()
{
}
//--------------------------------------------------------------------------------------------------
///

View File

@@ -50,7 +50,9 @@ RicSaveEclipseResultAsInputPropertyExec::RicSaveEclipseResultAsInputPropertyExec
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicSaveEclipseResultAsInputPropertyExec::~RicSaveEclipseResultAsInputPropertyExec() {}
RicSaveEclipseResultAsInputPropertyExec::~RicSaveEclipseResultAsInputPropertyExec()
{
}
//--------------------------------------------------------------------------------------------------
///