Skip to content

Commit 247e43e

Browse files
committed
Reformat via lint
Run cmake and clang formatting passes.
1 parent bfeeada commit 247e43e

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

etc/gcc-toolchain.cmake

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ include_guard(GLOBAL)
33
set(CMAKE_C_COMPILER gcc)
44
set(CMAKE_CXX_COMPILER g++)
55

6-
set(CMAKE_CXX_FLAGS
7-
"-Wall -Wextra "
8-
CACHE STRING
9-
"CXX_FLAGS"
10-
FORCE
11-
)
6+
set(CMAKE_CXX_FLAGS "-Wall -Wextra " CACHE STRING "CXX_FLAGS" FORCE)
127

138
set(CMAKE_CXX_FLAGS_DEBUG
149
"-O0 -fno-inline -g3"

tests/beman/optional/optional_range_support.t.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <unordered_set>
2828
#include <vector>
2929

30-
3130
#define CONSTEXPR_EXPECT_TRUE(val) \
3231
if (::std::is_constant_evaluated()) { \
3332
if (!(val)) { \
@@ -113,7 +112,6 @@ TEST(RangeSupportTest, IteratorConcepts) {
113112
test(beman::optional::optional<derived>{});
114113
}
115114

116-
117115
TEST(RangeSupportTest, BeginOnEmptyOptional) {
118116
auto lambda = [&] {
119117
const auto test = [](auto&& opt) {
@@ -227,7 +225,7 @@ TEST(RangeSupportTest, EndOnNonEmptyOptional) {
227225
EXPECT_TRUE(lambda());
228226
}
229227

230-
#if (__cplusplus >= 202302L) && \
228+
#if (__cplusplus >= 202302L) && \
231229
(((__GNUC__ >= 15) && (__GNUC_MINOR__ >= 1) && (__GNUC_PATCHLEVEL__ >= 1)) || ((__GNUC__ >= 16)))
232230
static_assert(std::format_kind<beman::optional::optional<int>> == std::range_format::disabled);
233231
#endif
@@ -323,7 +321,7 @@ TEST(RangeSupportTest, LoopOptionalAssignment) {
323321
// Example from P3168R2: should mutate the value from an optional object.
324322
constexpr int initial_expected_value = 0xCAFEBABE;
325323
constexpr int expected_value = 0xDEADBEEF;
326-
constexpr auto get_optional = [=]() -> beman::optional::optional<int> { return initial_expected_value; };
324+
constexpr auto get_optional = [=]() -> beman::optional::optional<int> { return initial_expected_value; };
327325
constexpr_assert(get_optional().has_value());
328326
constexpr_assert(get_optional().value() == initial_expected_value);
329327

0 commit comments

Comments
 (0)