Skip to content

Commit dd0765a

Browse files
committed
make clang format happy
1 parent 47c90c4 commit dd0765a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

clang/lib/Headers/hlsl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
// HLSL standard library function declarations/definitions.
2424
#include "hlsl/hlsl_alias_intrinsics.h"
25-
#include "hlsl/hlsl_intrinsics.h"
2625
#include "hlsl/hlsl_compat_overloads.h"
26+
#include "hlsl/hlsl_intrinsics.h"
2727

2828
#if defined(__clang__)
2929
#pragma clang diagnostic pop

clang/lib/Headers/hlsl/hlsl_compat_overloads.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,31 @@ namespace hlsl {
2222
//===----------------------------------------------------------------------===//
2323

2424
template <typename T, typename R, typename U, uint N>
25-
constexpr __detail::enable_if_t<__detail::is_arithmetic<U>::Value && (N > 1 && N <= 4), vector<T, N>>
25+
constexpr __detail::enable_if_t<
26+
__detail::is_arithmetic<U>::Value && (N > 1 && N <= 4), vector<T, N>>
2627
clamp(vector<T, N> p0, vector<R, N> p1, U p2) {
2728
return __builtin_hlsl_elementwise_clamp(p0, (vector<T, N>)p1,
2829
(vector<T, N>)p2);
2930
}
3031
template <typename T, typename R, typename U, uint N>
31-
constexpr __detail::enable_if_t<__detail::is_arithmetic<U>::Value && (N > 1 && N <= 4), vector<T, N>>
32+
constexpr __detail::enable_if_t<
33+
__detail::is_arithmetic<U>::Value && (N > 1 && N <= 4), vector<T, N>>
3234
clamp(vector<T, N> p0, U p1, vector<R, N> p2) {
3335
return __builtin_hlsl_elementwise_clamp(p0, (vector<T, N>)p1,
3436
(vector<T, N>)p2);
3537
}
3638
template <typename T, typename U, typename V, uint N>
3739
constexpr __detail::enable_if_t<__detail::is_arithmetic<U>::Value &&
38-
__detail::is_arithmetic<V>::Value && (N > 1 && N <= 4),
40+
__detail::is_arithmetic<V>::Value &&
41+
(N > 1 && N <= 4),
3942
vector<T, N>>
4043
clamp(vector<T, N> p0, U p1, V p2) {
4144
return __builtin_hlsl_elementwise_clamp(p0, (vector<T, N>)p1,
4245
(vector<T, N>)p2);
4346
}
4447
template <typename T, typename R, typename S, uint N>
45-
constexpr __detail::enable_if_t<(N > 1 && N <= 4), vector<T, N>> clamp(vector<T, N> p0, vector<R, N> p1,
46-
vector<S, N> p2) {
48+
constexpr __detail::enable_if_t<(N > 1 && N <= 4), vector<T, N>>
49+
clamp(vector<T, N> p0, vector<R, N> p1, vector<S, N> p2) {
4750
return __builtin_hlsl_elementwise_clamp(p0, (vector<T, N>)p1,
4851
(vector<T, N>)p2);
4952
}

0 commit comments

Comments
 (0)