Skip to content
Snippets Groups Projects
Commit 887b67ec authored by brgerhar's avatar brgerhar
Browse files

clang-tidy: Apply performance-enum-size

parent c2543942
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <petscsys.h>
#include <type_traits>
......@@ -82,7 +83,7 @@ private:
std::unique_ptr<std::remove_pointer_t<T>, decltype(&destroy)> t_;
};
enum class OwnershipType { Take, Share };
enum class OwnershipType : std::uint8_t { Take, Share };
/**
* @brief Create a SharedEntity.
......
......@@ -27,6 +27,7 @@
#include "ae108/cpppetsc/TaggedVector.h"
#include "ae108/cpppetsc/UniqueEntity.h"
#include "ae108/cpppetsc/Vector.h"
#include <cstdint>
#include <functional>
#include <optional>
#include <petscmat.h>
......@@ -53,7 +54,7 @@ public:
*/
explicit TAOSolver(matrix_type bufferMatrix);
enum class Type {
enum class Type : std::uint8_t {
lmvm,
nls,
ntr,
......
......@@ -19,6 +19,7 @@
#pragma once
#include "ae108/cpppetsc/UniqueEntity.h"
#include <cstdint>
#include <petscviewer.h>
#include <petscviewerhdf5.h>
......@@ -34,7 +35,7 @@ public:
/**
* @brief Used to specify the mode a file is opened with.
*/
enum class Mode {
enum class Mode : std::uint8_t {
read,
write,
};
......
......@@ -24,6 +24,7 @@
#include "ae108/cpppetsc/Vector.h"
#include "ae108/cppslepc/EigenPair.h"
#include "ae108/cppslepc/EigenvalueProblemSolverDivergedException.h"
#include <cstdint>
#include <slepceps.h>
namespace ae108::cppslepc {
......@@ -39,7 +40,7 @@ public:
explicit LinearEigenvalueProblemSolver();
enum class Type {
enum class Type : std::uint8_t {
hermitian = EPS_HEP,
nonhermitian = EPS_NHEP,
generalized_hermitian = EPS_GHEP,
......@@ -95,7 +96,7 @@ public:
[[nodiscard]] EPS data() const;
private:
enum class GeneralizedProblem {
enum class GeneralizedProblem : std::uint8_t {
no = 0,
yes = 1,
};
......
......@@ -22,11 +22,12 @@
#include "ae108/elements/tensor/Tensor.h"
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <numbers>
namespace ae108::elements::quadrature {
enum class QuadratureType { Cube, Simplex };
enum class QuadratureType : std::uint8_t { Cube, Simplex };
/**
* @brief Contains a static member "data" that contains the points and weights.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment