Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devops.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ buggy_cpp_macros = ["MSTD_WARN_BUGGY_HEADER", "MSTD_WARN_BUGGY_LIBRARY"]
#license_header_check = true
#check_only_staged_files = false
license_header = "config/licenseHeader.txt"
header_guards_according_to_filepath = true

[file]
#encoding = "utf-8"
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"__nullptr": "cpp",
"csignal": "cpp",
"list": "cpp",
"text_encoding": "cpp"
"text_encoding": "cpp",
"__locale": "cpp"
},
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ All notable changes to this project will be documented in this file.
- Add exhaustive error flags for compilation
- Add checking of doxygen comments via building docs (no docs is building for gh pages - yet)

### Cleanup

- Cleanup header guards to follow common rule with folder and file structure

<!-- insertion marker -->
## [0.0.2](https://github.com/97gamjak/mstd/releases/tag/0.0.2) - 2025-11-20

Expand Down
6 changes: 3 additions & 3 deletions include/mstd/compile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_COMPILE_HPP__
#define __MSTD_COMPILE_HPP__
#ifndef __MSTD__COMPILE_HPP__
#define __MSTD__COMPILE_HPP__

/**
* @brief Ignore buggy code
Expand All @@ -40,4 +40,4 @@
#define MSTD_IGNORE_BUGGY_CODE 0
#endif

#endif // __MSTD_COMPILE_HPP__
#endif // __MSTD__COMPILE_HPP__
6 changes: 3 additions & 3 deletions include/mstd/enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_ENUM_HPP__
#define __MSTD_ENUM_HPP__
#ifndef __MSTD__ENUM_HPP__
#define __MSTD__ENUM_HPP__

#include <array> // IWYU pragma: keep
#include <cstddef> // IWYU pragma: keep
Expand Down Expand Up @@ -100,4 +100,4 @@
} \
};

#endif // __MSTD_ENUM_HPP__
#endif // __MSTD__ENUM_HPP__
6 changes: 3 additions & 3 deletions include/mstd/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_ERROR_HPP__
#define __MSTD_ERROR_HPP__
#ifndef __MSTD__ERROR_HPP__
#define __MSTD__ERROR_HPP__

#include <type_traits>

Expand Down Expand Up @@ -79,4 +79,4 @@ namespace mstd

#endif

#endif // __MSTD_ERROR_HPP__
#endif // __MSTD__ERROR_HPP__
6 changes: 3 additions & 3 deletions include/mstd/functional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __FUNCTIONAL_HPP__
#define __FUNCTIONAL_HPP__
#ifndef __MSTD__FUNCTIONAL_HPP__
#define __MSTD__FUNCTIONAL_HPP__

namespace mstd
{
Expand Down Expand Up @@ -56,4 +56,4 @@ namespace mstd

} // namespace mstd

#endif // __FUNCTIONAL_HPP__
#endif // __MSTD__FUNCTIONAL_HPP__
6 changes: 3 additions & 3 deletions include/mstd/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_MATH_HPP__
#define __MSTD_MATH_HPP__
#ifndef __MSTD__MATH_HPP__
#define __MSTD__MATH_HPP__

#include "math/power.hpp" // IWYU pragma: export

#endif // __MSTD_MATH_HPP__
#endif // __MSTD__MATH_HPP__
6 changes: 3 additions & 3 deletions include/mstd/math/power.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_MATH_POWER_HPP__
#define __MSTD_MATH_POWER_HPP__
#ifndef __MSTD__MATH__POWER_HPP__
#define __MSTD__MATH__POWER_HPP__

#include <ratio>

Expand Down Expand Up @@ -80,4 +80,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_MATH_POWER_HPP__
#endif // __MSTD__MATH__POWER_HPP__
6 changes: 3 additions & 3 deletions include/mstd/pack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_PACK_HPP__
#define __MSTD_PACK_HPP__
#ifndef __MSTD__PACK_HPP__
#define __MSTD__PACK_HPP__

#include "pack/integer_pack.hpp" // IWYU pragma: export
#include "pack/integer_pack_operations.hpp" // IWYU pragma: export
#include "pack/ratio_pack.hpp" // IWYU pragma: export
#include "pack/ratio_pack_operations.hpp" // IWYU pragma: export
#include "type_traits/pack_traits.hpp" // IWYU pragma: export

#endif // __MSTD_PACK_HPP__
#endif // __MSTD__PACK_HPP__
6 changes: 3 additions & 3 deletions include/mstd/pack/integer_pack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_INTEGER_PACK_HPP__
#define __MSTD_INTEGER_PACK_HPP__
#ifndef __MSTD__PACK__INTEGER_PACK_HPP__
#define __MSTD__PACK__INTEGER_PACK_HPP__

#include <array>
#include <cstddef>
Expand Down Expand Up @@ -99,4 +99,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_INTEGER_PACK_HPP__
#endif // __MSTD__PACK__INTEGER_PACK_HPP__
12 changes: 6 additions & 6 deletions include/mstd/pack/integer_pack_details.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_INTEGER_PACK_DETAILS_HPP__
#define __MSTD_INTEGER_PACK_DETAILS_HPP__
#ifndef __MSTD__PACK__INTEGER_PACK_DETAILS_HPP__
#define __MSTD__PACK__INTEGER_PACK_DETAILS_HPP__

#include <array>
#include <cstddef>
Expand Down Expand Up @@ -114,9 +114,9 @@ namespace mstd
* @tparam F The function to apply.
*/
template <class A, class B, class F>
using pack_zip_t = decltype(pack_zip_impl<A, B, F>(
std::make_index_sequence<A::size>{}
));
using pack_zip_t =
decltype(pack_zip_impl<A, B, F>(std::make_index_sequence<A::size>{})
);

