Commit 92023b15 authored by Takuya Shimizu's avatar Takuya Shimizu
Browse files

Reland "[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 unused and 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 01b88dd6
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