Skip to content
Commit 4a6861a7 authored by Richard Smith's avatar Richard Smith
Browse files

[c++20] P1152R4: warn on any simple-assignment to a volatile lvalue

whose value is not ignored.

We don't warn on all the cases that are deprecated: specifically, we
choose to not warn for now if there are parentheses around the
assignment but its value is not actually used. This seems like a more
defensible rule, particularly for cases like sizeof(v = a), where the
parens are part of the operand rather than the sizeof syntax.

llvm-svn: 374135
parent 84ef9c64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment