Unverified Commit 90453f4a authored by Youngsuk Kim's avatar Youngsuk Kim Committed by GitHub
Browse files

[Clang][Sema] Warn unused cxx vardecl which entirely consists condition expr...

[Clang][Sema] Warn unused cxx vardecl which entirely consists condition expr of if/while/for construct (#87348)

Emit `-Wunused-but-set-variable` warning on C++ variables whose
declaration (with initializer) entirely consist the condition expression
of a if/while/for construct but are not actually used in the body of the
if/while/for construct.

Fixes #41447
parent ab80d004
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