llvm-project/clang-tools-extra/docs/clang-tidy
Martin Boehme e67d91faec [clang-tidy] Use-after-move: Ignore moves inside a try_emplace.
We have no way to reason about the bool returned by try_emplace, so we
simply ignore any std::move()s that happen in a try_emplace argument.
A lot of the time in this situation, the code will be checking the
bool and doing something else if it turns out the value wasn't moved
into the map, and this has been causing false positives so far.

I don't currently have any intentions of handling "maybe move" functions
more generally.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D98034
2021-03-05 15:05:09 +01:00
..
checks [clang-tidy] Use-after-move: Ignore moves inside a try_emplace. 2021-03-05 15:05:09 +01:00
Contributing.rst [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
Integrations.rst [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
index.rst [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00