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 fde27bd221c3ba011918a50bc2a47130959d33b7 
60c60c8a3b7aea4f6307fa5e08ffad7b90005c44 --extensions cpp -- 
clang/lib/Sema/SemaDecl.cpp clang/unittests/Tooling/ToolingTest.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index c04c66d8c4..575bd292f2 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -20149,8 +20149,9 @@ Sema::FunctionEmissionStatus 
Sema::getEmissionStatus(const FunctionDecl *FD,
     const FunctionDecl *Def = FD->getDefinition();
 
     // We can't compute linkage when we skip function bodies.
-    return Def && !Def->hasSkippedBody() && !isDiscardableGVALinkage(
-                      getASTContext().GetGVALinkageForFunction(Def));
+    return Def && !Def->hasSkippedBody() &&
+           !isDiscardableGVALinkage(
+               getASTContext().GetGVALinkageForFunction(Def));
   };
 
   if (LangOpts.OpenMPIsTargetDevice) {

``````````

</details>


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

Reply via email to