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:
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
typedef struct ecl_file_struct ecl_file_type;
|
||||
using ecl_file_type = struct ecl_file_struct;
|
||||
|
||||
class RifEclipseRestartDataAccess;
|
||||
class QByteArray;
|
||||
|
@@ -39,10 +39,12 @@ class QDateTime;
|
||||
|
||||
struct RigWellResultPoint;
|
||||
|
||||
// NOLINTBEGIN(modernize-use-using)
|
||||
typedef struct ecl_grid_struct ecl_grid_type;
|
||||
typedef struct ecl_file_struct ecl_file_type;
|
||||
typedef struct well_conn_struct well_conn_type;
|
||||
typedef struct well_segment_struct well_segment_type;
|
||||
// NOLINTEND(modernize-use-using)
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
|
@@ -62,8 +62,10 @@ private:
|
||||
int indexFromAddress( const RifEclipseRftAddress& rftAddress ) const;
|
||||
|
||||
private:
|
||||
// NOLINTBEGIN(modernize-use-using)
|
||||
// Taken from ecl_rft_file.h and ecl_rft_node.h
|
||||
typedef struct ecl_rft_file_struct ecl_rft_file_type;
|
||||
// NOLINTEND(modernize-use-using)
|
||||
|
||||
QString m_fileName;
|
||||
ecl_rft_file_type* m_ecl_rft_file;
|
||||
|
@@ -87,8 +87,8 @@ public:
|
||||
void load();
|
||||
|
||||
private:
|
||||
typedef std::pair<const QString, WellObservationSet> WellObservationPair;
|
||||
typedef std::map<QString, WellObservationSet> WellObservationMap;
|
||||
using WellObservationPair = std::pair<const QString, WellObservationSet>;
|
||||
using WellObservationMap = std::map<QString, WellObservationSet>;
|
||||
|
||||
WellObservationMap loadWellDates( QDir& dir, QString* errorMsg );
|
||||
static bool readTxtFile( const QString& txtFileName, QString* errorMsg, WellObservationSet* wellObservationSet );
|
||||
|
Reference in New Issue
Block a user