Skip to content

Commit 4d73490

Browse files
authored
[SYCL] Enable improved code location for SYCL extensions (#9360)
This patch enables an improved code location for vendor specific extensions nested inside the `sycl` namespace, i. e. `ext::oneapi::experimental`.
1 parent a156931 commit 4d73490

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sycl/include/sycl/detail/common.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,20 @@ struct code_location {
104104

105105
#ifndef DISABLE_SYCL_INSTRUMENTATION_METADATA
106106
#define _CODELOCONLYPARAM(a) \
107-
const detail::code_location a = detail::code_location::current()
107+
const ::sycl::detail::code_location a = \
108+
::sycl::detail::code_location::current()
108109
#define _CODELOCPARAM(a) \
109-
, const detail::code_location a = detail::code_location::current()
110-
#define _CODELOCPARAMDEF(a) , const detail::code_location a
110+
, const ::sycl::detail::code_location a = \
111+
::sycl::detail::code_location::current()
112+
#define _CODELOCPARAMDEF(a) , const ::sycl::detail::code_location a
111113

112114
#define _CODELOCARG(a)
113115
#define _CODELOCFW(a) , a
114116
#else
115117
#define _CODELOCONLYPARAM(a)
116118
#define _CODELOCPARAM(a)
117119

118-
#define _CODELOCARG(a) const detail::code_location a = {}
120+
#define _CODELOCARG(a) const ::sycl::detail::code_location a = {}
119121
#define _CODELOCFW(a)
120122
#endif
121123

0 commit comments

Comments
 (0)