Skip to content

Commit 06b8323

Browse files
committed
Reformat pragma checks
1 parent 990e67f commit 06b8323

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

include/xtensor/xstorage.hpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,10 +1941,13 @@ namespace xt
19411941
// G++ 8 C++ library does define it as a struct hence we get
19421942
// clang warnings here
19431943

1944+
// Do not remove space between "#" and "pragma". This is required for CRAN checks.
1945+
// clang-format off
19441946
#if defined(__clang__)
1945-
#pragma clang diagnostic push
1946-
#pragma clang diagnostic ignored "-Wmismatched-tags"
1947+
# pragma clang diagnostic push
1948+
# pragma clang diagnostic ignored "-Wmismatched-tags"
19471949
#endif
1950+
// clang-format on
19481951

19491952
namespace std
19501953
{
@@ -1969,9 +1972,12 @@ namespace std
19691972
class tuple_size<xt::sequence_view<T, Start, -1>>;
19701973
}
19711974

1975+
// Do not remove space between "#" and "pragma". This is required for CRAN checks.
1976+
// clang-format off
19721977
#if defined(__clang__)
1973-
#pragma clang diagnostic pop
1978+
# pragma clang diagnostic pop
19741979
#endif
1980+
// clang-format on
19751981

19761982
#undef XTENSOR_CONST
19771983

0 commit comments

Comments
 (0)