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 b108fbe6ea4247e5a3019a4facf611d5a42d465c 
d6ff7dc3dcc5ca677a811888f5e67cc5aaad9d8f --extensions cpp -- 
clang/lib/AST/ASTContext.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 5e7461365c..7f54fe36a0 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -7224,8 +7224,7 @@ static bool isSameQualifier(const NestedNameSpecifier *X,
   return !PX && !PY;
 }
 
-static bool hasSameCudaAttrs(const FunctionDecl *A,
-                             const FunctionDecl *B) {
+static bool hasSameCudaAttrs(const FunctionDecl *A, const FunctionDecl *B) {
   if (!A->getASTContext().getLangOpts().CUDA)
     return true; // Target attributes are overloadable in CUDA compilation 
only.
   if (A->hasAttr<CUDADeviceAttr>() != B->hasAttr<CUDADeviceAttr>())

``````````

</details>


https://github.com/llvm/llvm-project/pull/125127
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to