Skip to content

Commit efbac5b

Browse files
committed
clang-format
1 parent ac3954a commit efbac5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/include/sycl/sycl.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
#define TOSTRING(x) STRINGIFY(x)
1515

1616
#ifdef _MSC_VER
17-
#define WARNING(msg) __pragma(message(__FILE__ "(" TOSTRING(__LINE__) "): warning: " msg))
17+
#define WARNING(msg) \
18+
__pragma(message(__FILE__ "(" TOSTRING(__LINE__) "): warning: " msg))
1819
#elif defined(__GNUC__) || defined(__clang__)
1920
#define WARNING(msg) _Pragma(TOSTRING(GCC warning msg))
2021
#else
2122
#define WARNING(msg) // Unsupported compiler
2223
#endif
2324

24-
#if !defined(SYCL_LANGUAGE_VERSION) && !defined(SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)
25+
#if !defined(SYCL_LANGUAGE_VERSION) && \
26+
!defined(SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)
2527
WARNING("You are including <sycl/sycl.hpp> without -fsycl flag, \
2628
which is errorenous for device code compilation. This warning \
2729
can be disabled by setting SYCL_DISABLE_FSYCL_SYCLHPP_WARNING macro.")

0 commit comments

Comments
 (0)