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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to