[all-commits] [llvm/llvm-project] 052902: [libc++] Use this in lamba capture in <latch>
Edo via All-commits
all-commits at lists.llvm.org
Tue Jul 4 11:44:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0529025648b5e119ea75a06c6819d0f135efe0eb
https://github.com/llvm/llvm-project/commit/0529025648b5e119ea75a06c6819d0f135efe0eb
Author: Edoardo Sanguineti <edoardo.sanguineti222 at gmail.com>
Date: 2023-07-04 (Tue, 04 Jul 2023)
Changed paths:
M libcxx/include/latch
Log Message:
-----------
[libc++] Use this in lamba capture in <latch>
"&" seemed to be used in a situation where perhaps it's not the best option.
Other libc++ modules make use of [this] when calling functions from the same class.
[this] would be the appropriate lambda capture specifier to use in this situation.
Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D154358
More information about the All-commits
mailing list