Commit bd0ed0ab authored by Takuya Shimizu's avatar Takuya Shimizu
Browse files

[Clang][SemaCXX] Add unused warning for variables declared in condition expressions

This patch marks the declarations with initializations in condition expressions such as
if (int var = init) as unreferenced so that -Wunused can warn on them.

Fixes https://github.com/llvm/llvm-project/issues/61681

Reviewed By: cor3ntin
Differential Revision: https://reviews.llvm.org/D152495
parent 3d801036
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment