24 lines · plain
1.. title:: clang-tidy - readability-redundant-smartptr-get2 3readability-redundant-smartptr-get4==================================5 6Find and remove redundant calls to smart pointer's ``.get()`` method.7 8Examples:9 10.. code-block:: c++11 12 ptr.get()->Foo() ==> ptr->Foo()13 *ptr.get() ==> *ptr14 *ptr->get() ==> **ptr15 if (ptr.get() == nullptr) ... => if (ptr == nullptr) ...16 17Options18-------19 20.. option:: IgnoreMacros21 22 If this option is set to `true` (default is `true`), the check will not warn23 about calls inside macros.24