diff options
author | Baranov Victor <bar.victor.2002@gmail.com> | 2025-03-11 09:22:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 07:22:15 +0100 |
commit | 75f76d482cc24162d5e3fdae0f0acd4c8f9cec6b (patch) | |
tree | fd6cd83a08b372d222a3ffd81857a3a5a5a41d85 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | bb2e85f12f6a17afdb36b2ffd2dcd17bbc4dd866 (diff) | |
download | llvm-75f76d482cc24162d5e3fdae0f0acd4c8f9cec6b.zip llvm-75f76d482cc24162d5e3fdae0f0acd4c8f9cec6b.tar.gz llvm-75f76d482cc24162d5e3fdae0f0acd4c8f9cec6b.tar.bz2 |
[clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (#121291)
Add new clang-tidy check that finds potentially erroneous calls to
``reset()`` method on smart pointers when
the pointee type also has a ``reset()`` method.
It's easy to make typo and delete object because the difference between
``.`` and ``->`` is really small.
Sometimes IDE's autocomplete will change ``->`` to ``.`` automatically.
For example, developer wrote ``ptr->res`` but after pressing _Tab_ it
became ``ptr.reset()``.
Fixes #120908
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions