[clang] [HLSL] Add __is_scalarized_layout_compatible (PR #102227)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 13:30:52 PDT 2024


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 a1af1de4380f9c4fa3b5229e9f4a41af93955c38 f1204453733faec7df428f6d6aa708c0b02db22b --extensions cpp,h -- clang/include/clang/Sema/SemaHLSL.h clang/lib/Headers/hlsl/hlsl_basic_types.h clang/lib/Sema/SemaExprCXX.cpp clang/lib/Sema/SemaHLSL.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index de9879e25c..90c554c151 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -6199,10 +6199,10 @@ static bool EvaluateBinaryTypeTrait(Sema &Self, TypeTrait BTT, const TypeSourceI
                                    diag::err_incomplete_type))
         return true;
 
-    DiagnoseVLAInCXXTypeTrait(Self, Lhs,
-                              tok::kw___builtin_is_scalarized_layout_compatible);
-    DiagnoseVLAInCXXTypeTrait(Self, Rhs,
-                              tok::kw___builtin_is_scalarized_layout_compatible);
+    DiagnoseVLAInCXXTypeTrait(
+        Self, Lhs, tok::kw___builtin_is_scalarized_layout_compatible);
+    DiagnoseVLAInCXXTypeTrait(
+        Self, Rhs, tok::kw___builtin_is_scalarized_layout_compatible);
 
     return Self.HLSL().IsScalarizedLayoutCompatible(LhsT, RhsT);
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/102227


More information about the cfe-commits mailing list