diff options
| author | Louis Dionne <ldionne@apple.com> | 2019-08-13 11:12:28 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2019-08-13 11:12:28 +0000 |
| commit | 86dd28a5471480cd7a8cb5ad4801599ac0a0ac20 (patch) | |
| tree | 0e60db66f9898c354bd534cfb43cc76f8d57506c /lldb/packages/Python/lldbsuite/test/python_api/thread/TestThreadAPI.py | |
| parent | e7b350a5d11bce823fc3254ab6a084186e15d4f0 (diff) | |
| download | bcm5719-llvm-86dd28a5471480cd7a8cb5ad4801599ac0a0ac20.tar.gz bcm5719-llvm-86dd28a5471480cd7a8cb5ad4801599ac0a0ac20.zip | |
[libc++] Use [[nodiscard]] for lock_guard, as an extension
Summary:
D64914 added support for applying [[nodiscard]] to constructors. This
commit uses that capability to flag incorrect uses of std::lock_guard
where one forgets to actually create a variable for the lock_guard.
rdar://45790820
Reviewers: mclow.lists, EricWF
Subscribers: christof, jkorous, dexonsmith, libcxx-commits, Quuxplusone, lebedev.ri
Tags: #libc
Differential Revision: https://reviews.llvm.org/D65900
llvm-svn: 368664
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/TestThreadAPI.py')
0 files changed, 0 insertions, 0 deletions

