Skip to content

Commit 7fa27c9

Browse files
committed
clang-format
1 parent ea1949d commit 7fa27c9

File tree

1 file changed

+6
-9
lines changed
  • clang/lib/Headers/cuda_wrappers/__utility

1 file changed

+6
-9
lines changed

clang/lib/Headers/cuda_wrappers/__utility/declval.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,17 @@ _LIBCPP_BEGIN_NAMESPACE_STD
1111
// Suppress deprecation notice for volatile-qualified return type resulting
1212
// from volatile-qualified types _Tp.
1313
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
14-
template <class _Tp>
15-
__attribute__((device))
16-
_Tp&& __declval(int);
17-
template <class _Tp>
18-
__attribute__((device))
19-
_Tp __declval(long);
14+
template <class _Tp> __attribute__((device)) _Tp &&__declval(int);
15+
template <class _Tp> __attribute__((device)) _Tp __declval(long);
2016
_LIBCPP_SUPPRESS_DEPRECATED_POP
2117

2218
template <class _Tp>
23-
__attribute__((device))
24-
_LIBCPP_HIDE_FROM_ABI decltype(std::__declval<_Tp>(0)) declval() _NOEXCEPT {
19+
__attribute__((device)) _LIBCPP_HIDE_FROM_ABI decltype(std::__declval<_Tp>(0))
20+
declval() _NOEXCEPT {
2521
static_assert(!__is_same(_Tp, _Tp),
2622
"std::declval can only be used in an unevaluated context. "
27-
"It's likely that your current usage is trying to extract a value from the function.");
23+
"It's likely that your current usage is trying to extract a "
24+
"value from the function.");
2825
}
2926

3027
_LIBCPP_END_NAMESPACE_STD

0 commit comments

Comments
 (0)