[all-commits] [llvm/llvm-project] 7eac39: [libc++] Mark scoped_lock and unique_lock construc...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Mon Apr 29 11:49:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7eac39f650227427a32b0db1a511b2b12c48a0fc
https://github.com/llvm/llvm-project/commit/7eac39f650227427a32b0db1a511b2b12c48a0fc
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2024-04-29 (Mon, 29 Apr 2024)
Changed paths:
M libcxx/include/__mutex/unique_lock.h
M libcxx/include/mutex
M libcxx/test/libcxx/diagnostics/mutex.nodiscard.verify.cpp
R libcxx/test/libcxx/thread/thread.lock/thread.lock.guard/nodiscard.verify.cpp
Log Message:
-----------
[libc++] Mark scoped_lock and unique_lock constructors as [[nodiscard]] (#89397)
It's basically always a bug to discard a scoped_lock or a unique_lock.
Fixes #89388
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list