/*********************
* *
Expand Down Expand Up @@ -158,4 +158,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_INTEGER_PACK_DETAILS_HPP__
#endif // __MSTD__PACK__INTEGER_PACK_DETAILS_HPP__
6 changes: 3 additions & 3 deletions include/mstd/pack/integer_pack_operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_INTEGER_PACK_OPERATIONS_HPP__
#define __MSTD_INTEGER_PACK_OPERATIONS_HPP__
#ifndef __MSTD__PACK__INTEGER_PACK_OPERATIONS_HPP__
#define __MSTD__PACK__INTEGER_PACK_OPERATIONS_HPP__

#include "integer_pack.hpp"
#include "integer_pack_details.hpp"
Expand Down Expand Up @@ -60,4 +60,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_INTEGER_PACK_OPERATIONS_HPP__
#endif // __MSTD__PACK__INTEGER_PACK_OPERATIONS_HPP__
6 changes: 3 additions & 3 deletions include/mstd/pack/ratio_pack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_RATIO_PACK_HPP__
#define __MSTD_RATIO_PACK_HPP__
#ifndef __MSTD__PACK__RATIO_PACK_HPP__
#define __MSTD__PACK__RATIO_PACK_HPP__

#include <array>
#include <cstddef>
Expand Down Expand Up @@ -87,4 +87,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_RATIO_PACK_HPP__
#endif // __MSTD__PACK__RATIO_PACK_HPP__
6 changes: 3 additions & 3 deletions include/mstd/pack/ratio_pack_details.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_RATIO_PACK_DETAILS_HPP__
#define __MSTD_RATIO_PACK_DETAILS_HPP__
#ifndef __MSTD__PACK__RATIO_PACK_DETAILS_HPP__
#define __MSTD__PACK__RATIO_PACK_DETAILS_HPP__

#include <array>
#include <cstddef>
Expand Down Expand Up @@ -129,4 +129,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_RATIO_PACK_DETAILS_HPP__
#endif // __MSTD__PACK__RATIO_PACK_DETAILS_HPP__
6 changes: 3 additions & 3 deletions include/mstd/pack/ratio_pack_operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_RATIO_PACK_OPERATIONS_HPP__
#define __MSTD_RATIO_PACK_OPERATIONS_HPP__
#ifndef __MSTD__PACK__RATIO_PACK_OPERATIONS_HPP__
#define __MSTD__PACK__RATIO_PACK_OPERATIONS_HPP__

#include "ratio_pack.hpp"
#include "ratio_pack_details.hpp"
Expand Down Expand Up @@ -82,4 +82,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_RATIO_PACK_OPERATIONS_HPP__
#endif // __MSTD__PACK__RATIO_PACK_OPERATIONS_HPP__
6 changes: 3 additions & 3 deletions include/mstd/quantity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_UNITS_HPP__
#define __MSTD_UNITS_HPP__
#ifndef __MSTD__QUANTITY_HPP__
#define __MSTD__QUANTITY_HPP__

#include "mstd/error.hpp" // IWYU pragma: export

Expand All @@ -36,4 +36,4 @@ MSTD_WARN_BUGGY_LIBRARY("mstd/quantity.hpp")
#include "quantity/unit_impl.hpp" // IWYU pragma: export
#include "quantity/unit_operations.hpp" // IWYU pragma: export

#endif // __MSTD_UNITS_HPP__
#endif // __MSTD__QUANTITY_HPP__
6 changes: 3 additions & 3 deletions include/mstd/quantity/dim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_UNITS_DIMENSION_HPP__
#define __MSTD_UNITS_DIMENSION_HPP__
#ifndef __MSTD__QUANTITY__DIM_HPP__
#define __MSTD__QUANTITY__DIM_HPP__

#include "mstd/error.hpp"

Expand Down Expand Up @@ -124,4 +124,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_UNITS_DIMENSION_HPP__
#endif // __MSTD__QUANTITY__DIM_HPP__
6 changes: 3 additions & 3 deletions include/mstd/quantity/dim_details.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_DIM_DETAILS_HPP__
#define __MSTD_DIM_DETAILS_HPP__
#ifndef __MSTD__QUANTITY__DIM_DETAILS_HPP__
#define __MSTD__QUANTITY__DIM_DETAILS_HPP__

#include "mstd/error.hpp"

Expand Down Expand Up @@ -104,4 +104,4 @@ namespace mstd
} // namespace details
} // namespace mstd

#endif // __MSTD_DIM_DETAILS_HPP__
#endif // __MSTD__QUANTITY__DIM_DETAILS_HPP__
6 changes: 3 additions & 3 deletions include/mstd/quantity/dim_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_DIMENSION_IMPL_HPP__
#define __MSTD_DIMENSION_IMPL_HPP__
#ifndef __MSTD__QUANTITY__DIM_IMPL_HPP__
#define __MSTD__QUANTITY__DIM_IMPL_HPP__

#include "mstd/error.hpp"

Expand Down Expand Up @@ -129,4 +129,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_DIMENSION_IMPL_HPP__
#endif // __MSTD__QUANTITY__DIM_IMPL_HPP__
6 changes: 3 additions & 3 deletions include/mstd/quantity/dim_operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_DIM_OPERATIONS_HPP__
#define __MSTD_DIM_OPERATIONS_HPP__
#ifndef __MSTD__QUANTITY__DIM_OPERATIONS_HPP__
#define __MSTD__QUANTITY__DIM_OPERATIONS_HPP__

#include "mstd/error.hpp"

Expand Down Expand Up @@ -75,4 +75,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_DIM_OPERATIONS_HPP__
#endif // __MSTD__QUANTITY__DIM_OPERATIONS_HPP__
6 changes: 3 additions & 3 deletions include/mstd/quantity/dim_ratio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<GPL_HEADER>
******************************************************************************/

#ifndef __MSTD_DIM_RATIO_HPP__
#define __MSTD_DIM_RATIO_HPP__
#ifndef __MSTD__QUANTITY__DIM_RATIO_HPP__
#define __MSTD__QUANTITY__DIM_RATIO_HPP__

#include "mstd/error.hpp"

Expand Down Expand Up @@ -111,4 +111,4 @@ namespace mstd

} // namespace mstd

#endif // __MSTD_DIM_RATIO_HPP__
#endif // __MSTD__QUANTITY__DIM_RATIO_HPP__
Loading