[clang] [RFC] Perform lifetime bound checks for arguments to coroutine (PR #69360)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 17 10:53:04 PDT 2023
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 4480e650b3cf7cc63cfd3767cd6b120f8bfad2ac be3f5faa6cd17d76f26fb1bc6d6b59a8a78ffe82 -- clang/test/SemaCXX/coroutine-lifetimebound-args.cpp clang/lib/Sema/SemaInit.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 54e72b220bc4..52e05b62e505 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -7614,7 +7614,7 @@ static void visitLifetimeBoundArguments(IndirectLocalPath &Path, Expr *Call,
// Only for demonstration: Get feedback and add a clang annotation as an
// extension.
if (attr->getAnnotation() == "coro_type") {
-
+
checkCoroCall = true;
break;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/69360
More information about the cfe-commits
mailing list