Skip to content

Commit 012e318

Browse files
yfeldblumfacebook-github-bot
authored andcommitted
fix violations of and enable clang warning: extra-semi-stmt
Reviewed By: Gownta Differential Revision: D65389971 fbshipit-source-id: 1819925f73f30b432a775c7163a374f3a832994f
1 parent 19e5027 commit 012e318

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

fatal/container/test/flag_set_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ void check(TExpectedValue &&expected, TActual &&actual) {
5959
fx x01##suffix(x01s); fx x23##suffix(x23s); fx x45##suffix(x45s); \
6060
fx x012345##suffix(x012345s); \
6161
fx x543210##suffix(x543210s); \
62-
fx x051423##suffix(x051423s);
62+
fx x051423##suffix(x051423s); \
63+
static_assert(true)
6364

6465
//////////
6566
// ctor //

fatal/container/test/variant_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ void check_type_tag_size() {
15861586
template <int> struct X {};
15871587
FATAL_TEST(variant, type_tag_size) {
15881588
#define TAG_SIZE_TEST(Expected,...) \
1589-
check_type_tag_size<Expected, __VA_ARGS__>();
1589+
check_type_tag_size<Expected, __VA_ARGS__>()
15901590

15911591
TAG_SIZE_TEST(bool, X<1>);
15921592
TAG_SIZE_TEST(uint8_t, X<1>, X<2>);

fatal/type/test/constify_from_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace fatal {
1515

1616
FATAL_TEST(traits, constify_from) {
1717
# define TEST_IMPL(From, T, ...) \
18-
FATAL_EXPECT_SAME<__VA_ARGS__, constify_from<T, From>::type>();
18+
FATAL_EXPECT_SAME<__VA_ARGS__, constify_from<T, From>::type>()
1919

2020
TEST_IMPL(int, int &&, int &&);
2121
TEST_IMPL(int, int &, int &);

fatal/type/test/constify_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace fatal {
1515

1616
FATAL_TEST(traits, constify) {
1717
# define TEST_IMPL(T, ...) \
18-
FATAL_EXPECT_SAME<__VA_ARGS__, constify<T>::type>();
18+
FATAL_EXPECT_SAME<__VA_ARGS__, constify<T>::type>()
1919

2020
TEST_IMPL(int &&, int const &&);
2121
TEST_IMPL(int &, int const &);

fatal/type/test/qualifier_test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ FATAL_TEST(qualifier, cv_qualifier_bitwise_and) {
4545

4646
FATAL_TEST(qualifier, add_const_from) {
4747
# define TEST_IMPL(From, T, ...) \
48-
FATAL_EXPECT_SAME<__VA_ARGS__, add_const_from_t<T, From>>();
48+
FATAL_EXPECT_SAME<__VA_ARGS__, add_const_from_t<T, From>>()
4949

5050
TEST_IMPL(int, int &&, int &&);
5151
TEST_IMPL(int, int &, int &);
@@ -90,7 +90,7 @@ FATAL_TEST(qualifier, add_const_from) {
9090

9191
FATAL_TEST(qualifier, add_volatile_from) {
9292
# define TEST_IMPL(From, T, ...) \
93-
FATAL_EXPECT_SAME<__VA_ARGS__, add_volatile_from_t<T, From>>();
93+
FATAL_EXPECT_SAME<__VA_ARGS__, add_volatile_from_t<T, From>>()
9494

9595
TEST_IMPL(int, int &&, int &&);
9696
TEST_IMPL(int, int &, int &);
@@ -135,7 +135,7 @@ FATAL_TEST(qualifier, add_volatile_from) {
135135

136136
FATAL_TEST(qualifier, add_cv_from) {
137137
# define TEST_IMPL(From, T, ...) \
138-
FATAL_EXPECT_SAME<__VA_ARGS__, add_cv_from_t<T, From>>();
138+
FATAL_EXPECT_SAME<__VA_ARGS__, add_cv_from_t<T, From>>()
139139

140140
TEST_IMPL(int, int, int);
141141
TEST_IMPL(int, int const, int const);
@@ -159,7 +159,7 @@ FATAL_TEST(qualifier, add_cv_from) {
159159

160160
FATAL_TEST(qualifier, add_reference_from) {
161161
# define TEST_IMPL(From, T, ...) \
162-
FATAL_EXPECT_SAME<__VA_ARGS__, add_reference_from_t<T, From>>();
162+
FATAL_EXPECT_SAME<__VA_ARGS__, add_reference_from_t<T, From>>()
163163

164164
TEST_IMPL(int &&, int &&, int &&);
165165
TEST_IMPL(int &&, int &, int &);
@@ -223,7 +223,7 @@ FATAL_TEST(qualifier, add_reference_from) {
223223

224224
FATAL_TEST(qualifier, add_cv_reference_from) {
225225
# define TEST_IMPL(From, T, ...) \
226-
FATAL_EXPECT_SAME<__VA_ARGS__, add_cv_reference_from_t<T, From>>();
226+
FATAL_EXPECT_SAME<__VA_ARGS__, add_cv_reference_from_t<T, From>>()
227227

228228
TEST_IMPL(int, int, int);
229229
TEST_IMPL(int, int const &, int const &);

fatal/type/test/same_reference_as_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace fatal {
1515

1616
FATAL_TEST(traits, same_reference_as) {
1717
# define TEST_IMPL(From, T, ...) \
18-
FATAL_EXPECT_SAME<__VA_ARGS__, same_reference_as<T, From>::type>();
18+
FATAL_EXPECT_SAME<__VA_ARGS__, same_reference_as<T, From>::type>()
1919

2020
TEST_IMPL(int &&, int &&, int &&);
2121
TEST_IMPL(int &&, int &, int &&);

0 commit comments

Comments
 (0)