mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added more clang-tidy checks
Improved GitHub Action to run clang-format as part of clang-tidy * Simplify clang-tidy workflow * Added modernize-use-using, modernize-redundant-void-arg, readability-static-accessed-through-instance * Add nolint for libecl typedefs
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
class RimElasticPropertyScalingCollection;
|
||||
|
||||
typedef std::tuple<QString, QString, QString> FaciesKey;
|
||||
using FaciesKey = std::tuple<QString, QString, QString>;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
|
||||
@@ -84,8 +84,8 @@ public:
|
||||
GRADIENT
|
||||
};
|
||||
|
||||
RimStimPlanModel( void );
|
||||
~RimStimPlanModel( void ) override;
|
||||
RimStimPlanModel();
|
||||
~RimStimPlanModel() override;
|
||||
|
||||
void setMD( double md );
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ private:
|
||||
RimStimPlanModel* m_stimPlanModel;
|
||||
std::vector<std::unique_ptr<RimStimPlanModelPropertyCalculator>> m_resultCalculators;
|
||||
|
||||
typedef std::pair<RiaDefines::CurveProperty, int> ResultKey;
|
||||
typedef std::tuple<std::vector<double>, std::vector<double>, std::vector<double>, double> ResultData;
|
||||
mutable std::map<ResultKey, ResultData> m_resultCache;
|
||||
using ResultKey = std::pair<RiaDefines::CurveProperty, int>;
|
||||
using ResultData = std::tuple<std::vector<double>, std::vector<double>, std::vector<double>, double>;
|
||||
mutable std::map<ResultKey, ResultData> m_resultCache;
|
||||
};
|
||||
|
||||
@@ -30,7 +30,7 @@ CAF_PDM_SOURCE_INIT( RimStimPlanModelCollection, "StimPlanModelCollection" );
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimStimPlanModelCollection::RimStimPlanModelCollection( void )
|
||||
RimStimPlanModelCollection::RimStimPlanModelCollection()
|
||||
{
|
||||
CAF_PDM_InitScriptableObject( "StimPlan Models" );
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ class RimStimPlanModelCollection : public RimCheckableNamedObject
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
RimStimPlanModelCollection( void );
|
||||
~RimStimPlanModelCollection( void ) override;
|
||||
RimStimPlanModelCollection();
|
||||
~RimStimPlanModelCollection() override;
|
||||
|
||||
bool hasStimPlanModels() const;
|
||||
void addStimPlanModel( RimStimPlanModel* fracture );
|
||||
|
||||
@@ -84,9 +84,9 @@ protected:
|
||||
const std::vector<double>& faciesValues,
|
||||
std::vector<double>& values ) const;
|
||||
|
||||
typedef std::pair<double, double> DepthValuePair;
|
||||
typedef std::vector<DepthValuePair> DepthValuePairVector;
|
||||
typedef std::map<int, DepthValuePairVector> EqlNumToDepthValuePairMap;
|
||||
using DepthValuePair = std::pair<double, double>;
|
||||
using DepthValuePairVector = std::vector<DepthValuePair>;
|
||||
using EqlNumToDepthValuePairMap = std::map<int, DepthValuePairVector>;
|
||||
|
||||
static void sortAndRemoveDuplicates( DepthValuePairVector& depthValuePairs );
|
||||
static bool buildPressureTablesPerEqlNum( const RimStimPlanModel* stimPlanModel,
|
||||
|
||||
@@ -49,8 +49,8 @@ class RimStimPlanModelTemplate : public RimNamedObject
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
RimStimPlanModelTemplate( void );
|
||||
~RimStimPlanModelTemplate( void ) override;
|
||||
RimStimPlanModelTemplate();
|
||||
~RimStimPlanModelTemplate() override;
|
||||
|
||||
caf::Signal<> changed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user