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

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 30 11:01:20 PDT 2023


hans added a comment.

In D152495#4628887 <https://reviews.llvm.org/D152495#4628887>, @aaron.ballman wrote:

> That might not be a bad idea in this case -- perhaps `-Wunused-condition-variable` and group it under `-Wunused-variable`?

Sounds god to me conceptually. (I don't know the code, so don't know how hard it is practically.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152495/new/

https://reviews.llvm.org/D152495



More information about the cfe-commits mailing list