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
Differential D65900
[libc++] Use [[nodiscard]] for lock_guard, as an extension ldionne on Aug 7 2019, 1:02 PM. Authored by
Details D64914 added support for applying [[nodiscard]] to constructors. This rdar://45790820
Diff Detail
Event Timeline
|