github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h --
clang/lib/Headers/hlsl/hlsl_compat_overloads.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Headers/hlsl/hlsl_compat_overloads.h
b/clang/lib/Headers/hlsl/hlsl_compat_overloads.h
index b674a63b5..51d5890f4 100644
--- a/clang/lib/Headers/hlsl/hlsl_compat_overloads.h
+++ b/clang/lib/Headers/hlsl/hlsl_compat_overloads.h
@@ -272,15 +272,15 @@ namespace hlsl {
}
#define _DXC_COMPAT_FLOAT_TO_BOOL_OVERLOADS(fn)
\
-_DXC_DEPRECATED_64BIT_FN(fn)
\
-constexpr bool fn(double V) { return fn((float)V); }
\
-_DXC_DEPRECATED_64BIT_FN(fn)
\
-constexpr bool2 fn(double2 V) { return fn((float2)V); }
\
-_DXC_DEPRECATED_64BIT_FN(fn)
\
-constexpr bool3 fn(double3 V) { return fn((float3)V); }
\
-_DXC_DEPRECATED_64BIT_FN(fn)
\
-constexpr bool4 fn(double4 V) { return fn((float4)V); }
\
-template <uint R, uint C>
\
+ _DXC_DEPRECATED_64BIT_FN(fn)
\
+ constexpr bool fn(double V) { return fn((float)V); }
\
+ _DXC_DEPRECATED_64BIT_FN(fn)
\
+ constexpr bool2 fn(double2 V) { return fn((float2)V); }
\
+ _DXC_DEPRECATED_64BIT_FN(fn)
\
+ constexpr bool3 fn(double3 V) { return fn((float3)V); }
\
+ _DXC_DEPRECATED_64BIT_FN(fn)
\
+ constexpr bool4 fn(double4 V) { return fn((float4)V); }
\
+ template <uint R, uint C>
\
_DXC_DEPRECATED_64BIT_FN(fn)
\
constexpr matrix<bool, R, C> fn(matrix<double, R, C> V) {
\
return fn((matrix<float, R, C>)V);
\
``````````
</details>
https://github.com/llvm/llvm-project/pull/233024
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits