Skip to content

Commit 2002952

Browse files
Icohedronbogner
andauthored
Fix spacing with 'and' functions in hlsl_intrinsics.h
Co-authored-by: Justin Bogner <[email protected]>
1 parent 26fe3fe commit 2002952

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,19 @@ bool all(double4);
257257
/// \brief Logically ands two boolean vectors elementwise and produces a bool
258258
/// vector output.
259259

260+
// TODO: Clean up clang-format marker once we've resolved
261+
// https://github.com/llvm/llvm-project/issues/127851
262+
//
263+
// clang-format off
260264
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_and)
261-
bool and (bool x, bool y);
265+
bool and(bool x, bool y);
262266
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_and)
263-
bool2 and (bool2 x, bool2 y);
267+
bool2 and(bool2 x, bool2 y);
264268
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_and)
265-
bool3 and (bool3 x, bool3 y);
269+
bool3 and(bool3 x, bool3 y);
266270
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_and)
267-
bool4 and (bool4 x, bool4 y);
271+
bool4 and(bool4 x, bool4 y);
272+
// clang-format on
268273

269274
//===----------------------------------------------------------------------===//
270275
// any builtins

0 commit comments

Comments
 (0)