[clang] [HLSL] Avoid putting ByVal on out and inout parameters (PR #150495)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 24 11:31:58 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- clang/lib/CodeGen/CGCall.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index acd7de863..73de51848 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2866,8 +2866,8 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
         } else {
           // Add dead_on_return when the object's lifetime ends in the callee.
           // This includes trivially-destructible objects, as well as objects
-          // whose destruction / clean-up is carried out within the callee (e.g.,
-          // Obj-C ARC-managed structs, MSVC callee-destroyed objects).
+          // whose destruction / clean-up is carried out within the callee
+          // (e.g., Obj-C ARC-managed structs, MSVC callee-destroyed objects).
           if (!ParamType.isDestructedType() || !ParamType->isRecordType() ||
               ParamType->castAs<RecordType>()
                   ->getDecl()

``````````

</details>


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


More information about the cfe-commits mailing list