[PATCH] D152495: [Clang][SemaCXX] Add unused warning for variables declared in condition expressions
Takuya Shimizu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 14 10:18:03 PDT 2023
hazohelet updated this revision to Diff 540479.
hazohelet marked 6 inline comments as done.
hazohelet added a comment.
Address comments from Aaron and Corentin
- Call `ConditionVar->setReferenced(false)` without any checks
- Added some more tests
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152495/new/
https://reviews.llvm.org/D152495
Files:
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/SemaCXX/warn-unused-variables.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152495.540479.patch
Type: text/x-patch
Size: 6618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230714/b3ac3e93/attachment.bin>
More information about the cfe-commits
mailing list