[clang-tools-extra] [clang] [clang-tidy] fix match for binaryOperator in ExprMutationAnalyzer for misc-const-correctness (PR #70559)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 3 10:00:58 PDT 2023


5chmidti wrote:

I found the issue, but I have not looked for a solution.
See https://godbolt.org/z/or4EnMfWj and #71203.
When using clang with `-target` to specify `x86_64-pc-win32` and `x86_64-linux`, the body for the function `f` is `NULL` in the AST with the windows target. This only happens for `-target x86_64-windows` pre `c++20`.

Although the tested code does not directly depend on being `c++20` (it is valid in `c++11`), maybe I constrain the tests in this pr to be in `c++20` mode until the issue is fixed? What do you think?

https://github.com/llvm/llvm-project/pull/70559


More information about the cfe-commits mailing list