Skip to content

Commit 05cf036

Browse files
committed
style: run clang format
1 parent be2b6f7 commit 05cf036

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

inkcpp/operations.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ ink::runtime::internal::value
9090

9191
const value vs[] = {*this, oth};
9292
inkAssert(
93-
casting::common_base<2>(vs) != value_type::none,
94-
"try to redefine value of other type with no cast available"
93+
casting::common_base<2>(vs) != value_type::none,
94+
"try to redefine value of other type with no cast available"
9595
);
9696

9797
// There's a valid conversion, so redefine as input value.

inkcpp/string_operations.h

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ namespace ink::runtime::internal {
2121
{ static constexpr value_type value = value_type::string; };
2222
template<>
2323
struct cast<value_type::uint32, value_type::string>
24-
{ static constexpr value_type value = value_type::string; };
25-
template<>
26-
struct cast<value_type::boolean, value_type::string>
27-
{ static constexpr value_type value = value_type::string; };
28-
template<>
29-
struct cast<value_type::string, value_type::newline>
30-
{ static constexpr value_type value = value_type::string; };
31-
}
24+
{ static constexpr value_type value = value_type::string;
25+
};
26+
27+
template<>
28+
struct cast<value_type::boolean, value_type::string> {
29+
static constexpr value_type value = value_type::string;
30+
};
31+
32+
template<>
33+
struct cast<value_type::string, value_type::newline> {
34+
static constexpr value_type value = value_type::string;
35+
};
36+
}
3237

3338
// operation declaration add
3439
template<>

inkcpp_test/Fixes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ SCENARIO("Casting during redefinition is too strict _ #134", "[fixes]")
145145
THEN("expect assigned") { REQUIRE(line == "1.5 1.5 1.5 text0.5 B\n"); }
146146
}
147147

148-
// Six cases that should fail. We can't pollute lookahead with these so they need to be
148+
// Six cases that should fail. We can't pollute lookahead with these so they need to be
149149
// separated out.
150150
for (int i = 0; i < 6; ++i) {
151151
WHEN("Jump to failing case")

0 commit comments

Comments
 (0)