[clang] [llvm] [HLSL][RootSignature] Add `hlsl-rootsig-ver` option to specify root signature version (PR #144813)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 15:58:44 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 h,cpp -- clang/include/clang/AST/Decl.h clang/include/clang/Basic/LangOptions.h clang/lib/AST/Decl.cpp clang/lib/AST/TextNodeDumper.cpp clang/lib/CodeGen/CGHLSLRuntime.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Driver/ToolChains/HLSL.cpp clang/lib/Frontend/CompilerInvocation.cpp clang/lib/Sema/SemaHLSL.cpp llvm/include/llvm/BinaryFormat/DXContainer.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/HLSL.cpp b/clang/lib/Driver/ToolChains/HLSL.cpp
index c1e4f599b..33850676a 100644
--- a/clang/lib/Driver/ToolChains/HLSL.cpp
+++ b/clang/lib/Driver/ToolChains/HLSL.cpp
@@ -296,7 +296,8 @@ HLSLToolChain::TranslateArgs(const DerivedArgList &Args, StringRef BoundArch,
continue;
}
if (A->getOption().getID() == options::OPT_dxc_rootsig_ver) {
- DAL->AddSeparateArg(nullptr, Opts.getOption(options::OPT_hlsl_rootsig_ver),
+ DAL->AddSeparateArg(nullptr,
+ Opts.getOption(options::OPT_hlsl_rootsig_ver),
A->getValue());
A->claim();
continue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/144813
More information about the llvm-commits
mailing list