Skip to content

Commit 10c3ead

Browse files
author
xwei19
committed
Fix lint
1 parent 7899475 commit 10c3ead

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

lint-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Lock to v19.x until we can upgrade our code to fix new v20 issues.
2-
clang-format~=19.1
2+
clang-format>=20.1.0
33
# Lock to v19.x until we can upgrade our code to fix new v20 issues.
4-
clang-tidy~=19.1
4+
clang-tidy>=19.1.0
55
colorama>=0.4.6
66
gersemi>=0.16.2
77
yamllint>=1.35.1

src/ystdlib/error_handling/ErrorCode.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ErrorCode {
8787
/**
8888
* @return The reference to the singleton of the corresponded error category.
8989
*/
90-
[[nodiscard]] constexpr static auto get_category() -> ErrorCategory<ErrorCodeEnum> const& {
90+
[[nodiscard]] static constexpr auto get_category() -> ErrorCategory<ErrorCodeEnum> const& {
9191
return cCategory;
9292
}
9393

src/ystdlib/error_handling/Result.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#ifndef YSTDLIB_ERROR_HANDLING_RESULT_HPP
22
#define YSTDLIB_ERROR_HANDLING_RESULT_HPP
33

4-
#include <system_error>
5-
64
#include <boost/outcome/config.hpp>
75
#include <boost/outcome/std_result.hpp>
86
#include <boost/outcome/success_failure.hpp>
97
#include <boost/outcome/try.hpp>
8+
#include <system_error>
109

1110
namespace ystdlib::error_handling {
1211
/**

src/ystdlib/error_handling/test/test_Result.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ TEST_CASE("test_result_unique_ptr", "[error_handling][Result]") {
107107

108108
auto const result_has_error{cUniquePtrFunc(true)};
109109
REQUIRE(result_has_error.has_error());
110-
REQUIRE(AlwaysSuccessErrorCode{AlwaysSuccessErrorCodeEnum::Success} == result_has_error.error()
111-
);
110+
REQUIRE(AlwaysSuccessErrorCode{AlwaysSuccessErrorCodeEnum::Success}
111+
== result_has_error.error());
112112
}
113113

114114
TEST_CASE("test_result_unique_ptr_in_main", "[error_handling][Result]") {

src/ystdlib/wrapped_facade_headers/test/test_sys_types.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include <catch2/catch_test_macros.hpp>
44

55
namespace ystdlib::wrapped_facade_headers::test {
6+
7+
namespace {
68
TEST_CASE("test_sys_types_u_char", "[wrapped_facade_headers][sys_types][u_char]") {
79
u_char const i{0};
810
REQUIRE(0 == i);
@@ -163,4 +165,6 @@ TEST_CASE("test_sys_types_fsfilcnt_t", "[wrapped_facade_headers][sys_types][fsfi
163165
fsfilcnt_t const i{0};
164166
REQUIRE(0 == i);
165167
}
168+
}
169+
166170
} // namespace ystdlib::wrapped_facade_headers::test

0 commit comments

Comments
 (0)