diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 09:16:13 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | 6832ded200f7a563b9e2cf81148fd26fdb064fdd (patch) | |
tree | 0f7aff13b0ac63dd16b15ff9329dbc2529355aa6 /src/utils/cpp/expected.hpp | |
parent | db5519c663ad119a47cb7747f80109267c301156 (diff) | |
download | justbuild-6832ded200f7a563b9e2cf81148fd26fdb064fdd.tar.gz |
Name classes, structs and enums using CamelCase.
Diffstat (limited to 'src/utils/cpp/expected.hpp')
-rw-r--r-- | src/utils/cpp/expected.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/cpp/expected.hpp b/src/utils/cpp/expected.hpp index 823c4650..da3955b7 100644 --- a/src/utils/cpp/expected.hpp +++ b/src/utils/cpp/expected.hpp @@ -20,7 +20,7 @@ // TODO(modernize): replace this by std::unexpected once we switched to C++23 template <class E> -class unexpected { +class unexpected { // NOLINT(readability-identifier-naming) public: explicit unexpected(E error) : error_{std::move(error)} {} [[nodiscard]] auto error() && -> E { return std::move(error_); } @@ -31,7 +31,7 @@ class unexpected { // TODO(modernize): replace this by std::expected once we switched to C++23 template <class T, class E> -class expected { +class expected { // NOLINT(readability-identifier-naming) public: expected(T value) noexcept // NOLINT : value_{std::in_place_index<0>, std::move(value)} {} |