[PATCH] D122661: [Clang] Do not warn on unused lifetime-extending vars with side effects...
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 29 08:35:09 PDT 2022
cor3ntin created this revision.
Herald added a project: All.
cor3ntin requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
const auto & var = ObjectWithSideEffects();
Fixes https://github.com/llvm/llvm-project/issues/54489
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122661
Files:
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/warn-unused-variables.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122661.418890.patch
Type: text/x-patch
Size: 3818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220329/217e7b0a/attachment-0001.bin>
More information about the cfe-commits
mailing list