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
clang-tidy 14.0.6 gives a false-positive bugprone-use-after-move report in chained expressions #57758
Comments
It turns out that the exaple above is broken even with clang-tidy12. |
@llvm/issue-subscribers-clang-tidy |
Could you please try 15 or |
It would be hard to import entire clang15 toolchain (that is, llvm - clang - clang-tools-extra) into our infrastructure. |
I can not find an option to run clang-tidy via godbolt. |
|
clang15 still have this problem: so does clang12 |
Corresponding StackOverflow discussion is here. |
the check predates |
clang-tidy is capable of getting the standard version from cmdline. |
Consider the following code
clang-tidy 14.0.6 reports the following error:
The standard, however, clearly defines the behavior for the case.
This false-positive breaks a lot of code in our codebase.
The text was updated successfully, but these errors were encountered: