[clang] [HLSL] Collect explicit resource binding information (part 1) (PR #111203)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 4 13:01:00 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 f74879cf0cf3e6d1f4c510627a7343ab09485e98 f545a14e11556c91d10b14617e3588fe5eae6d42 --extensions cpp,h -- clang/include/clang/Sema/SemaHLSL.h clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaHLSL.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cpp
index 568a8de30c..5c27a74a85 100644
--- a/clang/lib/Sema/SemaHLSL.cpp
+++ b/clang/lib/Sema/SemaHLSL.cpp
@@ -2250,7 +2250,7 @@ QualType SemaHLSL::getInoutParameterType(QualType Ty) {
void SemaHLSL::ProcessResourceBindingOnDecl(VarDecl *D) {
if (!D->hasGlobalStorage())
return;
-
+
for (Attr *A : D->attrs()) {
HLSLResourceBindingAttr *RBA = dyn_cast<HLSLResourceBindingAttr>(A);
if (!RBA)
``````````
</details>
https://github.com/llvm/llvm-project/pull/111203
More information about the cfe-commits
mailing list