[llvm] Add LLVM_GSL_POINTER to llvm::function_ref. (PR #120699)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 01:08:03 PST 2024
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 eace8269d9aeb67013d273735ec1be1002a6fac1 04115c7a08bb5fa291f3ef4342bd74d9e5deff64 --extensions h -- llvm/include/llvm/ADT/STLFunctionalExtras.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ADT/STLFunctionalExtras.h b/llvm/include/llvm/ADT/STLFunctionalExtras.h
index f1ebb58199..a4d50dc364 100644
--- a/llvm/include/llvm/ADT/STLFunctionalExtras.h
+++ b/llvm/include/llvm/ADT/STLFunctionalExtras.h
@@ -36,7 +36,7 @@ namespace llvm {
/// a function_ref.
template<typename Fn> class function_ref;
-template<typename Ret, typename ...Params>
+template <typename Ret, typename... Params>
class LLVM_GSL_POINTER function_ref<Ret(Params...)> {
Ret (*callback)(intptr_t callable, Params ...params) = nullptr;
intptr_t callable;
``````````
</details>
https://github.com/llvm/llvm-project/pull/120699
More information about the llvm-commits
mailing list