[all-commits] [llvm/llvm-project] 8b90b2: [clang-tidy] `bugprone-use-after-move`: Fix handli...
martinboehme via All-commits
all-commits at lists.llvm.org
Fri Jun 3 00:34:24 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8b90b2539048a581052a4b0d7628ffba0cd582a9
https://github.com/llvm/llvm-project/commit/8b90b2539048a581052a4b0d7628ffba0cd582a9
Author: Martin Boehme <mboehme at google.com>
Date: 2022-06-03 (Fri, 03 Jun 2022)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/bugprone-use-after-move.cpp
Log Message:
-----------
[clang-tidy] `bugprone-use-after-move`: Fix handling of moves in lambda captures
Previously, we were treating a move in the lambda capture as if it happened
within the body of the lambda, not within the function that defines the lambda.
This fixes the same bug as https://reviews.llvm.org/D119165 (which it appears
may have been abandoned by the author?) but does so more simply.
Reviewed By: njames93
Differential Revision: https://reviews.llvm.org/D126780
More information about the All-commits
mailing list