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:
Magne Sjaastad
2023-04-14 14:07:45 +02:00
committed by GitHub
parent 457dc9080f
commit 6f6dc80bc6
118 changed files with 220 additions and 225 deletions

View File

@@ -148,7 +148,7 @@ bool RimFileWellPath::readWellPathFile( QString* errorMessage, RifWellPathImport
{
RifWellPathImporter::WellData wellData = wellPathImporter->readWellData( this->filePath(), m_wellPathIndexInFile() );
RifWellPathImporter::WellMetaData wellMetaData = wellPathImporter->readWellMetaData( this->filePath(), m_wellPathIndexInFile() );
RifWellPathImporter::WellMetaData wellMetaData = RifWellPathImporter::readWellMetaData( this->filePath(), m_wellPathIndexInFile() );
// General well info
if ( setWellNameForExport )

View File

@@ -34,9 +34,9 @@ class RimWellPathAttribute : public caf::PdmObject, public RimWellPathComponentI
CAF_PDM_HEADER_INIT;
public:
static double MAX_DIAMETER_IN_INCHES;
static double MIN_DIAMETER_IN_INCHES;
typedef caf::AppEnum<RiaDefines::WellPathComponentType> CompletionTypeEnum;
static double MAX_DIAMETER_IN_INCHES;
static double MIN_DIAMETER_IN_INCHES;
using CompletionTypeEnum = caf::AppEnum<RiaDefines::WellPathComponentType>;
RimWellPathAttribute();
~RimWellPathAttribute() override;

View File

@@ -79,7 +79,7 @@ public:
ALL_ON,
FORCE_ALL_ON
};
typedef caf::AppEnum<RimWellPathCollection::WellVisibilityType> WellVisibilityEnum;
using WellVisibilityEnum = caf::AppEnum<RimWellPathCollection::WellVisibilityType>;
caf::PdmField<bool> isActive;