blob: 3fc77c5f5e29bb2c2ac69793500372f79b2dbf40 [file] [log] [blame]
.. title:: clang-tidy - readability-redundant-smartptr-get
readability-redundant-smartptr-get
==================================
Find and remove redundant calls to smart pointer's ``.get()`` method.
Examples:
.. code-block:: c++
ptr.get()->Foo() ==> ptr->Foo()
*ptr.get() ==> *ptr
*ptr->get() ==> **ptr
if (ptr.get() == nullptr) ... => if (ptr == nullptr) ...