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 origin/main HEAD --extensions c,cpp -- 
clang/test/CodeGen/oracle_function.c clang/test/Sema/attr-oracle-function.c 
clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/Sema/SemaDecl.cpp 
--diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</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 296d2370e..9cae10da3 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -7337,7 +7337,8 @@ static void checkLifetimeBoundAttr(Sema &S, NamedDecl 
&ND) {
   }
 }
 
-static void checkOracleFunctionAttr(Sema &S, FunctionDecl &FD, const 
Declarator &D) {
+static void checkOracleFunctionAttr(Sema &S, FunctionDecl &FD,
+                                    const Declarator &D) {
   auto *Attr = FD.getAttr<OracleFunctionAttr>();
   if (!Attr)
     return;
@@ -7351,8 +7352,7 @@ static void checkOracleFunctionAttr(Sema &S, FunctionDecl 
&FD, const Declarator
   }
 
   if (FD.isExternallyVisible()) {
-    S.Diag(Attr->getLocation(),
-            diag::err_oracle_function_no_external_linkage);
+    S.Diag(Attr->getLocation(), diag::err_oracle_function_no_external_linkage);
     return;
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/242484
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to