[clang-tidy] Ignore implcit casts in cppcoreguidelines-owning-memory
authorPiotr Zegar <me@piotrzegar.pl>
Sat, 22 Jul 2023 19:24:53 +0000 (19:24 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Sat, 22 Jul 2023 19:24:54 +0000 (19:24 +0000)
commit5b5b75bfd4d469d56db7980c578214c26288faa9
tree981103f84bf6e9deb77ccd6ce7080ffd5686a6c0
parent0f1f1d45c9f77bf5d8e5dce32551b7c78772b8a6
[clang-tidy] Ignore implcit casts in cppcoreguidelines-owning-memory

Add getCheckTraversalKind to the check in order
to ignore some implicit casts when matching
expresions.

Fixes: #63994

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D156031
clang-tools-extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/owning-memory.cpp