Skip to content

Commit

Permalink
mark main classe as nodiscard
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfer committed Jan 28, 2024
1 parent 5fc6f0b commit e9f0211
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/fsarray.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace tfel::math {

//! \brief a class representing tiny vectors of fixed size.
template <unsigned short N, typename T>
struct fsarray;
struct [[nodiscard]] fsarray;

/*!
* \brief partial specialisation for fsarrays.
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/matrix.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace tfel::math {
* \tparam T: the type hold by the matrix.
*/
template <typename T>
struct matrix;
struct [[nodiscard]] matrix;

/*!
* \brief partial specialisation for `matrix`.
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/qt.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ namespace tfel::math {
* \date 06 Jun 2006
*/
template <typename UnitType, typename ValueType, typename OwnershipPolicy>
struct Quantity;
struct [[nodiscard]] Quantity;

/*!
* \brief an helper structure to retrieve the underlying numeric type and
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/runtime_array.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace tfel::math {

//! \brief a class representing array of dynamic size.
template <typename ValueType>
struct runtime_array;
struct [[nodiscard]] runtime_array;

/*!
* \brief Partial specialisation for `runtime_array`.
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/st2tost2.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace tfel::math {
* \see StensorDimeToSize and StensorSizeToDime.
*/
template <unsigned short N, typename T = double>
struct st2tost2;
struct [[nodiscard]] st2tost2;

/*!
* \brief partial specialisation of the `MathObjectTraits` class for
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/st2tot2.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace tfel::math {
* \see StensorDimeToSize and StensorSizeToDime.
*/
template <unsigned short N, typename T = double>
struct st2tot2;
struct [[nodiscard]] st2tot2;

/*
* \brief partial specialisation of the `MathObjectTraits` class for
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/stensor.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace tfel::math {
* \see StensorDimeToSize and StensorSizeToDime.
*/
template <unsigned short N, typename T = double>
struct stensor;
struct [[nodiscard]] stensor;

/*!
* \brief partial specialisation of the `MathObjectTraits` class.
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/t2tost2.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace tfel::math {
* \see StensorDimeToSize and StensorSizeToDime.
*/
template <unsigned short N, typename T = double>
struct t2tost2;
struct [[nodiscard]] t2tost2;

/*
* \brief partial specialisation of the `MathObjectTraits` class for
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/t2tot2.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace tfel::math {
* \see StensorDimeToSize and StensorSizeToDime.
*/
template <unsigned short N, typename T = double>
struct t2tot2;
struct [[nodiscard]] t2tot2;

/*!
* \brief partial specialisation of the `MathObjectTraits` class for
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/tensor.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace tfel::math {
* \see TensorDimeToSize and TensorSizeToDime.
*/
template <unsigned short N, typename T = double>
struct tensor;
struct [[nodiscard]] tensor;

/*!
* \brief partial specialisation of the `MathObjectTraits` class.
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/tmatrix.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace tfel::math {
* \param typename T, the type hold by the tmatrix.
*/
template <unsigned short N, unsigned short M, typename T>
struct tmatrix;
struct [[nodiscard]] tmatrix;

/*!
* \brief partial specialisation for tmatrix
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/tvector.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace tfel::math {
* \tparam T: value hold
*/
template <unsigned short N, typename T>
struct tvector;
struct [[nodiscard]] tvector;

/*!
* \brief partial specialisation for tvectors.
Expand Down
2 changes: 1 addition & 1 deletion include/TFEL/Math/Forward/vector.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace tfel::math {
* \date 04/04/2007
*/
template <typename T>
struct vector;
struct [[nodiscard]] vector;

/*!
* \brief Partial specialisation for the vector class.
Expand Down

0 comments on commit e9f0211

Please sign in to comment.