[clang] Reapply "[AMDGPU] Use the AMDGPUToolChain when targeting C/C++ directly (#99687)" (PR #125744)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 4 11:06:37 PST 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 daefb1b0121498ea48a0ed6514f11fb66872bafc 396691fa3fa13a8dce18742b47d4e0afda783d76 --extensions c,cpp -- clang/lib/Driver/Driver.cpp clang/test/Driver/amdgpu-toolchain.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 7420ebb0fe..36359f1575 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -169,8 +169,7 @@ getHIPOffloadTargetTriple(const Driver &D, const ArgList &Args) {
return std::nullopt;
}
-template <typename F>
-static bool usesInput(const ArgList &Args, F &&Fn) {
+template <typename F> static bool usesInput(const ArgList &Args, F &&Fn) {
return llvm::any_of(Args, [&](Arg *A) {
return (A->getOption().matches(options::OPT_x) &&
Fn(types::lookupTypeForTypeSpecifier(A->getValue()))) ||
``````````
</details>
https://github.com/llvm/llvm-project/pull/125744
More information about the cfe-commits
mailing list