-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[coroutine] Clang gives incorrect warnings #56768
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
coroutines
C++20 coroutines
Comments
EugeneZelenko
added
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
and removed
new issue
labels
Jul 28, 2022
It looks like this is caused by https://reviews.llvm.org/D115187 df2a4ea the fix will be to skip |
We observe what we think is the same issue when doing, eg,
|
A patch is up in https://reviews.llvm.org/D142077 |
bcardosolopes
added a commit
that referenced
this issue
Feb 3, 2023
…enced D115187 exposed CoroutineSuspendExpr's operand, which makes some nodes to show up twice during the traversal, confusing the check for unsequenced operations. Skip the operand since it's already handled as part of the common expression and get rid of the misleading warnings. #56768 Differential Revision: https://reviews.llvm.org/D142077
CarlosAlbertoEnciso
pushed a commit
to SNSystems/llvm-debuginfo-analyzer
that referenced
this issue
Feb 4, 2023
…enced D115187 exposed CoroutineSuspendExpr's operand, which makes some nodes to show up twice during the traversal, confusing the check for unsequenced operations. Skip the operand since it's already handled as part of the common expression and get rid of the misleading warnings. llvm/llvm-project#56768 Differential Revision: https://reviews.llvm.org/D142077
skatrak
pushed a commit
to skatrak/llvm-project-rocm
that referenced
this issue
Feb 10, 2023
…enced D115187 exposed CoroutineSuspendExpr's operand, which makes some nodes to show up twice during the traversal, confusing the check for unsequenced operations. Skip the operand since it's already handled as part of the common expression and get rid of the misleading warnings. llvm/llvm-project#56768 Differential Revision: https://reviews.llvm.org/D142077
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
coroutines
C++20 coroutines
In the following code snippet:
clang gives a weird warning:
Another example can be found here.
The text was updated successfully, but these errors were encountered: