[llvm] [DXIL][Analysis] Move dxil::ResourceInfo union initialization into setters (PR #100696)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 22:50:07 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 70a9535f714e2fdb84af243a1a316012c8019049 0f93ca1b01c9bfcd7fb9ac08f17958e1d4c85451 --extensions h,cpp -- llvm/include/llvm/Analysis/DXILResource.h llvm/lib/Analysis/DXILResource.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Analysis/DXILResource.h b/llvm/include/llvm/Analysis/DXILResource.h
index dff0b7cfcd..2ca0ad9a75 100644
--- a/llvm/include/llvm/Analysis/DXILResource.h
+++ b/llvm/include/llvm/Analysis/DXILResource.h
@@ -137,9 +137,7 @@ public:
     assert(isCBuffer() && "Not a CBuffer");
     CBufferSize = Size;
   }
-  void setSampler(dxil::SamplerType Ty) {
-    SamplerTy = Ty;
-  }
+  void setSampler(dxil::SamplerType Ty) { SamplerTy = Ty; }
   void setStruct(uint32_t Stride, Align Alignment) {
     assert(isStruct() && "Not a Struct");
     Struct.Stride = Stride;

``````````

</details>


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


More information about the llvm-commits mailing list